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

Go to the source code of this file.

Data Structures

struct  desc_t
 
struct  port_status_t
 

Macros

#define RESET_WHILE_LOADING   0
 
#define DETECT_RAM   0 /* needed for > 4MB RAM, 16 MB maximum */
 
#define QUICC_MEMCPY_USES_PLX   1 /* must be used if the host has > 256 MB RAM */
 
#define STATUS_CABLE_V35   2
 
#define STATUS_CABLE_X21   3
 
#define STATUS_CABLE_V24   4
 
#define STATUS_CABLE_EIA530   5
 
#define STATUS_CABLE_INVALID   6
 
#define STATUS_CABLE_NONE   7
 
#define STATUS_CABLE_DCE   0x8000
 
#define STATUS_CABLE_DSR   0x0010
 
#define STATUS_CABLE_DCD   0x0008
 
#define STATUS_CABLE_PM_SHIFT   5
 
#define PDM_OFFSET   0x1000
 
#define TX_BUFFERS   10 /* per port */
 
#define RX_BUFFERS   30
 
#define RX_QUEUE_LENGTH   40 /* card->host queue length - per card */
 
#define PACKET_EMPTY   0x00
 
#define PACKET_FULL   0x10
 
#define PACKET_SENT   0x20 /* TX only */
 
#define PACKET_UNDERRUN   0x30 /* TX only */
 
#define PACKET_PORT_MASK   0x03 /* RX only */
 
#define DOORBELL_FROM_CARD_TX_0   0 /* packet sent by the card */
 
#define DOORBELL_FROM_CARD_TX_1   1
 
#define DOORBELL_FROM_CARD_TX_2   2
 
#define DOORBELL_FROM_CARD_TX_3   3
 
#define DOORBELL_FROM_CARD_RX   4
 
#define DOORBELL_FROM_CARD_CABLE_0   5 /* cable/PM/etc. changed */
 
#define DOORBELL_FROM_CARD_CABLE_1   6
 
#define DOORBELL_FROM_CARD_CABLE_2   7
 
#define DOORBELL_FROM_CARD_CABLE_3   8
 
#define DOORBELL_TO_CARD_OPEN_0   0
 
#define DOORBELL_TO_CARD_OPEN_1   1
 
#define DOORBELL_TO_CARD_OPEN_2   2
 
#define DOORBELL_TO_CARD_OPEN_3   3
 
#define DOORBELL_TO_CARD_CLOSE_0   4
 
#define DOORBELL_TO_CARD_CLOSE_1   5
 
#define DOORBELL_TO_CARD_CLOSE_2   6
 
#define DOORBELL_TO_CARD_CLOSE_3   7
 
#define DOORBELL_TO_CARD_TX_0   8 /* outbound packet queued */
 
#define DOORBELL_TO_CARD_TX_1   9
 
#define DOORBELL_TO_CARD_TX_2   10
 
#define DOORBELL_TO_CARD_TX_3   11
 
#define TASK_SCC_0   12
 
#define TASK_SCC_1   13
 
#define TASK_SCC_2   14
 
#define TASK_SCC_3   15
 
#define ALIGN32(x)   (((x) + 3) & 0xFFFFFFFC)
 
#define BUFFER_LENGTH   ALIGN32(HDLC_MAX_MRU + 4) /* 4 bytes for 32-bit CRC */
 
#define BUFFERS_ADDR   0x4000 /* 16 KB */
 
#define PLX_OFFSET   0
 
#define PLX_MAILBOX_0   (PLX_OFFSET + 0x40)
 
#define PLX_MAILBOX_1   (PLX_OFFSET + 0x44)
 
#define PLX_MAILBOX_2   (PLX_OFFSET + 0x48)
 
#define PLX_MAILBOX_3   (PLX_OFFSET + 0x4C)
 
#define PLX_MAILBOX_4   (PLX_OFFSET + 0x50)
 
#define PLX_MAILBOX_5   (PLX_OFFSET + 0x54)
 
#define PLX_MAILBOX_6   (PLX_OFFSET + 0x58)
 
#define PLX_MAILBOX_7   (PLX_OFFSET + 0x5C)
 
#define PLX_DOORBELL_TO_CARD   (PLX_OFFSET + 0x60)
 
#define PLX_DOORBELL_FROM_CARD   (PLX_OFFSET + 0x64)
 
#define PLX_INTERRUPT_CS   (PLX_OFFSET + 0x68)
 
