Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
i82365.h File Reference

Go to the source code of this file.

Macros

#define I365_IDENT   0x00 /* Identification and revision */
 
#define I365_STATUS   0x01 /* Interface status */
 
#define I365_POWER   0x02 /* Power and RESETDRV control */
 
#define I365_INTCTL   0x03 /* Interrupt and general control */
 
#define I365_CSC   0x04 /* Card status change */
 
#define I365_CSCINT   0x05 /* Card status change interrupt control */
 
#define I365_ADDRWIN   0x06 /* Address window enable */
 
#define I365_IOCTL   0x07 /* I/O control */
 
#define I365_GENCTL   0x16 /* Card detect and general control */
 
#define I365_GBLCTL   0x1E /* Global control register */
 
#define I365_IO(map)   (0x08+((map)<<2))
 
#define I365_MEM(map)   (0x10+((map)<<3))
 
#define I365_W_START   0
 
#define I365_W_STOP   2
 
#define I365_W_OFF   4
 
#define I365_CS_BVD1   0x01
 
#define I365_CS_STSCHG   0x01
 
#define I365_CS_BVD2   0x02
 
#define I365_CS_SPKR   0x02
 
#define I365_CS_DETECT   0x0C
 
#define I365_CS_WRPROT   0x10
 
#define I365_CS_READY   0x20 /* Inverted */
 
#define I365_CS_POWERON   0x40
 
#define I365_CS_GPI   0x80
 
#define I365_PWR_OFF   0x00 /* Turn off the socket */
 
#define I365_PWR_OUT   0x80 /* Output enable */
 
#define I365_PWR_NORESET   0x40 /* Disable RESETDRV on resume */
 
#define I365_PWR_AUTO   0x20 /* Auto pwr switch enable */
 
#define I365_VCC_MASK   0x18 /* Mask for turning off Vcc */
 
#define I365_VCC_5V   0x10 /* Vcc = 5.0v */
 
#define I365_VCC_3V   0x18 /* Vcc = 3.3v */
 
#define I365_VPP2_MASK   0x0c /* Mask for turning off Vpp2 */
 
#define I365_VPP2_5V   0x04 /* Vpp2 = 5.0v */
 
#define I365_VPP2_12V   0x08 /* Vpp2 = 12.0v */
 
#define I365_VPP1_MASK   0x03 /* Mask for turning off Vpp1 */
 
#define I365_VPP1_5V   0x01 /* Vpp1 = 5.0v */
 
#define I365_VPP1_12V   0x02 /* Vpp1 = 12.0v */
 
#define I365_RING_ENA   0x80
 
#define I365_PC_RESET   0x40
 
#define I365_PC_IOCARD   0x20
 
#define I365_INTR_ENA   0x10
 
#define I365_IRQ_MASK   0x0F
 
#define I365_CSC_BVD1   0x01
 
#define I365_CSC_STSCHG   0x01
 
#define I365_CSC_BVD2   0x02
 
#define I365_CSC_READY   0x04
 
#define I365_CSC_DETECT   0x08
 
#define I365_CSC_ANY   0x0F
 
#define I365_CSC_GPI   0x10
 
#define I365_CSC_IRQ_MASK   0xF0
 
#define I365_ENA_IO(map)   (0x40 << (map))
 
#define I365_ENA_MEM(map)   (0x01 << (map))
 
#define I365_IOCTL_MASK(map)   (0x0F << (map<<2))
 
#define I365_IOCTL_WAIT(map)   (0x08 << (map<<2))
 
#define I365_IOCTL_0WS(map)   (0x04 << (map<<2))
 
#define I365_IOCTL_IOCS16(map)   (0x02 << (map<<2))
 
#define I365_IOCTL_16BIT(map)   (0x01 << (map<<2))
 
#define I365_CTL_16DELAY   0x01
 
#define I365_CTL_RESET   0x02
 
#define I365_CTL_GPI_ENA   0x04
 
#define I365_CTL_GPI_CTL   0x08
 
#define I365_CTL_RESUME   0x10
 
#define I365_CTL_SW_IRQ   0x20
 
#define I365_GBL_PWRDOWN   0x01
 
#define I365_GBL_CSC_LEV   0x02
 
