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

Go to the source code of this file.

Data Structures

struct  ssb_extif
 

Macros

#define SSB_EXTIF_PCMCIA_MEMBASE(x)   (x)
 
#define SSB_EXTIF_PCMCIA_IOBASE(x)   ((x) + 0x100000)
 
#define SSB_EXTIF_PCMCIA_CFGBASE(x)   ((x) + 0x200000)
 
#define SSB_EXTIF_CFGIF_BASE(x)   ((x) + 0x800000)
 
#define SSB_EXTIF_FLASH_BASE(x)   ((x) + 0xc00000)
 
#define SSB_EXTIF_NR_GPIOOUT   5
 
#define SSB_EXTIF_GPIO_OUT(index)
 
#define SSB_EXTIF_GPIO_OUTEN(index)
 
#define SSB_EXTIF_CTL   0x0000
 
#define SSB_EXTIF_CTL_UARTEN   (1 << 0) /* UART enable */
 
#define SSB_EXTIF_EXTSTAT   0x0004
 
#define SSB_EXTIF_EXTSTAT_EMODE   (1 << 0) /* Endian mode (ro) */
 
#define SSB_EXTIF_EXTSTAT_EIRQPIN   (1 << 1) /* External interrupt pin (ro) */
 
#define SSB_EXTIF_EXTSTAT_GPIOIRQPIN   (1 << 2) /* GPIO interrupt pin (ro) */
 
#define SSB_EXTIF_PCMCIA_CFG   0x0010
 
#define SSB_EXTIF_PCMCIA_MEMWAIT   0x0014
 
#define SSB_EXTIF_PCMCIA_ATTRWAIT   0x0018
 
#define SSB_EXTIF_PCMCIA_IOWAIT   0x001C
 
#define SSB_EXTIF_PROG_CFG   0x0020
 
#define SSB_EXTIF_PROG_WAITCNT   0x0024
 
#define SSB_EXTIF_FLASH_CFG   0x0028
 
#define SSB_EXTIF_FLASH_WAITCNT   0x002C
 
#define SSB_EXTIF_WATCHDOG   0x0040
 
#define SSB_EXTIF_CLOCK_N   0x0044
 
#define SSB_EXTIF_CLOCK_SB   0x0048
 
#define SSB_EXTIF_CLOCK_PCI   0x004C
 
#define SSB_EXTIF_CLOCK_MII   0x0050
 
#define SSB_EXTIF_GPIO_IN   0x0060
 
#define SSB_EXTIF_GPIO_OUT_BASE   0x0064
 
#define SSB_EXTIF_GPIO_OUTEN_BASE   0x0068
 
#define SSB_EXTIF_EJTAG_OUTEN   0x0090
 
#define SSB_EXTIF_GPIO_INTPOL   0x0094
 
#define SSB_EXTIF_GPIO_INTMASK   0x0098
 
#define SSB_EXTIF_UART_DATA   0x0300
 
#define SSB_EXTIF_UART_TIMER   0x0310
 
#define SSB_EXTIF_UART_FCR   0x0320
 
#define SSB_EXTIF_UART_LCR   0x0330
 
#define SSB_EXTIF_UART_MCR   0x0340
 
#define SSB_EXTIF_UART_LSR   0x0350
 
#define SSB_EXTIF_UART_MSR   0x0360
 
#define SSB_EXTIF_UART_SCRATCH   0x0370
 
#define SSB_EXTCFG_EN   (1 << 0) /* enable */
 
#define SSB_EXTCFG_MODE   0xE /* mode */
 
#define SSB_EXTCFG_MODE_SHIFT   1
 
#define SSB_EXTCFG_MODE_FLASH   0x0 /* flash/asynchronous mode */
 
#define SSB_EXTCFG_MODE_SYNC   0x2 /* synchronous mode */
 
#define SSB_EXTCFG_MODE_PCMCIA   0x4 /* pcmcia mode */
 
#define SSB_EXTCFG_DS16   (1 << 4) /* destsize: 0=8bit, 1=16bit */
 
#define SSB_EXTCFG_BSWAP   (1 << 5) /* byteswap */
 
#define SSB_EXTCFG_CLKDIV   0xC0 /* clock divider */
 