#define PLX_CONTROL   (PLX_OFFSET + 0x6C)
 
#define DESC_LENGTH   12
 
#define STATUS_OPEN   0
 
#define STATUS_CABLE   (STATUS_OPEN + 4)
 
#define STATUS_RX_OVERRUNS   (STATUS_CABLE + 4)
 
#define STATUS_RX_FRAME_ERRORS   (STATUS_RX_OVERRUNS + 4)
 
#define STATUS_PARITY   (STATUS_RX_FRAME_ERRORS + 4)
 
#define STATUS_ENCODING   (STATUS_PARITY + 4)
 
#define STATUS_CLOCKING   (STATUS_ENCODING + 4)
 
#define STATUS_TX_DESCS   (STATUS_CLOCKING + 4)
 

Macro Definition Documentation

#define ALIGN32 (   x)    (((x) + 3) & 0xFFFFFFFC)

Definition at line 73 of file wanxl.h.

#define BUFFER_LENGTH   ALIGN32(HDLC_MAX_MRU + 4) /* 4 bytes for 32-bit CRC */

Definition at line 74 of file wanxl.h.

#define BUFFERS_ADDR   0x4000 /* 16 KB */

Definition at line 77 of file wanxl.h.

#define DESC_LENGTH   12

Definition at line 114 of file wanxl.h.

#define DETECT_RAM   0 /* needed for > 4MB RAM, 16 MB maximum */

Definition at line 15 of file wanxl.h.

#define DOORBELL_FROM_CARD_CABLE_0   5 /* cable/PM/etc. changed */

Definition at line 49 of file wanxl.h.

#define DOORBELL_FROM_CARD_CABLE_1   6

Definition at line 50 of file wanxl.h.

#define DOORBELL_FROM_CARD_CABLE_2   7

Definition at line 51 of file wanxl.h.

#define DOORBELL_FROM_CARD_CABLE_3   8

Definition at line 52 of file wanxl.h.

#define DOORBELL_FROM_CARD_RX   4

Definition at line 48 of file wanxl.h.

#define DOORBELL_FROM_CARD_TX_0   0 /* packet sent by the card */

Definition at line 44 of file wanxl.h.

#define DOORBELL_FROM_CARD_TX_1   1

Definition at line 45 of file wanxl.h.

#define DOORBELL_FROM_CARD_TX_2   2

Definition at line 46 of file wanxl.h.

#define DOORBELL_FROM_CARD_TX_3   3

Definition at line 47 of file wanxl.h.

#define DOORBELL_TO_CARD_CLOSE_0   4

Definition at line 58 of file wanxl.h.

#define DOORBELL_TO_CARD_CLOSE_1   5

Definition at line 59 of file wanxl.h.

#define DOORBELL_TO_CARD_CLOSE_2   6

Definition at line 60 of file wanxl.h.

#define DOORBELL_TO_CARD_CLOSE_3   7

Definition at line 61 of file wanxl.h.

#define DOORBELL_TO_CARD_OPEN_0   0

Definition at line 54 of file wanxl.h.

#define DOORBELL_TO_CARD_OPEN_1   1

Definition at line 55 of file wanxl.h.

#define DOORBELL_TO_CARD_OPEN_2   2

Definition at line 56 of file wanxl.h.

#define DOORBELL_TO_CARD_OPEN_3   3

Definition at line 57 of file wanxl.h.

#define DOORBELL_TO_CARD_TX_0   8 /* outbound packet queued */

Definition at line 62 of file wanxl.h.

#define DOORBELL_TO_CARD_TX_1   9

Definition at line 63 of file wanxl.h.

#define DOORBELL_TO_CARD_TX_2   10

Definition at line 64 of file wanxl.h.

#define DOORBELL_TO_CARD_TX_3   11

Definition at line 65 of file wanxl.h.

#define PACKET_EMPTY   0x00

Definition at line 37 of file wanxl.h.

#define PACKET_FULL   0x10

Definition at line 38 of file wanxl.h.

#define PACKET_PORT_MASK   0x03 /* RX only */

Definition at line 41 of file wanxl.h.

#define PACKET_SENT   0x20 /* TX only */

Definition at line 39 of file wanxl.h.

#define PACKET_UNDERRUN   0x30 /* TX only */

Definition at line 40 of file wanxl.h.

#define PDM_OFFSET   0x1000

Definition at line 31 of file wanxl.h.

