Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *  linux/drivers/net/wireless/libertas/if_sdio.h
0004  *
0005  *  Copyright 2007 Pierre Ossman
0006  */
0007 
0008 #ifndef _LBS_IF_SDIO_H
0009 #define _LBS_IF_SDIO_H
0010 
0011 #define IF_SDIO_IOPORT      0x00
0012 
0013 #define IF_SDIO_H_INT_MASK  0x04
0014 #define   IF_SDIO_H_INT_OFLOW   0x08
0015 #define   IF_SDIO_H_INT_UFLOW   0x04
0016 #define   IF_SDIO_H_INT_DNLD    0x02
0017 #define   IF_SDIO_H_INT_UPLD    0x01
0018 
0019 #define IF_SDIO_H_INT_STATUS    0x05
0020 #define IF_SDIO_H_INT_RSR   0x06
0021 #define IF_SDIO_H_INT_STATUS2   0x07
0022 
0023 #define IF_SDIO_RD_BASE     0x10
0024 
0025 #define IF_SDIO_STATUS      0x20
0026 #define   IF_SDIO_IO_RDY    0x08
0027 #define   IF_SDIO_CIS_RDY   0x04
0028 #define   IF_SDIO_UL_RDY    0x02
0029 #define   IF_SDIO_DL_RDY    0x01
0030 
0031 #define IF_SDIO_C_INT_MASK  0x24
0032 #define IF_SDIO_C_INT_STATUS    0x28
0033 #define IF_SDIO_C_INT_RSR   0x2C
0034 
0035 #define IF_SDIO_SCRATCH     0x34
0036 #define IF_SDIO_SCRATCH_OLD 0x80fe
0037 #define IF_SDIO_FW_STATUS   0x40
0038 #define   IF_SDIO_FIRMWARE_OK   0xfedc
0039 
0040 #define IF_SDIO_RX_LEN      0x42
0041 #define IF_SDIO_RX_UNIT     0x43
0042 
0043 #define IF_SDIO_EVENT           0x80fc
0044 
0045 #define IF_SDIO_BLOCK_SIZE  256
0046 #define CONFIGURATION_REG               0x03
0047 #define HOST_POWER_UP                   (0x1U << 1)
0048 #endif