18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/drivers/net/wireless/libertas/if_sdio.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright 2007 Pierre Ossman 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _LBS_IF_SDIO_H 98c2ecf20Sopenharmony_ci#define _LBS_IF_SDIO_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define IF_SDIO_IOPORT 0x00 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_MASK 0x04 148c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_OFLOW 0x08 158c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_UFLOW 0x04 168c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_DNLD 0x02 178c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_UPLD 0x01 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_STATUS 0x05 208c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_RSR 0x06 218c2ecf20Sopenharmony_ci#define IF_SDIO_H_INT_STATUS2 0x07 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define IF_SDIO_RD_BASE 0x10 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define IF_SDIO_STATUS 0x20 268c2ecf20Sopenharmony_ci#define IF_SDIO_IO_RDY 0x08 278c2ecf20Sopenharmony_ci#define IF_SDIO_CIS_RDY 0x04 288c2ecf20Sopenharmony_ci#define IF_SDIO_UL_RDY 0x02 298c2ecf20Sopenharmony_ci#define IF_SDIO_DL_RDY 0x01 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define IF_SDIO_C_INT_MASK 0x24 328c2ecf20Sopenharmony_ci#define IF_SDIO_C_INT_STATUS 0x28 338c2ecf20Sopenharmony_ci#define IF_SDIO_C_INT_RSR 0x2C 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#define IF_SDIO_SCRATCH 0x34 368c2ecf20Sopenharmony_ci#define IF_SDIO_SCRATCH_OLD 0x80fe 378c2ecf20Sopenharmony_ci#define IF_SDIO_FW_STATUS 0x40 388c2ecf20Sopenharmony_ci#define IF_SDIO_FIRMWARE_OK 0xfedc 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#define IF_SDIO_RX_LEN 0x42 418c2ecf20Sopenharmony_ci#define IF_SDIO_RX_UNIT 0x43 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#define IF_SDIO_EVENT 0x80fc 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#define IF_SDIO_BLOCK_SIZE 256 468c2ecf20Sopenharmony_ci#define CONFIGURATION_REG 0x03 478c2ecf20Sopenharmony_ci#define HOST_POWER_UP (0x1U << 1) 488c2ecf20Sopenharmony_ci#endif 49