#define PLX_CONTROL   (PLX_OFFSET + 0x6C)

Definition at line 96 of file wanxl.h.

#define PLX_DOORBELL_FROM_CARD   (PLX_OFFSET + 0x64)

Definition at line 94 of file wanxl.h.

#define PLX_DOORBELL_TO_CARD   (PLX_OFFSET + 0x60)

Definition at line 93 of file wanxl.h.

#define PLX_INTERRUPT_CS   (PLX_OFFSET + 0x68)

Definition at line 95 of file wanxl.h.

#define PLX_MAILBOX_0   (PLX_OFFSET + 0x40)

Definition at line 85 of file wanxl.h.

#define PLX_MAILBOX_1   (PLX_OFFSET + 0x44)

Definition at line 86 of file wanxl.h.

#define PLX_MAILBOX_2   (PLX_OFFSET + 0x48)

Definition at line 87 of file wanxl.h.

#define PLX_MAILBOX_3   (PLX_OFFSET + 0x4C)

Definition at line 88 of file wanxl.h.

#define PLX_MAILBOX_4   (PLX_OFFSET + 0x50)

Definition at line 89 of file wanxl.h.

#define PLX_MAILBOX_5   (PLX_OFFSET + 0x54)

Definition at line 90 of file wanxl.h.

#define PLX_MAILBOX_6   (PLX_OFFSET + 0x58)

Definition at line 91 of file wanxl.h.

#define PLX_MAILBOX_7   (PLX_OFFSET + 0x5C)

Definition at line 92 of file wanxl.h.

#define PLX_OFFSET   0

Definition at line 80 of file wanxl.h.

#define QUICC_MEMCPY_USES_PLX   1 /* must be used if the host has > 256 MB RAM */

Definition at line 16 of file wanxl.h.

#define RESET_WHILE_LOADING   0

Definition at line 12 of file wanxl.h.

#define RX_BUFFERS   30

Definition at line 34 of file wanxl.h.

#define RX_QUEUE_LENGTH   40 /* card->host queue length - per card */

Definition at line 35 of file wanxl.h.

#define STATUS_CABLE   (STATUS_OPEN + 4)

Definition at line 119 of file wanxl.h.

#define STATUS_CABLE_DCD   0x0008

Definition at line 28 of file wanxl.h.

#define STATUS_CABLE_DCE   0x8000

Definition at line 26 of file wanxl.h.

#define STATUS_CABLE_DSR   0x0010

Definition at line 27 of file wanxl.h.

#define STATUS_CABLE_EIA530   5

Definition at line 22 of file wanxl.h.

#define STATUS_CABLE_INVALID   6

Definition at line 23 of file wanxl.h.

#define STATUS_CABLE_NONE   7

Definition at line 24 of file wanxl.h.

#define STATUS_CABLE_PM_SHIFT   5

Definition at line 29 of file wanxl.h.

#define STATUS_CABLE_V24   4

Definition at line 21 of file wanxl.h.

#define STATUS_CABLE_V35   2

Definition at line 19 of file wanxl.h.

#define STATUS_CABLE_X21   3

Definition at line 20 of file wanxl.h.

#define STATUS_CLOCKING   (STATUS_ENCODING + 4)

Definition at line 126 of file wanxl.h.

#define STATUS_ENCODING   (STATUS_PARITY + 4)

Definition at line 125 of file wanxl.h.

#define STATUS_OPEN   0

Definition at line 118 of file wanxl.h.

#define STATUS_PARITY   (STATUS_RX_FRAME_ERRORS + 4)

Definition at line 124 of file wanxl.h.

#define STATUS_RX_FRAME_ERRORS   (STATUS_RX_OVERRUNS + 4)

Definition at line 121 of file wanxl.h.

#define STATUS_RX_OVERRUNS   (STATUS_CABLE + 4)

Definition at line 120 of file wanxl.h.

#define STATUS_TX_DESCS   (STATUS_CLOCKING + 4)

Definition at line 127 of file wanxl.h.

#define TASK_SCC_0   12

Definition at line 68 of file wanxl.h.

#define TASK_SCC_1   13

Definition at line 69 of file wanxl.h.

#define TASK_SCC_2   14

Definition at line 70 of file wanxl.h.

#define TASK_SCC_3   15

Definition at line 71 of file wanxl.h.

#define TX_BUFFERS   10 /* per port */

Definition at line 33 of file wanxl.h.