#define SSB_EXTCFG_CLKDIV_SHIFT   6
 
#define SSB_EXTCFG_CLKDIV_2   0x0 /* backplane/2 */
 
#define SSB_EXTCFG_CLKDIV_3   0x40 /* backplane/3 */
 
#define SSB_EXTCFG_CLKDIV_4   0x80 /* backplane/4 */
 
#define SSB_EXTCFG_CLKEN   (1 << 8) /* clock enable */
 
#define SSB_EXTCFG_STROBE   (1 << 9) /* size/bytestrobe (synch only) */
 
#define SSB_PCMCIA_MEMW_0   0x0000003F /* waitcount0 */
 
#define SSB_PCMCIA_MEMW_1   0x00001F00 /* waitcount1 */
 
#define SSB_PCMCIA_MEMW_1_SHIFT   8
 
#define SSB_PCMCIA_MEMW_2   0x001F0000 /* waitcount2 */
 
#define SSB_PCMCIA_MEMW_2_SHIFT   16
 
#define SSB_PCMCIA_MEMW_3   0x1F000000 /* waitcount3 */
 
#define SSB_PCMCIA_MEMW_3_SHIFT   24
 
#define SSB_PCMCIA_ATTW_0   0x0000003F /* waitcount0 */
 
#define SSB_PCMCIA_ATTW_1   0x00001F00 /* waitcount1 */
 
#define SSB_PCMCIA_ATTW_1_SHIFT   8
 
#define SSB_PCMCIA_ATTW_2   0x001F0000 /* waitcount2 */
 
#define SSB_PCMCIA_ATTW_2_SHIFT   16
 
#define SSB_PCMCIA_ATTW_3   0x1F000000 /* waitcount3 */
 
#define SSB_PCMCIA_ATTW_3_SHIFT   24
 
#define SSB_PCMCIA_IOW_0   0x0000003F /* waitcount0 */
 
#define SSB_PCMCIA_IOW_1   0x00001F00 /* waitcount1 */
 
#define SSB_PCMCIA_IOW_1_SHIFT   8
 
#define SSB_PCMCIA_IOW_2   0x001F0000 /* waitcount2 */
 
#define SSB_PCMCIA_IOW_2_SHIFT   16
 
#define SSB_PCMCIA_IOW_3   0x1F000000 /* waitcount3 */
 
#define SSB_PCMCIA_IOW_3_SHIFT   24
 
#define SSB_PROG_WCNT_0   0x0000001F /* waitcount0 */
 
#define SSB_PROG_WCNT_1   0x00001F00 /* waitcount1 */
 
#define SSB_PROG_WCNT_1_SHIFT   8
 
#define SSB_PROG_WCNT_2   0x001F0000 /* waitcount2 */
 
#define SSB_PROG_WCNT_2_SHIFT   16
 
#define SSB_PROG_WCNT_3   0x1F000000 /* waitcount3 */
 
#define SSB_PROG_WCNT_3_SHIFT   24
 
#define SSB_PROG_W0   0x0000000C
 
#define SSB_PROG_W1   0x00000A00
 
#define SSB_PROG_W2   0x00020000
 
#define SSB_PROG_W3   0x01000000
 
#define SSB_FLASH_WCNT_0   0x0000001F /* waitcount0 */
 
#define SSB_FLASH_WCNT_1   0x00001F00 /* waitcount1 */
 
#define SSB_FLASH_WCNT_1_SHIFT   8
 
#define SSB_FLASH_WCNT_2   0x001F0000 /* waitcount2 */
 
#define SSB_FLASH_WCNT_2_SHIFT   16
 
#define SSB_FLASH_WCNT_3   0x1F000000 /* waitcount3 */
 
#define SSB_FLASH_WCNT_3_SHIFT   24
 
#define SSB_EXTIF_WATCHDOG_CLK   48000000 /* Hz */
 

Macro Definition Documentation

#define SSB_EXTCFG_BSWAP   (1 << 5) /* byteswap */

Definition at line 93 of file ssb_driver_extif.h.

#define SSB_EXTCFG_CLKDIV   0xC0 /* clock divider */

Definition at line 94 of file ssb_driver_extif.h.

#define SSB_EXTCFG_CLKDIV_2   0x0 /* backplane/2 */