#define I365_GBL_WRBACK   0x04
 
#define I365_GBL_IRQ_0_LEV   0x08
 
#define I365_GBL_IRQ_1_LEV   0x10
 
#define I365_MEM_16BIT   0x8000 /* In memory start high byte */
 
#define I365_MEM_0WS   0x4000
 
#define I365_MEM_WS1   0x8000 /* In memory stop high byte */
 
#define I365_MEM_WS0   0x4000
 
#define I365_MEM_WRPROT   0x8000 /* In offset high byte */
 
#define I365_MEM_REG   0x4000
 
#define I365_REG(slot, reg)   (((slot) << 6) + reg)
 

Macro Definition Documentation

#define I365_ADDRWIN   0x06 /* Address window enable */

Definition at line 42 of file i82365.h.

#define I365_CS_BVD1   0x01

Definition at line 55 of file i82365.h.

#define I365_CS_BVD2   0x02

Definition at line 57 of file i82365.h.

#define I365_CS_DETECT   0x0C

Definition at line 59 of file i82365.h.

#define I365_CS_GPI   0x80

Definition at line 63 of file i82365.h.

#define I365_CS_POWERON   0x40

Definition at line 62 of file i82365.h.

#define I365_CS_READY   0x20 /* Inverted */

Definition at line 61 of file i82365.h.

#define I365_CS_SPKR   0x02

Definition at line 58 of file i82365.h.

#define I365_CS_STSCHG   0x01

Definition at line 56 of file i82365.h.

#define I365_CS_WRPROT   0x10

Definition at line 60 of file i82365.h.

#define I365_CSC   0x04 /* Card status change */

Definition at line 40 of file i82365.h.

#define I365_CSC_ANY   0x0F

Definition at line 96 of file i82365.h.

#define I365_CSC_BVD1   0x01

Definition at line 91 of file i82365.h.

#define I365_CSC_BVD2   0x02

Definition at line 93 of file i82365.h.

#define I365_CSC_DETECT   0x08

Definition at line 95 of file i82365.h.

#define I365_CSC_GPI   0x10

Definition at line 97 of file i82365.h.

#define I365_CSC_IRQ_MASK   0xF0

Definition at line 98 of file i82365.h.

#define I365_CSC_READY   0x04

Definition at line 94 of file i82365.h.

#define I365_CSC_STSCHG   0x01

Definition at line 92 of file i82365.h.

#define I365_CSCINT   0x05 /* Card status change interrupt control */

Definition at line 41 of file i82365.h.

#define I365_CTL_16DELAY   0x01

Definition at line 112 of file i82365.h.

#define I365_CTL_GPI_CTL   0x08

Definition at line 115 of file i82365.h.

#define I365_CTL_GPI_ENA   0x04

Definition at line 114 of file i82365.h.

#define I365_CTL_RESET   0x02

Definition at line 113 of file i82365.h.

#define I365_CTL_RESUME   0x10

Definition at line 116 of file i82365.h.

#define I365_CTL_SW_IRQ   0x20

Definition at line 117 of file i82365.h.

#define I365_ENA_IO (   map)    (0x40 << (map))

Definition at line 101 of file i82365.h.

#define I365_ENA_MEM (   map)    (0x01 << (map))

Definition at line 102 of file i82365.h.

#define I365_GBL_CSC_LEV   0x02

Definition at line 121 of file i82365.h.

#define I365_GBL_IRQ_0_LEV   0x08

Definition at line 123 of file i82365.h.

#define I365_GBL_IRQ_1_LEV   0x10

Definition at line 124 of file i82365.h.

#define I365_GBL_PWRDOWN   0x01

Definition at line 120 of file i82365.h.

#define I365_GBL_WRBACK   0x04

Definition at line 122 of file i82365.h.

#define I365_GBLCTL   0x1E /* Global control register */

Definition at line 45 of file i82365.h.

#define I365_GENCTL   0x16 /* Card detect and general control */

Definition at line 44 of file i82365.h.

#define I365_IDENT   0x00 /* Identification and revision */

Definition at line 36 of file i82365.h.

#define I365_INTCTL   0x03 /* Interrupt and general control */

