Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
cb710-mmc.h File Reference
#include <linux/cb710.h>

Go to the source code of this file.

Data Structures

struct  cb710_mmc_reader
 

Macros

#define CB710_MMC_DATA_PORT   0x00
 
#define CB710_MMC_CONFIG_PORT   0x04
 
#define CB710_MMC_CONFIG0_PORT   0x04
 
#define CB710_MMC_CONFIG1_PORT   0x05
 
#define CB710_MMC_C1_4BIT_DATA_BUS   0x40
 
#define CB710_MMC_CONFIG2_PORT   0x06
 
#define CB710_MMC_C2_READ_PIO_SIZE_MASK   0x0F /* N-1 */
 
#define CB710_MMC_CONFIG3_PORT   0x07
 
#define CB710_MMC_CONFIGB_PORT   0x08
 
#define CB710_MMC_IRQ_ENABLE_PORT   0x0C
 
#define CB710_MMC_IE_TEST_MASK   0x00BF
 
#define CB710_MMC_IE_CARD_INSERTION_STATUS   0x1000
 
#define CB710_MMC_IE_IRQ_ENABLE   0x8000
 
#define CB710_MMC_IE_CISTATUS_MASK   (CB710_MMC_IE_CARD_INSERTION_STATUS|CB710_MMC_IE_IRQ_ENABLE)
 
#define CB710_MMC_STATUS_PORT   0x10
 
#define CB710_MMC_STATUS_ERROR_EVENTS   0x60FF
 
#define CB710_MMC_STATUS0_PORT   0x10
 
#define CB710_MMC_S0_FIFO_UNDERFLOW   0x40
 
#define CB710_MMC_STATUS1_PORT   0x11
 
#define CB710_MMC_S1_COMMAND_SENT   0x01
 
#define CB710_MMC_S1_DATA_TRANSFER_DONE   0x02
 
#define CB710_MMC_S1_PIO_TRANSFER_DONE   0x04
 
#define CB710_MMC_S1_CARD_CHANGED   0x10
 
#define CB710_MMC_S1_RESET   0x20
 
#define CB710_MMC_STATUS2_PORT   0x12
 
#define CB710_MMC_S2_FIFO_READY   0x01
 
#define CB710_MMC_S2_FIFO_EMPTY   0x02
 
#define CB710_MMC_S2_BUSY_10   0x10
 
#define CB710_MMC_S2_BUSY_20   0x20
 
#define CB710_MMC_STATUS3_PORT   0x13
 
#define CB710_MMC_S3_CARD_DETECTED   0x02
 
#define CB710_MMC_S3_WRITE_PROTECTED   0x04
 
#define CB710_MMC_CMD_TYPE_PORT   0x14
 
#define CB710_MMC_RSP_TYPE_MASK   0x0007
 
#define CB710_MMC_RSP_R1   (0)
 
#define CB710_MMC_RSP_136   (5)
 
#define CB710_MMC_RSP_NO_CRC   (2)
 
#define CB710_MMC_RSP_PRESENT_MASK   0x0018
 
#define CB710_MMC_RSP_NONE   (0 << 3)
 
#define CB710_MMC_RSP_PRESENT   (1 << 3)
 
#define CB710_MMC_RSP_PRESENT_X   (2 << 3)
 
#define CB710_MMC_CMD_TYPE_MASK   0x0060
 
#define CB710_MMC_CMD_BC   (0 << 5)
 
#define CB710_MMC_CMD_BCR   (1 << 5)
 
#define CB710_MMC_CMD_AC   (2 << 5)
 
#define CB710_MMC_CMD_ADTC   (3 << 5)
 
#define CB710_MMC_DATA_READ   0x0080
 
#define CB710_MMC_CMD_CODE_MASK   0x3F00
 
#define CB710_MMC_CMD_CODE_SHIFT   8
 
#define CB710_MMC_IS_APP_CMD   0x4000
 
#define CB710_MMC_RSP_BUSY   0x8000
 
#define CB710_MMC_CMD_PARAM_PORT   0x18
 
#define CB710_MMC_TRANSFER_SIZE_PORT   0x1C
 
#define CB710_MMC_RESPONSE0_PORT   0x20
 
#define CB710_MMC_RESPONSE1_PORT   0x24
 
#define CB710_MMC_RESPONSE2_PORT   0x28
 
#define CB710_MMC_RESPONSE3_PORT   0x2C
 

Macro Definition Documentation

#define CB710_MMC_C1_4BIT_DATA_BUS   0x40

Definition at line 44 of file cb710-mmc.h.

#define CB710_MMC_C2_READ_PIO_SIZE_MASK   0x0F /* N-1 */

Definition at line 46 of file cb710-mmc.h.

#define CB710_MMC_CMD_AC   (2 << 5)

Definition at line 89 of file cb710-mmc.h.

#define CB710_MMC_CMD_ADTC   (3 << 5)

Definition at line 90 of file cb710-mmc.h.

#define CB710_MMC_CMD_BC   (0 << 5)

Definition at line 87 of file cb710-mmc.h.

#define CB710_MMC_CMD_BCR   (1 << 5)

Definition at line 88 of file cb710-mmc.h.

#define CB710_MMC_CMD_CODE_MASK   0x3F00

Definition at line 92 of file cb710-mmc.h.

#define CB710_MMC_CMD_CODE_SHIFT   8

Definition at line 93 of file cb710-mmc.h.

#define CB710_MMC_CMD_PARAM_PORT   0x18

Definition at line 97 of file cb710-mmc.h.

#define CB710_MMC_CMD_TYPE_MASK   0x0060

Definition at line 86 of file cb710-mmc.h.