Definition at line 96 of file ssb_driver_extif.h.

#define SSB_EXTCFG_CLKDIV_3   0x40 /* backplane/3 */

Definition at line 97 of file ssb_driver_extif.h.

#define SSB_EXTCFG_CLKDIV_4   0x80 /* backplane/4 */

Definition at line 98 of file ssb_driver_extif.h.

#define SSB_EXTCFG_CLKDIV_SHIFT   6

Definition at line 95 of file ssb_driver_extif.h.

#define SSB_EXTCFG_CLKEN   (1 << 8) /* clock enable */

Definition at line 99 of file ssb_driver_extif.h.

#define SSB_EXTCFG_DS16   (1 << 4) /* destsize: 0=8bit, 1=16bit */

Definition at line 92 of file ssb_driver_extif.h.

#define SSB_EXTCFG_EN   (1 << 0) /* enable */

Definition at line 86 of file ssb_driver_extif.h.

#define SSB_EXTCFG_MODE   0xE /* mode */

Definition at line 87 of file ssb_driver_extif.h.

#define SSB_EXTCFG_MODE_FLASH   0x0 /* flash/asynchronous mode */

Definition at line 89 of file ssb_driver_extif.h.

#define SSB_EXTCFG_MODE_PCMCIA   0x4 /* pcmcia mode */

Definition at line 91 of file ssb_driver_extif.h.

#define SSB_EXTCFG_MODE_SHIFT   1

Definition at line 88 of file ssb_driver_extif.h.

#define SSB_EXTCFG_MODE_SYNC   0x2 /* synchronous mode */

Definition at line 90 of file ssb_driver_extif.h.

#define SSB_EXTCFG_STROBE   (1 << 9) /* size/bytestrobe (synch only) */

Definition at line 100 of file ssb_driver_extif.h.

#define SSB_EXTIF_CFGIF_BASE (   x)    ((x) + 0x800000)

Definition at line 27 of file ssb_driver_extif.h.

#define SSB_EXTIF_CLOCK_MII   0x0050

Definition at line 66 of file ssb_driver_extif.h.

#define SSB_EXTIF_CLOCK_N   0x0044

Definition at line 63 of file ssb_driver_extif.h.

#define SSB_EXTIF_CLOCK_PCI   0x004C

Definition at line 65 of file ssb_driver_extif.h.

#define SSB_EXTIF_CLOCK_SB   0x0048

Definition at line 64 of file ssb_driver_extif.h.

#define SSB_EXTIF_CTL   0x0000

EXTIF core registers

Definition at line 48 of file ssb_driver_extif.h.

#define SSB_EXTIF_CTL_UARTEN   (1 << 0) /* UART enable */

Definition at line 49 of file ssb_driver_extif.h.

#define SSB_EXTIF_EJTAG_OUTEN   0x0090

Definition at line 70 of file ssb_driver_extif.h.

#define SSB_EXTIF_EXTSTAT   0x0004

Definition at line 50 of file ssb_driver_extif.h.

#define SSB_EXTIF_EXTSTAT_EIRQPIN   (1 << 1) /* External interrupt pin (ro) */

Definition at line 52 of file ssb_driver_extif.h.

#define SSB_EXTIF_EXTSTAT_EMODE   (1 << 0) /* Endian mode (ro) */

Definition at line 51 of file ssb_driver_extif.h.

#define SSB_EXTIF_EXTSTAT_GPIOIRQPIN   (1 << 2) /* GPIO interrupt pin (ro) */

Definition at line 53 of file ssb_driver_extif.h.

#define SSB_EXTIF_FLASH_BASE (   x)    ((x) + 0xc00000)

Definition at line 28 of file ssb_driver_extif.h.

#define SSB_EXTIF_FLASH_CFG   0x0028

Definition at line 60 of file ssb_driver_extif.h.

#define SSB_EXTIF_FLASH_WAITCNT   0x002C

Definition at line 61 of file ssb_driver_extif.h.

#define SSB_EXTIF_GPIO_IN   0x0060

Definition at line 67 of file ssb_driver_extif.h.

#define SSB_EXTIF_GPIO_INTMASK   0x0098

Definition at line 72 of file ssb_driver_extif.h.

