Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | OboeSlot |
struct | OboeRing |
struct | toshoboe_cb |
Macros | |
#define | OBOE_IO_EXTENT 0x1f |
#define | OBOE_REG(i) (i+(self->base)) |
#define | OBOE_RXSLOT OBOE_REG(0x0) |
#define | OBOE_TXSLOT OBOE_REG(0x1) |
#define | OBOE_SLOT_MASK 0x3f |
#define | OBOE_TXRING_OFFSET 0x200 |
#define | OBOE_TXRING_OFFSET_IN_SLOTS 0x40 |
#define | OBOE_RING_BASE0 OBOE_REG(0x4) |
#define | OBOE_RING_BASE1 OBOE_REG(0x5) |
#define | OBOE_RING_BASE2 OBOE_REG(0x2) |
#define | OBOE_RING_BASE3 OBOE_REG(0x3) |
#define | OBOE_RING_SIZE OBOE_REG(0x7) |
#define | OBOE_RING_SIZE_RX4 0x00 |
#define | OBOE_RING_SIZE_RX8 0x01 |
#define | OBOE_RING_SIZE_RX16 0x03 |
#define | OBOE_RING_SIZE_RX32 0x07 |
#define | OBOE_RING_SIZE_RX64 0x0f |
#define | OBOE_RING_SIZE_TX4 0x00 |
#define | OBOE_RING_SIZE_TX8 0x10 |
#define | OBOE_RING_SIZE_TX16 0x30 |
#define | OBOE_RING_SIZE_TX32 0x70 |
#define | OBOE_RING_SIZE_TX64 0xf0 |
#define | OBOE_RING_MAX_SIZE 64 |
#define | OBOE_PROMPT OBOE_REG(0x9) |
#define | OBOE_PROMPT_BIT 0x1 |
#define | OBOE_ISR OBOE_REG(0xc) |
#define | OBOE_IER OBOE_REG(0xd) |
#define | OBOE_INT_TXDONE 0x80 |
#define | OBOE_INT_RXDONE 0x40 |
#define | OBOE_INT_TXUNDER 0x20 |
#define | OBOE_INT_RXOVER 0x10 |
#define | OBOE_INT_SIP 0x08 |
#define | OBOE_INT_MASK 0xf8 |
#define | OBOE_CONFIG1 OBOE_REG(0xe) |
#define | OBOE_CONFIG1_RST 0x01 |
#define | OBOE_CONFIG1_DISABLE 0x02 |
#define | OBOE_CONFIG1_4 0x08 |
#define | OBOE_CONFIG1_8 0x08 |
#define | OBOE_CONFIG1_ON 0x8 |
#define | OBOE_CONFIG1_RESET 0xf |
#define | OBOE_CONFIG1_OFF 0xe |
#define | OBOE_STATUS OBOE_REG(0xf) |
#define | OBOE_STATUS_RXBUSY 0x10 |
#define | OBOE_STATUS_FIRRX 0x04 |
#define | OBOE_STATUS_MIRRX 0x02 |
#define | OBOE_STATUS_SIRRX 0x01 |
#define | OBOE_CONFIG0L OBOE_REG(0x10) |
#define | OBOE_CONFIG0H OBOE_REG(0x11) |
#define | OBOE_CONFIG0H_TXONLOOP 0x80 /*Transmit when looping (dangerous) */ |
#define | OBOE_CONFIG0H_LOOP 0x40 /*Loopback Tx->Rx */ |
#define | OBOE_CONFIG0H_ENTX 0x10 /*Enable Tx */ |
#define | OBOE_CONFIG0H_ENRX 0x08 /*Enable Rx */ |
#define | OBOE_CONFIG0H_ENDMAC 0x04 /*Enable/reset* the DMA controller */ |
#define | OBOE_CONFIG0H_RCVANY 0x02 /*DMA mode 1=bytes, 0=dwords */ |
#define | OBOE_CONFIG0L_CRC16 0x80 /*CRC 1=16 bit 0=32 bit */ |
#define | OBOE_CONFIG0L_ENFIR 0x40 /*Enable FIR */ |
#define | OBOE_CONFIG0L_ENMIR 0x20 /*Enable MIR */ |
#define | OBOE_CONFIG0L_ENSIR 0x10 /*Enable SIR */ |
#define | OBOE_CONFIG0L_ENSIRF 0x08 /*Enable SIR framer */ |
#define | OBOE_CONFIG0L_SIRTEST 0x04 /*Enable SIR framer in MIR and FIR */ |
#define | OBOE_CONFIG0L_INVERTTX 0x02 /*Invert Tx Line */ |
#define | OBOE_CONFIG0L_INVERTRX 0x01 /*Invert Rx Line */ |
#define | OBOE_BOF OBOE_REG(0x12) |
#define | OBOE_EOF OBOE_REG(0x13) |
#define | OBOE_ENABLEL OBOE_REG(0x14) |
#define | OBOE_ENABLEH OBOE_REG(0x15) |
#define | OBOE_ENABLEH_PHYANDCLOCK 0x80 /*Toggle low to copy config in */ |
#define | OBOE_ENABLEH_CONFIGERR 0x40 |
#define | OBOE_ENABLEH_FIRON 0x20 |
#define | OBOE_ENABLEH_MIRON 0x10 |
#define | OBOE_ENABLEH_SIRON 0x08 |
#define | OBOE_ENABLEH_ENTX 0x04 |
#define | OBOE_ENABLEH_ENRX 0x02 |
#define | OBOE_ENABLEH_CRC16 0x01 |
#define | OBOE_ENABLEL_BROADCAST 0x01 |
#define | OBOE_CURR_PCONFIGL OBOE_REG(0x16) /*Current config */ |
#define | OBOE_CURR_PCONFIGH OBOE_REG(0x17) |
#define | OBOE_NEW_PCONFIGL OBOE_REG(0x18) |
#define | OBOE_NEW_PCONFIGH OBOE_REG(0x19) |
#define | OBOE_PCONFIGH_BAUDMASK 0xfc |
#define | OBOE_PCONFIGH_WIDTHMASK 0x04 |
#define | OBOE_PCONFIGL_WIDTHMASK 0xe0 |
#define | OBOE_PCONFIGL_PREAMBLEMASK 0x1f |
#define | OBOE_PCONFIG_BAUDMASK 0xfc00 |
#define | OBOE_PCONFIG_BAUDSHIFT 10 |
#define | OBOE_PCONFIG_WIDTHMASK 0x04e0 |
#define | OBOE_PCONFIG_WIDTHSHIFT 5 |
#define | OBOE_PCONFIG_PREAMBLEMASK 0x001f |
#define | OBOE_PCONFIG_PREAMBLESHIFT 0 |
#define | OBOE_MAXLENL OBOE_REG(0x1a) |
#define | OBOE_MAXLENH OBOE_REG(0x1b) |
#define | OBOE_RXCOUNTH OBOE_REG(0x1c) /*Reset on recipt */ |
#define | OBOE_RXCOUNTL OBOE_REG(0x1d) /*of whole packet */ |
#define | PCI_DEVICE_ID_FIR701 0x0701 |
#define | PCI_DEVICE_ID_FIRD01 0x0d01 |
#define | OBOE_NTASKS OBOE_TXRING_OFFSET_IN_SLOTS |
#define | OBOE_RING_LEN (sizeof(struct OboeRing)) |
#define | OBOE_CTL_TX_HW_OWNS 0x80 /*W/R This slot owned by the hardware */ |
#define | OBOE_CTL_TX_DISTX_CRC 0x40 /*W Disable CRC generation for [FM]IR */ |
#define | OBOE_CTL_TX_BAD_CRC 0x20 /*W Generate bad CRC */ |
#define | OBOE_CTL_TX_SIP 0x10 /*W Generate an SIP after xmittion */ |
#define | OBOE_CTL_TX_MKUNDER 0x08 /*W Generate an underrun error */ |
#define | OBOE_CTL_TX_RTCENTX 0x04 /*W Enable receiver and generate TXdone */ |
#define | OBOE_CTL_TX_UNDER 0x01 /*R Set by hardware to indicate underrun */ |
#define | OBOE_CTL_RX_HW_OWNS 0x80 /*W/R This slot owned by hardware */ |
#define | OBOE_CTL_RX_PHYERR 0x40 /*R Decoder error on receiption */ |
#define | OBOE_CTL_RX_CRCERR 0x20 /*R CRC error only set for [FM]IR */ |
#define | OBOE_CTL_RX_LENGTH 0x10 /*R Packet > max Rx length */ |
#define | OBOE_CTL_RX_OVER 0x08 /*R set to indicate an overflow */ |
#define | OBOE_CTL_RX_SIRBAD 0x04 /*R SIR had BOF in packet or ABORT sequence */ |
#define | OBOE_CTL_RX_RXEOF 0x02 /*R Finished receiving on this slot */ |
Variables | |
struct OboeSlot | __packed |
#define OBOE_BOF OBOE_REG(0x12) |
Definition at line 219 of file donauboe.h.
#define OBOE_CONFIG0H OBOE_REG(0x11) |
Definition at line 201 of file donauboe.h.
#define OBOE_CONFIG0H_ENDMAC 0x04 /*Enable/reset* the DMA controller */ |
Definition at line 207 of file donauboe.h.
#define OBOE_CONFIG0H_ENRX 0x08 /*Enable Rx */ |
Definition at line 206 of file donauboe.h.
#define OBOE_CONFIG0H_ENTX 0x10 /*Enable Tx */ |
Definition at line 205 of file donauboe.h.
#define OBOE_CONFIG0H_LOOP 0x40 /*Loopback Tx->Rx */ |
Definition at line 204 of file donauboe.h.
#define OBOE_CONFIG0H_RCVANY 0x02 /*DMA mode 1=bytes, 0=dwords */ |
Definition at line 208 of file donauboe.h.
#define OBOE_CONFIG0H_TXONLOOP 0x80 /*Transmit when looping (dangerous) */ |
Definition at line 203 of file donauboe.h.
#define OBOE_CONFIG0L OBOE_REG(0x10) |
Definition at line 200 of file donauboe.h.
#define OBOE_CONFIG0L_CRC16 0x80 /*CRC 1=16 bit 0=32 bit */ |
Definition at line 210 of file donauboe.h.
#define OBOE_CONFIG0L_ENFIR 0x40 /*Enable FIR */ |
Definition at line 211 of file donauboe.h.
#define OBOE_CONFIG0L_ENMIR 0x20 /*Enable MIR */ |
Definition at line 212 of file donauboe.h.
#define OBOE_CONFIG0L_ENSIR 0x10 /*Enable SIR */ |
Definition at line 213 of file donauboe.h.
#define OBOE_CONFIG0L_ENSIRF 0x08 /*Enable SIR framer */ |
Definition at line 214 of file donauboe.h.
#define OBOE_CONFIG0L_INVERTRX 0x01 /*Invert Rx Line */ |
Definition at line 217 of file donauboe.h.
#define OBOE_CONFIG0L_INVERTTX 0x02 /*Invert Tx Line */ |
Definition at line 216 of file donauboe.h.
#define OBOE_CONFIG0L_SIRTEST 0x04 /*Enable SIR framer in MIR and FIR */ |
Definition at line 215 of file donauboe.h.
#define OBOE_CONFIG1 OBOE_REG(0xe) |
Definition at line 182 of file donauboe.h.
#define OBOE_CONFIG1_4 0x08 |
Definition at line 185 of file donauboe.h.
#define OBOE_CONFIG1_8 0x08 |
Definition at line 186 of file donauboe.h.
#define OBOE_CONFIG1_DISABLE 0x02 |
Definition at line 184 of file donauboe.h.
#define OBOE_CONFIG1_OFF 0xe |
Definition at line 190 of file donauboe.h.
#define OBOE_CONFIG1_ON 0x8 |
Definition at line 188 of file donauboe.h.
#define OBOE_CONFIG1_RESET 0xf |
Definition at line 189 of file donauboe.h.
#define OBOE_CONFIG1_RST 0x01 |
Definition at line 183 of file donauboe.h.
#define OBOE_CTL_RX_CRCERR 0x20 /*R CRC error only set for [FM]IR */ |
Definition at line 301 of file donauboe.h.
#define OBOE_CTL_RX_HW_OWNS 0x80 /*W/R This slot owned by hardware */ |
Definition at line 299 of file donauboe.h.
#define OBOE_CTL_RX_LENGTH 0x10 /*R Packet > max Rx length */ |
Definition at line 302 of file donauboe.h.
#define OBOE_CTL_RX_OVER 0x08 /*R set to indicate an overflow */ |
Definition at line 303 of file donauboe.h.
#define OBOE_CTL_RX_PHYERR 0x40 /*R Decoder error on receiption */ |
Definition at line 300 of file donauboe.h.
#define OBOE_CTL_RX_RXEOF 0x02 /*R Finished receiving on this slot */ |
Definition at line 305 of file donauboe.h.
#define OBOE_CTL_RX_SIRBAD 0x04 /*R SIR had BOF in packet or ABORT sequence */ |
Definition at line 304 of file donauboe.h.
#define OBOE_CTL_TX_BAD_CRC 0x20 /*W Generate bad CRC */ |
Definition at line 291 of file donauboe.h.
#define OBOE_CTL_TX_DISTX_CRC 0x40 /*W Disable CRC generation for [FM]IR */ |
Definition at line 290 of file donauboe.h.
#define OBOE_CTL_TX_HW_OWNS 0x80 /*W/R This slot owned by the hardware */ |
Definition at line 289 of file donauboe.h.
#define OBOE_CTL_TX_MKUNDER 0x08 /*W Generate an underrun error */ |
Definition at line 293 of file donauboe.h.
#define OBOE_CTL_TX_RTCENTX 0x04 /*W Enable receiver and generate TXdone */ |
Definition at line 294 of file donauboe.h.
#define OBOE_CTL_TX_SIP 0x10 /*W Generate an SIP after xmittion */ |
Definition at line 292 of file donauboe.h.
#define OBOE_CTL_TX_UNDER 0x01 /*R Set by hardware to indicate underrun */ |
Definition at line 296 of file donauboe.h.
#define OBOE_CURR_PCONFIGH OBOE_REG(0x17) |
Definition at line 237 of file donauboe.h.
#define OBOE_CURR_PCONFIGL OBOE_REG(0x16) /*Current config */ |
Definition at line 236 of file donauboe.h.
#define OBOE_ENABLEH OBOE_REG(0x15) |
Definition at line 223 of file donauboe.h.
#define OBOE_ENABLEH_CONFIGERR 0x40 |
Definition at line 226 of file donauboe.h.
#define OBOE_ENABLEH_CRC16 0x01 |
Definition at line 232 of file donauboe.h.
#define OBOE_ENABLEH_ENRX 0x02 |
Definition at line 231 of file donauboe.h.
#define OBOE_ENABLEH_ENTX 0x04 |
Definition at line 230 of file donauboe.h.
#define OBOE_ENABLEH_FIRON 0x20 |
Definition at line 227 of file donauboe.h.
#define OBOE_ENABLEH_MIRON 0x10 |
Definition at line 228 of file donauboe.h.
#define OBOE_ENABLEH_PHYANDCLOCK 0x80 /*Toggle low to copy config in */ |
Definition at line 225 of file donauboe.h.
#define OBOE_ENABLEH_SIRON 0x08 |
Definition at line 229 of file donauboe.h.
#define OBOE_ENABLEL OBOE_REG(0x14) |
Definition at line 222 of file donauboe.h.
#define OBOE_ENABLEL_BROADCAST 0x01 |
Definition at line 234 of file donauboe.h.
#define OBOE_EOF OBOE_REG(0x13) |
Definition at line 220 of file donauboe.h.
#define OBOE_IER OBOE_REG(0xd) |
Definition at line 172 of file donauboe.h.
#define OBOE_INT_MASK 0xf8 |
Definition at line 179 of file donauboe.h.
#define OBOE_INT_RXDONE 0x40 |
Definition at line 175 of file donauboe.h.
#define OBOE_INT_RXOVER 0x10 |
Definition at line 177 of file donauboe.h.
#define OBOE_INT_SIP 0x08 |
Definition at line 178 of file donauboe.h.
#define OBOE_INT_TXDONE 0x80 |
Definition at line 174 of file donauboe.h.
#define OBOE_INT_TXUNDER 0x20 |
Definition at line 176 of file donauboe.h.
#define OBOE_IO_EXTENT 0x1f |
Definition at line 133 of file donauboe.h.
#define OBOE_ISR OBOE_REG(0xc) |
Definition at line 170 of file donauboe.h.
#define OBOE_MAXLENH OBOE_REG(0x1b) |
Definition at line 255 of file donauboe.h.
#define OBOE_MAXLENL OBOE_REG(0x1a) |
Definition at line 254 of file donauboe.h.
#define OBOE_NEW_PCONFIGH OBOE_REG(0x19) |
Definition at line 240 of file donauboe.h.
#define OBOE_NEW_PCONFIGL OBOE_REG(0x18) |
Definition at line 239 of file donauboe.h.
#define OBOE_NTASKS OBOE_TXRING_OFFSET_IN_SLOTS |
Definition at line 278 of file donauboe.h.
#define OBOE_PCONFIG_BAUDMASK 0xfc00 |
Definition at line 247 of file donauboe.h.
#define OBOE_PCONFIG_BAUDSHIFT 10 |
Definition at line 248 of file donauboe.h.
#define OBOE_PCONFIG_PREAMBLEMASK 0x001f |
Definition at line 251 of file donauboe.h.
#define OBOE_PCONFIG_PREAMBLESHIFT 0 |
Definition at line 252 of file donauboe.h.
#define OBOE_PCONFIG_WIDTHMASK 0x04e0 |
Definition at line 249 of file donauboe.h.
#define OBOE_PCONFIG_WIDTHSHIFT 5 |
Definition at line 250 of file donauboe.h.
#define OBOE_PCONFIGH_BAUDMASK 0xfc |
Definition at line 242 of file donauboe.h.
#define OBOE_PCONFIGH_WIDTHMASK 0x04 |
Definition at line 243 of file donauboe.h.
#define OBOE_PCONFIGL_PREAMBLEMASK 0x1f |
Definition at line 245 of file donauboe.h.
#define OBOE_PCONFIGL_WIDTHMASK 0xe0 |
Definition at line 244 of file donauboe.h.
#define OBOE_PROMPT OBOE_REG(0x9) |
Definition at line 166 of file donauboe.h.
#define OBOE_PROMPT_BIT 0x1 |
Definition at line 167 of file donauboe.h.
Definition at line 136 of file donauboe.h.
#define OBOE_RING_BASE0 OBOE_REG(0x4) |
Definition at line 145 of file donauboe.h.
#define OBOE_RING_BASE1 OBOE_REG(0x5) |
Definition at line 146 of file donauboe.h.
#define OBOE_RING_BASE2 OBOE_REG(0x2) |
Definition at line 147 of file donauboe.h.
#define OBOE_RING_BASE3 OBOE_REG(0x3) |
Definition at line 148 of file donauboe.h.
Definition at line 286 of file donauboe.h.
#define OBOE_RING_MAX_SIZE 64 |
Definition at line 163 of file donauboe.h.
#define OBOE_RING_SIZE OBOE_REG(0x7) |
Definition at line 151 of file donauboe.h.
#define OBOE_RING_SIZE_RX16 0x03 |
Definition at line 154 of file donauboe.h.
#define OBOE_RING_SIZE_RX32 0x07 |
Definition at line 155 of file donauboe.h.
#define OBOE_RING_SIZE_RX4 0x00 |
Definition at line 152 of file donauboe.h.
#define OBOE_RING_SIZE_RX64 0x0f |
Definition at line 156 of file donauboe.h.
#define OBOE_RING_SIZE_RX8 0x01 |
Definition at line 153 of file donauboe.h.
#define OBOE_RING_SIZE_TX16 0x30 |
Definition at line 159 of file donauboe.h.
#define OBOE_RING_SIZE_TX32 0x70 |
Definition at line 160 of file donauboe.h.
#define OBOE_RING_SIZE_TX4 0x00 |
Definition at line 157 of file donauboe.h.
#define OBOE_RING_SIZE_TX64 0xf0 |
Definition at line 161 of file donauboe.h.
#define OBOE_RING_SIZE_TX8 0x10 |
Definition at line 158 of file donauboe.h.
#define OBOE_RXCOUNTH OBOE_REG(0x1c) /*Reset on recipt */ |
Definition at line 257 of file donauboe.h.
#define OBOE_RXCOUNTL OBOE_REG(0x1d) /*of whole packet */ |
Definition at line 258 of file donauboe.h.
#define OBOE_RXSLOT OBOE_REG(0x0) |
Definition at line 137 of file donauboe.h.
#define OBOE_SLOT_MASK 0x3f |
Definition at line 139 of file donauboe.h.
#define OBOE_STATUS OBOE_REG(0xf) |
Definition at line 192 of file donauboe.h.
#define OBOE_STATUS_FIRRX 0x04 |
Definition at line 194 of file donauboe.h.
#define OBOE_STATUS_MIRRX 0x02 |
Definition at line 195 of file donauboe.h.
#define OBOE_STATUS_RXBUSY 0x10 |
Definition at line 193 of file donauboe.h.
#define OBOE_STATUS_SIRRX 0x01 |
Definition at line 196 of file donauboe.h.
#define OBOE_TXRING_OFFSET 0x200 |
Definition at line 141 of file donauboe.h.
#define OBOE_TXRING_OFFSET_IN_SLOTS 0x40 |
Definition at line 142 of file donauboe.h.
#define OBOE_TXSLOT OBOE_REG(0x1) |
Definition at line 138 of file donauboe.h.
#define PCI_DEVICE_ID_FIR701 0x0701 |
Definition at line 262 of file donauboe.h.
#define PCI_DEVICE_ID_FIRD01 0x0d01 |
Definition at line 266 of file donauboe.h.