#define CB710_MMC_CMD_TYPE_PORT   0x14

Definition at line 77 of file cb710-mmc.h.

#define CB710_MMC_CONFIG0_PORT   0x04

Definition at line 42 of file cb710-mmc.h.

#define CB710_MMC_CONFIG1_PORT   0x05

Definition at line 43 of file cb710-mmc.h.

#define CB710_MMC_CONFIG2_PORT   0x06

Definition at line 45 of file cb710-mmc.h.

#define CB710_MMC_CONFIG3_PORT   0x07

Definition at line 47 of file cb710-mmc.h.

#define CB710_MMC_CONFIG_PORT   0x04

Definition at line 41 of file cb710-mmc.h.

#define CB710_MMC_CONFIGB_PORT   0x08

Definition at line 49 of file cb710-mmc.h.

#define CB710_MMC_DATA_PORT   0x00

Definition at line 39 of file cb710-mmc.h.

#define CB710_MMC_DATA_READ   0x0080

Definition at line 91 of file cb710-mmc.h.

#define CB710_MMC_IE_CARD_INSERTION_STATUS   0x1000

Definition at line 53 of file cb710-mmc.h.

#define CB710_MMC_IE_CISTATUS_MASK   (CB710_MMC_IE_CARD_INSERTION_STATUS|CB710_MMC_IE_IRQ_ENABLE)

Definition at line 55 of file cb710-mmc.h.

#define CB710_MMC_IE_IRQ_ENABLE   0x8000

Definition at line 54 of file cb710-mmc.h.

#define CB710_MMC_IE_TEST_MASK   0x00BF

Definition at line 52 of file cb710-mmc.h.

#define CB710_MMC_IRQ_ENABLE_PORT   0x0C

Definition at line 51 of file cb710-mmc.h.

#define CB710_MMC_IS_APP_CMD   0x4000

Definition at line 94 of file cb710-mmc.h.

#define CB710_MMC_RESPONSE0_PORT   0x20

Definition at line 99 of file cb710-mmc.h.

#define CB710_MMC_RESPONSE1_PORT   0x24

Definition at line 100 of file cb710-mmc.h.

#define CB710_MMC_RESPONSE2_PORT   0x28

Definition at line 101 of file cb710-mmc.h.

#define CB710_MMC_RESPONSE3_PORT   0x2C

Definition at line 102 of file cb710-mmc.h.

#define CB710_MMC_RSP_136   (5)

Definition at line 80 of file cb710-mmc.h.

#define CB710_MMC_RSP_BUSY   0x8000

Definition at line 95 of file cb710-mmc.h.

#define CB710_MMC_RSP_NO_CRC   (2)

Definition at line 81 of file cb710-mmc.h.

#define CB710_MMC_RSP_NONE   (0 << 3)

Definition at line 83 of file cb710-mmc.h.

#define CB710_MMC_RSP_PRESENT   (1 << 3)

Definition at line 84 of file cb710-mmc.h.

#define CB710_MMC_RSP_PRESENT_MASK   0x0018

Definition at line 82 of file cb710-mmc.h.

#define CB710_MMC_RSP_PRESENT_X   (2 << 3)

Definition at line 85 of file cb710-mmc.h.

#define CB710_MMC_RSP_R1   (0)

Definition at line 79 of file cb710-mmc.h.

#define CB710_MMC_RSP_TYPE_MASK   0x0007

Definition at line 78 of file cb710-mmc.h.

#define CB710_MMC_S0_FIFO_UNDERFLOW   0x40

Definition at line 61 of file cb710-mmc.h.

#define CB710_MMC_S1_CARD_CHANGED   0x10

Definition at line 66 of file cb710-mmc.h.

#define CB710_MMC_S1_COMMAND_SENT   0x01

Definition at line 63 of file cb710-mmc.h.

#define CB710_MMC_S1_DATA_TRANSFER_DONE   0x02

Definition at line 64 of file cb710-mmc.h.

#define CB710_MMC_S1_PIO_TRANSFER_DONE   0x04

Definition at line 65 of file cb710-mmc.h.

#define CB710_MMC_S1_RESET   0x20

Definition at line 67 of file cb710-mmc.h.

#define CB710_MMC_S2_BUSY_10   0x10

Definition at line 71 of file cb710-mmc.h.

#define CB710_MMC_S2_BUSY_20   0x20

Definition at line 72 of file cb710-mmc.h.

#define CB710_MMC_S2_FIFO_EMPTY   0x02

Definition at line 70 of file cb710-mmc.h.

#define CB710_MMC_S2_FIFO_READY   0x01

Definition at line 69 of file cb710-mmc.h.

#define CB710_MMC_S3_CARD_DETECTED   0x02

Definition at line 74 of file cb710-mmc.h.

#define CB710_MMC_S3_WRITE_PROTECTED   0x04

Definition at line 75 of file cb710-mmc.h.

#define CB710_MMC_STATUS0_PORT   0x10

Definition at line 60 of file cb710-mmc.h.

#define CB710_MMC_STATUS1_PORT   0x11

Definition at line 62 of file cb710-mmc.h.

#define CB710_MMC_STATUS2_PORT   0x12

Definition at line 68 of file cb710-mmc.h.

#define CB710_MMC_STATUS3_PORT   0x13

Definition at line 73 of file cb710-mmc.h.

#define CB710_MMC_STATUS_ERROR_EVENTS   0x60FF

Definition at line 59 of file cb710-mmc.h.

#define CB710_MMC_STATUS_PORT   0x10

Definition at line 58 of file cb710-mmc.h.

#define CB710_MMC_TRANSFER_SIZE_PORT   0x1C

Definition at line 98 of file cb710-mmc.h.