Definition at line 39 of file i82365.h.

#define I365_INTR_ENA   0x10

Definition at line 87 of file i82365.h.

#define I365_IO (   map)    (0x08+((map)<<2))

Definition at line 48 of file i82365.h.

#define I365_IOCTL   0x07 /* I/O control */

Definition at line 43 of file i82365.h.

#define I365_IOCTL_0WS (   map)    (0x04 << (map<<2))

Definition at line 107 of file i82365.h.

#define I365_IOCTL_16BIT (   map)    (0x01 << (map<<2))

Definition at line 109 of file i82365.h.

#define I365_IOCTL_IOCS16 (   map)    (0x02 << (map<<2))

Definition at line 108 of file i82365.h.

#define I365_IOCTL_MASK (   map)    (0x0F << (map<<2))

Definition at line 105 of file i82365.h.

#define I365_IOCTL_WAIT (   map)    (0x08 << (map<<2))

Definition at line 106 of file i82365.h.

#define I365_IRQ_MASK   0x0F

Definition at line 88 of file i82365.h.

#define I365_MEM (   map)    (0x10+((map)<<3))

Definition at line 49 of file i82365.h.

#define I365_MEM_0WS   0x4000

Definition at line 128 of file i82365.h.

#define I365_MEM_16BIT   0x8000 /* In memory start high byte */

Definition at line 127 of file i82365.h.

#define I365_MEM_REG   0x4000

Definition at line 132 of file i82365.h.

#define I365_MEM_WRPROT   0x8000 /* In offset high byte */

Definition at line 131 of file i82365.h.

#define I365_MEM_WS0   0x4000

Definition at line 130 of file i82365.h.

#define I365_MEM_WS1   0x8000 /* In memory stop high byte */

Definition at line 129 of file i82365.h.

#define I365_PC_IOCARD   0x20

Definition at line 86 of file i82365.h.

#define I365_PC_RESET   0x40

Definition at line 85 of file i82365.h.

#define I365_POWER   0x02 /* Power and RESETDRV control */

Definition at line 38 of file i82365.h.

#define I365_PWR_AUTO   0x20 /* Auto pwr switch enable */

Definition at line 69 of file i82365.h.

#define I365_PWR_NORESET   0x40 /* Disable RESETDRV on resume */

Definition at line 68 of file i82365.h.

#define I365_PWR_OFF   0x00 /* Turn off the socket */

Definition at line 66 of file i82365.h.

#define I365_PWR_OUT   0x80 /* Output enable */

Definition at line 67 of file i82365.h.

#define I365_REG (   slot,
  reg 
)    (((slot) << 6) + reg)

Definition at line 134 of file i82365.h.

#define I365_RING_ENA   0x80

Definition at line 84 of file i82365.h.

#define I365_STATUS   0x01 /* Interface status */

Definition at line 37 of file i82365.h.

#define I365_VCC_3V   0x18 /* Vcc = 3.3v */

Definition at line 75 of file i82365.h.

#define I365_VCC_5V   0x10 /* Vcc = 5.0v */

Definition at line 74 of file i82365.h.

#define I365_VCC_MASK   0x18 /* Mask for turning off Vcc */

Definition at line 70 of file i82365.h.

#define I365_VPP1_12V   0x02 /* Vpp1 = 12.0v */

Definition at line 81 of file i82365.h.

#define I365_VPP1_5V   0x01 /* Vpp1 = 5.0v */

Definition at line 80 of file i82365.h.

#define I365_VPP1_MASK   0x03 /* Mask for turning off Vpp1 */

Definition at line 79 of file i82365.h.

#define I365_VPP2_12V   0x08 /* Vpp2 = 12.0v */

Definition at line 78 of file i82365.h.

#define I365_VPP2_5V   0x04 /* Vpp2 = 5.0v */

Definition at line 77 of file i82365.h.

#define I365_VPP2_MASK   0x0c /* Mask for turning off Vpp2 */

Definition at line 76 of file i82365.h.

#define I365_W_OFF   4

Definition at line 52 of file i82365.h.

#define I365_W_START   0

Definition at line 50 of file i82365.h.

#define I365_W_STOP   2

Definition at line 51 of file i82365.h.