#define SSB_EXTIF_GPIO_INTPOL   0x0094

Definition at line 71 of file ssb_driver_extif.h.

#define SSB_EXTIF_GPIO_OUT (   index)
Value:
({ \
BUILD_BUG_ON(index >= SSB_EXTIF_NR_GPIOOUT); \
SSB_EXTIF_GPIO_OUT_BASE + ((index) * 8); \
})

Definition at line 37 of file ssb_driver_extif.h.

#define SSB_EXTIF_GPIO_OUT_BASE   0x0064

Definition at line 68 of file ssb_driver_extif.h.

#define SSB_EXTIF_GPIO_OUTEN (   index)
Value:
({ \
BUILD_BUG_ON(index >= SSB_EXTIF_NR_GPIOOUT); \
SSB_EXTIF_GPIO_OUTEN_BASE + ((index) * 8); \
})

Definition at line 41 of file ssb_driver_extif.h.

#define SSB_EXTIF_GPIO_OUTEN_BASE   0x0068

Definition at line 69 of file ssb_driver_extif.h.

#define SSB_EXTIF_NR_GPIOOUT   5

Definition at line 30 of file ssb_driver_extif.h.

#define SSB_EXTIF_PCMCIA_ATTRWAIT   0x0018

Definition at line 56 of file ssb_driver_extif.h.

#define SSB_EXTIF_PCMCIA_CFG   0x0010

Definition at line 54 of file ssb_driver_extif.h.

#define SSB_EXTIF_PCMCIA_CFGBASE (   x)    ((x) + 0x200000)

Definition at line 26 of file ssb_driver_extif.h.

#define SSB_EXTIF_PCMCIA_IOBASE (   x)    ((x) + 0x100000)

Definition at line 25 of file ssb_driver_extif.h.

#define SSB_EXTIF_PCMCIA_IOWAIT   0x001C

Definition at line 57 of file ssb_driver_extif.h.

#define SSB_EXTIF_PCMCIA_MEMBASE (   x)    (x)

Definition at line 24 of file ssb_driver_extif.h.

#define SSB_EXTIF_PCMCIA_MEMWAIT   0x0014

Definition at line 55 of file ssb_driver_extif.h.

#define SSB_EXTIF_PROG_CFG   0x0020

Definition at line 58 of file ssb_driver_extif.h.

#define SSB_EXTIF_PROG_WAITCNT   0x0024

Definition at line 59 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_DATA   0x0300

Definition at line 73 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_FCR   0x0320

Definition at line 75 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_LCR   0x0330

Definition at line 76 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_LSR   0x0350

Definition at line 78 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_MCR   0x0340

Definition at line 77 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_MSR   0x0360

Definition at line 79 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_SCRATCH   0x0370

Definition at line 80 of file ssb_driver_extif.h.

#define SSB_EXTIF_UART_TIMER   0x0310

Definition at line 74 of file ssb_driver_extif.h.

#define SSB_EXTIF_WATCHDOG   0x0040

Definition at line 62 of file ssb_driver_extif.h.

#define SSB_EXTIF_WATCHDOG_CLK   48000000 /* Hz */

Definition at line 153 of file ssb_driver_extif.h.

#define SSB_FLASH_WCNT_0   0x0000001F /* waitcount0 */

Definition at line 144 of file ssb_driver_extif.h.

#define SSB_FLASH_WCNT_1   0x00001F00 /* waitcount1 */

Definition at line 145 of file ssb_driver_extif.h.

#define SSB_FLASH_WCNT_1_SHIFT   8

Definition at line 146 of file ssb_driver_extif.h.

#define SSB_FLASH_WCNT_2   0x001F0000 /* waitcount2 */

Definition at line 147 of file ssb_driver_extif.h.

#define SSB_FLASH_WCNT_2_SHIFT   16

Definition at line 148 of file ssb_driver_extif.h.

#define SSB_FLASH_WCNT_3   0x1F000000 /* waitcount3 */

Definition at line 149 of file ssb_driver_extif.h.

#define SSB_FLASH_WCNT_3_SHIFT   24

Definition at line 150 of file ssb_driver_extif.h.

#define SSB_PCMCIA_ATTW_0   0x0000003F /* waitcount0 */

