Go to the documentation of this file.
10 #include <linux/pci.h>
24 #define R852_DATALINE 0x00
28 #define R852_CTL_COMMAND 0x01
29 #define R852_CTL_DATA 0x02
30 #define R852_CTL_ON 0x04
32 #define R852_CTL_RESET 0x08
33 #define R852_CTL_CARDENABLE 0x10
34 #define R852_CTL_ECC_ENABLE 0x20
35 #define R852_CTL_ECC_ACCESS 0x40
36 #define R852_CTL_WRITE 0x80
39 #define R852_CARD_STA 0x05
41 #define R852_CARD_STA_CD 0x01
42 #define R852_CARD_STA_RO 0x02
43 #define R852_CARD_STA_PRESENT 0x04
44 #define R852_CARD_STA_ABSENT 0x08
45 #define R852_CARD_STA_BUSY 0x80
48 #define R852_CARD_IRQ_STA 0x06
49 #define R852_CARD_IRQ_ENABLE 0x07
51 #define R852_CARD_IRQ_CD 0x01
52 #define R852_CARD_IRQ_REMOVE 0x04
53 #define R852_CARD_IRQ_INSERT 0x08
54 #define R852_CARD_IRQ_UNK1 0x10
55 #define R852_CARD_IRQ_GENABLE 0x80
56 #define R852_CARD_IRQ_MASK 0x1D
62 #define R852_HW_ENABLED 0x01
63 #define R852_HW_UNKNOWN 0x80
67 #define R852_DMA_CAP 0x09
68 #define R852_SMBIT 0x20
70 #define R852_DMA1 0x40
71 #define R852_DMA2 0x80
75 #define R852_DMA_ADDR 0x0C
79 #define R852_DMA_SETTINGS 0x10
80 #define R852_DMA_MEMORY 0x01
81 #define R852_DMA_READ 0x02
82 #define R852_DMA_INTERNAL 0x04
85 #define R852_DMA_IRQ_STA 0x14
88 #define R852_DMA_IRQ_ENABLE 0x18
90 #define R852_DMA_IRQ_MEMORY 0x01
91 #define R852_DMA_IRQ_ERROR 0x02
92 #define R852_DMA_IRQ_INTERNAL 0x04
93 #define R852_DMA_IRQ_MASK 0x07
99 #define R852_ECC_ERR_BIT_MSK 0x07
100 #define R852_ECC_CORRECT 0x10
101 #define R852_ECC_CORRECTABLE 0x20
102 #define R852_ECC_FAIL 0x40
104 #define R852_DMA_LEN 512
106 #define DMA_INTERNAL 0
148 #define DRV_NAME "r852"
151 #define dbg(format, ...) \
153 printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__)
155 #define dbg_verbose(format, ...) \
157 printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__)
160 #define message(format, ...) \
161 printk(KERN_INFO DRV_NAME ": " format "\n", ## __VA_ARGS__)