Definition at line 112 of file ssb_driver_extif.h.

#define SSB_PCMCIA_ATTW_1   0x00001F00 /* waitcount1 */

Definition at line 113 of file ssb_driver_extif.h.

#define SSB_PCMCIA_ATTW_1_SHIFT   8

Definition at line 114 of file ssb_driver_extif.h.

#define SSB_PCMCIA_ATTW_2   0x001F0000 /* waitcount2 */

Definition at line 115 of file ssb_driver_extif.h.

#define SSB_PCMCIA_ATTW_2_SHIFT   16

Definition at line 116 of file ssb_driver_extif.h.

#define SSB_PCMCIA_ATTW_3   0x1F000000 /* waitcount3 */

Definition at line 117 of file ssb_driver_extif.h.

#define SSB_PCMCIA_ATTW_3_SHIFT   24

Definition at line 118 of file ssb_driver_extif.h.

#define SSB_PCMCIA_IOW_0   0x0000003F /* waitcount0 */

Definition at line 121 of file ssb_driver_extif.h.

#define SSB_PCMCIA_IOW_1   0x00001F00 /* waitcount1 */

Definition at line 122 of file ssb_driver_extif.h.

#define SSB_PCMCIA_IOW_1_SHIFT   8

Definition at line 123 of file ssb_driver_extif.h.

#define SSB_PCMCIA_IOW_2   0x001F0000 /* waitcount2 */

Definition at line 124 of file ssb_driver_extif.h.

#define SSB_PCMCIA_IOW_2_SHIFT   16

Definition at line 125 of file ssb_driver_extif.h.

#define SSB_PCMCIA_IOW_3   0x1F000000 /* waitcount3 */

Definition at line 126 of file ssb_driver_extif.h.

#define SSB_PCMCIA_IOW_3_SHIFT   24

Definition at line 127 of file ssb_driver_extif.h.

#define SSB_PCMCIA_MEMW_0   0x0000003F /* waitcount0 */

Definition at line 103 of file ssb_driver_extif.h.

#define SSB_PCMCIA_MEMW_1   0x00001F00 /* waitcount1 */

Definition at line 104 of file ssb_driver_extif.h.

#define SSB_PCMCIA_MEMW_1_SHIFT   8

Definition at line 105 of file ssb_driver_extif.h.

#define SSB_PCMCIA_MEMW_2   0x001F0000 /* waitcount2 */

Definition at line 106 of file ssb_driver_extif.h.

#define SSB_PCMCIA_MEMW_2_SHIFT   16

Definition at line 107 of file ssb_driver_extif.h.

#define SSB_PCMCIA_MEMW_3   0x1F000000 /* waitcount3 */

Definition at line 108 of file ssb_driver_extif.h.

#define SSB_PCMCIA_MEMW_3_SHIFT   24

Definition at line 109 of file ssb_driver_extif.h.

#define SSB_PROG_W0   0x0000000C

Definition at line 138 of file ssb_driver_extif.h.

#define SSB_PROG_W1   0x00000A00

Definition at line 139 of file ssb_driver_extif.h.

#define SSB_PROG_W2   0x00020000

Definition at line 140 of file ssb_driver_extif.h.

#define SSB_PROG_W3   0x01000000

Definition at line 141 of file ssb_driver_extif.h.

#define SSB_PROG_WCNT_0   0x0000001F /* waitcount0 */

Definition at line 130 of file ssb_driver_extif.h.

#define SSB_PROG_WCNT_1   0x00001F00 /* waitcount1 */

Definition at line 131 of file ssb_driver_extif.h.

#define SSB_PROG_WCNT_1_SHIFT   8

Definition at line 132 of file ssb_driver_extif.h.

#define SSB_PROG_WCNT_2   0x001F0000 /* waitcount2 */

Definition at line 133 of file ssb_driver_extif.h.

#define SSB_PROG_WCNT_2_SHIFT   16

Definition at line 134 of file ssb_driver_extif.h.

#define SSB_PROG_WCNT_3   0x1F000000 /* waitcount3 */

Definition at line 135 of file ssb_driver_extif.h.

#define SSB_PROG_WCNT_3_SHIFT   24

Definition at line 136 of file ssb_driver_extif.h.