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

Go to the source code of this file.

Data Structures

struct  cell_buf
 
struct  tx_ch_desc
 
struct  rx_ch_desc
 
struct  rx_q_entry
 
struct  MEMMAP
 
struct  hrz_vcc
 
struct  hrz_dev
 

Macros

#define DEV_LABEL   "hrz"
 
#define PCI_VENDOR_ID_MADGE   0x10B6
 
#define PCI_DEVICE_ID_MADGE_HORIZON   0x1000
 
#define PRINTK(severity, format, args...)   printk(severity DEV_LABEL ": " format "\n" , ## args)
 
#define PRINTD(bits, format, args...)
 
#define PRINTDB(bits, format, args...)
 
#define PRINTDM(bits, format, args...)
 
#define PRINTDE(bits, format, args...)
 
#define PRINTDD(sec, fmt, args...)
 
#define PRINTDDB(sec, fmt, args...)
 
#define PRINTDDM(sec, fmt, args...)
 
#define PRINTDDE(sec, fmt, args...)
 
#define SPARE_BUFFER_POOL_SIZE   MAX_VCS
 
#define HRZ_MAX_VPI   4
 
#define MIN_PCI_LATENCY   48
 
#define HRZ_IO_EXTENT   0x80
 
#define DATA_PORT_OFF   0x00
 
#define TX_CHANNEL_PORT_OFF   0x04
 
#define TX_DESCRIPTOR_PORT_OFF   0x08
 
#define MEMORY_PORT_OFF   0x0C
 
#define MEM_WR_ADDR_REG_OFF   0x14
 
#define MEM_RD_ADDR_REG_OFF   0x18
 
#define CONTROL_0_REG   0x1C
 
#define INT_SOURCE_REG_OFF   0x20
 
#define INT_ENABLE_REG_OFF   0x24
 
#define MASTER_RX_ADDR_REG_OFF   0x28
 
#define MASTER_RX_COUNT_REG_OFF   0x2C
 
#define MASTER_TX_ADDR_REG_OFF   0x30
 
#define MASTER_TX_COUNT_REG_OFF   0x34
 
#define TX_DESCRIPTOR_REG_OFF   0x38
 
#define TX_CHANNEL_CONFIG_COMMAND_OFF   0x40
 
#define TX_CHANNEL_CONFIG_DATA_OFF   0x44
 
#define TX_FREE_BUFFER_COUNT_OFF   0x48
 
#define RX_FREE_BUFFER_COUNT_OFF   0x4C
 
#define TX_CONFIG_OFF   0x50
 
#define TX_STATUS_OFF   0x54
 
#define RX_CONFIG_OFF   0x58
 
#define RX_LINE_CONFIG_OFF   0x5C
 
#define RX_QUEUE_RD_PTR_OFF   0x60
 
#define RX_QUEUE_WR_PTR_OFF   0x64
 
#define MAX_AAL5_CELL_COUNT_OFF   0x68
 
#define RX_CHANNEL_PORT_OFF   0x6C
 
#define TX_CELL_COUNT_OFF   0x70
 
#define RX_CELL_COUNT_OFF   0x74
 
#define HEC_ERROR_COUNT_OFF   0x78
 
#define UNASSIGNED_CELL_COUNT_OFF   0x7C
 
#define SEEPROM_DO   0x00000001
 
#define SEEPROM_DI   0x00000002
 
#define SEEPROM_SK   0x00000004
 
#define SEEPROM_CS   0x00000008
 
#define DEBUG_BIT_0   0x00000010
 
#define DEBUG_BIT_1   0x00000020
 
#define DEBUG_BIT_2   0x00000040
 
#define DEBUG_BIT_0_OE   0x00000100
 
#define DEBUG_BIT_1_OE   0x00000200
 
#define DEBUG_BIT_2_OE   0x00000400
 
#define DEBUG_BIT_0_STATE   0x00001000
 
#define DEBUG_BIT_1_STATE   0x00002000
 
#define DEBUG_BIT_2_STATE   0x00004000
 
#define GENERAL_BIT_0   0x00010000
 
#define GENERAL_BIT_1   0x00020000
 
#define GENERAL_BIT_2   0x00040000
 
#define GENERAL_BIT_3   0x00080000
 
#define RESET_HORIZON   0x00100000
 
#define RESET_ATM   0x00200000
 
#define RESET_RX   0x00400000
 
#define RESET_TX   0x00800000
 
#define RESET_HOST   0x01000000
 
#define TARGET_RETRY_DISABLE   0x04000000
 
#define ATM_LAYER_SELECT   0x08000000
 
#define ATM_LAYER_STATUS   0x10000000
 
#define RX_DATA_AV   0x00000001
 
#define RX_DISABLED   0x00000002
 
#define TIMING_MARKER   0x00000004
 
#define FORCED   0x00000008
 
#define RX_BUS_MASTER_COMPLETE   0x00000010
 
#define TX_BUS_MASTER_COMPLETE   0x00000020
 
#define ABR_TX_CELL_COUNT_INT   0x00000040
 
#define DEBUG_INT   0x00000080
 
#define MAX_PIO_COUNT   0x000000ff
 
#define MAX_TRANSFER_COUNT   0x00001ffc
 
#define MASTER_TX_AUTO_APPEND_DESC   0x80000000
 
#define PCR_TIMER_ACCESS   0x0000
 
#define SCR_TIMER_ACCESS   0x0001
 
#define BUCKET_CAPACITY_ACCESS   0x0002
 
#define BUCKET_FULLNESS_ACCESS   0x0003
 
#define RATE_TYPE_ACCESS   0x0004
 
#define TX_CHANNEL_CONFIG_MULT   0x0100
 
#define BUCKET_MAX_SIZE   0x003f
 
#define CLOCK_SELECT_SHIFT   4
 
#define CLOCK_DISABLE   0x00ff
 
#define IDLE_RATE_TYPE   0x0
 
#define ABR_RATE_TYPE   0x1
 
#define VBR_RATE_TYPE   0x2
 
#define CBR_RATE_TYPE   0x3
 
#define DRVR_DRVRBAR_ENABLE   0x0001
 
#define TXCLK_MUX_SELECT_RCLK   0x0002
 
#define TRANSMIT_TIMING_MARKER   0x0004
 
#define LOOPBACK_TIMING_MARKER   0x0008
 
#define TX_TEST_MODE_16MHz   0x0000
 
#define TX_TEST_MODE_8MHz   0x0010
 
#define TX_TEST_MODE_5_33MHz   0x0020
 
#define TX_TEST_MODE_4MHz   0x0030
 
#define TX_TEST_MODE_3_2MHz   0x0040
 
#define TX_TEST_MODE_2_66MHz   0x0050
 
#define TX_TEST_MODE_2_29MHz   0x0060
 
#define TX_NORMAL_OPERATION   0x0070
 
#define ABR_ROUND_ROBIN   0x0080
 
#define IDLE_CHANNELS_MASK   0x00FF
 
#define ABR_CELL_COUNT_REACHED_MULT   0x0100
 
#define ABR_CELL_COUNT_REACHED_MASK   0xFF
 
#define NON_USER_CELLS_IN_ONE_CHANNEL   0x0008
 
#define RX_ENABLE   0x0010
 
#define IGNORE_UNUSED_VPI_VCI_BITS_SET   0x0000
 
#define NON_USER_UNUSED_VPI_VCI_BITS_SET   0x0020
 
#define DISCARD_UNUSED_VPI_VCI_BITS_SET   0x0040
 
#define SIGNAL_LOSS   0x0001
 
#define FREQUENCY_DETECT_ERROR   0x0002
 
#define LOCK_DETECT_ERROR   0x0004
 
#define SELECT_INTERNAL_LOOPBACK   0x0008
 
#define LOCK_DETECT_ENABLE   0x0010
 
#define FREQUENCY_DETECT_ENABLE   0x0020
 
#define USER_FRAQ   0x0040
 
#define GXTALOUT_SELECT_DIV4   0x0080
 
#define GXTALOUT_SELECT_NO_GATING   0x0100
 
#define TIMING_MARKER_RECEIVED   0x0200
 
#define RX_CHANNEL_MASK   0x03FF
 
#define FLUSH_CHANNEL   0x4000
 
#define RX_CHANNEL_UPDATE_IN_PROGRESS   0x8000
 
#define RX_Q_ENTRY_LENGTH_MASK   0x0000FFFF
 
#define RX_Q_ENTRY_CHANNEL_SHIFT   16
 
#define SIMONS_DODGEY_MARKER   0x08000000
 
#define RX_CONGESTION_EXPERIENCED   0x10000000
 
#define RX_CRC_10_OK   0x20000000
 
#define RX_CRC_32_OK   0x40000000
 
#define RX_COMPLETE_FRAME   0x80000000
 
#define BUFFER_PTR_MASK   0x0000FFFF
 
#define RX_INT_THRESHOLD_MULT   0x00010000
 
#define RX_INT_THRESHOLD_MASK   0x07FF
 
#define INT_EVERY_N_CELLS   0x08000000
 
#define CONGESTION_EXPERIENCED   0x10000000
 
#define FIRST_CELL_OF_AAL5_FRAME   0x20000000
 
#define CHANNEL_TYPE_AAL5   0x00000000
 
#define CHANNEL_TYPE_RAW_CELLS   0x40000000
 
#define CHANNEL_TYPE_AAL3_4   0x80000000
 
#define BUFF_STATUS_MASK   0x00030000
 
#define BUFF_STATUS_EMPTY   0x00000000
 
#define BUFF_STATUS_CELL_AV   0x00010000
 
#define BUFF_STATUS_LAST_CELL_AV   0x00020000
 
#define RX_CHANNEL_DISABLED   0x00000000
 
#define RX_CHANNEL_IDLE   0x00000001
 
#define INITIAL_CRC   0xFFFFFFFF
 
#define TX_CHANS   8
 
#define RX_CHANS   1024
 
#define RX_QS   1024
 
#define MAX_VCS   RX_CHANS
 
#define BUFN1_SIZE   118
 
#define BUFN2_SIZE   124
 
#define BUFN3_SIZE   192
 
#define BUFN4_SIZE   1408
 
#define memmap   ((MEMMAP *)0)
 
#define BUF_PTR(cbptr)   ((cbptr) - (cell_buf *) 0)
 
#define INTERESTING_INTERRUPTS   (RX_DATA_AV | RX_DISABLED | TX_BUS_MASTER_COMPLETE | RX_BUS_MASTER_COMPLETE)
 
#define TX_AAL5_LIMIT   (190*ATM_CELL_PAYLOAD-ATM_AAL5_TRAILER)
 
#define RX_AAL5_LIMIT   ATM_MAX_AAL5_PDU
 
#define DW(x)   do{ x } while(0)
 
#define HRZ_DEV(atm_dev)   ((hrz_dev *) (atm_dev)->dev_data)
 
#define HRZ_VCC(atm_vcc)   ((hrz_vcc *) (atm_vcc)->dev_data)
 
#define YELLOW_LED   DEBUG_BIT_0
 
#define GREEN_LED   DEBUG_BIT_1
 
#define YELLOW_LED_OE   DEBUG_BIT_0_OE
 
#define GREEN_LED_OE   DEBUG_BIT_1_OE
 
#define GREEN_LED_OFF(dev)   wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) | GREEN_LED)
 
#define GREEN_LED_ON(dev)   wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) &~ GREEN_LED)
 
#define YELLOW_LED_OFF(dev)   wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) | YELLOW_LED)
 
#define YELLOW_LED_ON(dev)   wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) &~ YELLOW_LED)
 

Typedefs

typedef u8 HDW
 
typedef struct cell_buf cell_buf
 
typedef struct tx_ch_desc tx_ch_desc
 
typedef struct rx_ch_desc rx_ch_desc
 
typedef struct rx_q_entry rx_q_entry
 
typedef struct MEMMAP MEMMAP
 
typedef struct hrz_dev hrz_dev
 

Enumerations

enum  hrz_aal { aal0, aal34, aal5 }
 
enum  hrz_flags { tx_busy, rx_busy, ultra }
 
enum  rounding {
  round_up, round_down, round_nearest, round_up,
  round_down, round_nearest
}
 

Macro Definition Documentation

#define ABR_CELL_COUNT_REACHED_MASK   0xFF

Definition at line 232 of file horizon.h.

#define ABR_CELL_COUNT_REACHED_MULT   0x0100

Definition at line 231 of file horizon.h.

#define ABR_RATE_TYPE   0x1

Definition at line 208 of file horizon.h.

#define ABR_ROUND_ROBIN   0x0080

Definition at line 226 of file horizon.h.

#define ABR_TX_CELL_COUNT_INT   0x00000040

Definition at line 179 of file horizon.h.

#define ATM_LAYER_SELECT   0x08000000

Definition at line 167 of file horizon.h.

#define ATM_LAYER_STATUS   0x10000000

Definition at line 168 of file horizon.h.

#define BUCKET_CAPACITY_ACCESS   0x0002

Definition at line 194 of file horizon.h.

#define BUCKET_FULLNESS_ACCESS   0x0003

Definition at line 195 of file horizon.h.

#define BUCKET_MAX_SIZE   0x003f

Definition at line 200 of file horizon.h.

#define BUF_PTR (   cbptr)    ((cbptr) - (cell_buf *) 0)

Definition at line 466 of file horizon.h.

#define BUFF_STATUS_CELL_AV   0x00010000

Definition at line 290 of file horizon.h.

#define BUFF_STATUS_EMPTY   0x00000000

Definition at line 289 of file horizon.h.

#define BUFF_STATUS_LAST_CELL_AV   0x00020000

Definition at line 291 of file horizon.h.

#define BUFF_STATUS_MASK   0x00030000

Definition at line 288 of file horizon.h.

#define BUFFER_PTR_MASK   0x0000FFFF

Definition at line 276 of file horizon.h.

#define BUFN1_SIZE   118

Definition at line 348 of file horizon.h.

#define BUFN2_SIZE   124

Definition at line 350 of file horizon.h.

#define BUFN3_SIZE   192

Definition at line 352 of file horizon.h.

#define BUFN4_SIZE   1408

Definition at line 354 of file horizon.h.

#define CBR_RATE_TYPE   0x3

Definition at line 210 of file horizon.h.

#define CHANNEL_TYPE_AAL3_4   0x80000000

Definition at line 284 of file horizon.h.

#define CHANNEL_TYPE_AAL5   0x00000000

Definition at line 282 of file horizon.h.

#define CHANNEL_TYPE_RAW_CELLS   0x40000000

Definition at line 283 of file horizon.h.

#define CLOCK_DISABLE   0x00ff

Definition at line 205 of file horizon.h.

#define CLOCK_SELECT_SHIFT   4

Definition at line 204 of file horizon.h.

#define CONGESTION_EXPERIENCED   0x10000000

Definition at line 280 of file horizon.h.

#define CONTROL_0_REG   0x1C

Definition at line 111 of file horizon.h.

#define DATA_PORT_OFF   0x00

Definition at line 105 of file horizon.h.

#define DEBUG_BIT_0   0x00000010

Definition at line 144 of file horizon.h.

#define DEBUG_BIT_0_OE   0x00000100

Definition at line 148 of file horizon.h.

#define DEBUG_BIT_0_STATE   0x00001000

Definition at line 152 of file horizon.h.

#define DEBUG_BIT_1   0x00000020

Definition at line 145 of file horizon.h.

#define DEBUG_BIT_1_OE   0x00000200

Definition at line 149 of file horizon.h.

#define DEBUG_BIT_1_STATE   0x00002000

Definition at line 153 of file horizon.h.

#define DEBUG_BIT_2   0x00000040

Definition at line 146 of file horizon.h.

#define DEBUG_BIT_2_OE   0x00000400

Definition at line 150 of file horizon.h.

#define DEBUG_BIT_2_STATE   0x00004000

Definition at line 154 of file horizon.h.

#define DEBUG_INT   0x00000080

Definition at line 180 of file horizon.h.

#define DEV_LABEL   "hrz"

Definition at line 38 of file horizon.h.

#define DISCARD_UNUSED_VPI_VCI_BITS_SET   0x0040

Definition at line 240 of file horizon.h.

#define DRVR_DRVRBAR_ENABLE   0x0001

Definition at line 214 of file horizon.h.

#define DW (   x)    do{ x } while(0)

Definition at line 478 of file horizon.h.

#define FIRST_CELL_OF_AAL5_FRAME   0x20000000

Definition at line 281 of file horizon.h.

#define FLUSH_CHANNEL   0x4000

Definition at line 259 of file horizon.h.

#define FORCED   0x00000008

Definition at line 176 of file horizon.h.

#define FREQUENCY_DETECT_ENABLE   0x0020

Definition at line 249 of file horizon.h.

#define FREQUENCY_DETECT_ERROR   0x0002

Definition at line 245 of file horizon.h.

#define GENERAL_BIT_0   0x00010000

Definition at line 156 of file horizon.h.

#define GENERAL_BIT_1   0x00020000

Definition at line 157 of file horizon.h.

#define GENERAL_BIT_2   0x00040000

Definition at line 158 of file horizon.h.

#define GENERAL_BIT_3   0x00080000

Definition at line 159 of file horizon.h.

#define GREEN_LED   DEBUG_BIT_1

Definition at line 488 of file horizon.h.

#define GREEN_LED_OE   DEBUG_BIT_1_OE

Definition at line 490 of file horizon.h.

#define GREEN_LED_OFF (   dev)    wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) | GREEN_LED)

Definition at line 492 of file horizon.h.

#define GREEN_LED_ON (   dev)    wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) &~ GREEN_LED)

Definition at line 494 of file horizon.h.

#define GXTALOUT_SELECT_DIV4   0x0080

Definition at line 251 of file horizon.h.

#define GXTALOUT_SELECT_NO_GATING   0x0100

Definition at line 252 of file horizon.h.

#define HEC_ERROR_COUNT_OFF   0x78

Definition at line 133 of file horizon.h.

#define HRZ_DEV (   atm_dev)    ((hrz_dev *) (atm_dev)->dev_data)

Definition at line 480 of file horizon.h.

#define HRZ_IO_EXTENT   0x80

Definition at line 103 of file horizon.h.

#define HRZ_MAX_VPI   4

Definition at line 97 of file horizon.h.

#define HRZ_VCC (   atm_vcc)    ((hrz_vcc *) (atm_vcc)->dev_data)

Definition at line 481 of file horizon.h.

#define IDLE_CHANNELS_MASK   0x00FF

Definition at line 230 of file horizon.h.

#define IDLE_RATE_TYPE   0x0

Definition at line 207 of file horizon.h.

#define IGNORE_UNUSED_VPI_VCI_BITS_SET   0x0000

Definition at line 238 of file horizon.h.

#define INITIAL_CRC   0xFFFFFFFF

Definition at line 302 of file horizon.h.

#define INT_ENABLE_REG_OFF   0x24

Definition at line 113 of file horizon.h.

#define INT_EVERY_N_CELLS   0x08000000

Definition at line 279 of file horizon.h.

#define INT_SOURCE_REG_OFF   0x20

Definition at line 112 of file horizon.h.

#define INTERESTING_INTERRUPTS   (RX_DATA_AV | RX_DISABLED | TX_BUS_MASTER_COMPLETE | RX_BUS_MASTER_COMPLETE)

Definition at line 468 of file horizon.h.

#define LOCK_DETECT_ENABLE   0x0010

Definition at line 248 of file horizon.h.

#define LOCK_DETECT_ERROR   0x0004

Definition at line 246 of file horizon.h.

#define LOOPBACK_TIMING_MARKER   0x0008

Definition at line 217 of file horizon.h.

#define MASTER_RX_ADDR_REG_OFF   0x28

Definition at line 114 of file horizon.h.

#define MASTER_RX_COUNT_REG_OFF   0x2C

Definition at line 115 of file horizon.h.

#define MASTER_TX_ADDR_REG_OFF   0x30

Definition at line 116 of file horizon.h.

#define MASTER_TX_AUTO_APPEND_DESC   0x80000000

Definition at line 188 of file horizon.h.

#define MASTER_TX_COUNT_REG_OFF   0x34

Definition at line 117 of file horizon.h.

#define MAX_AAL5_CELL_COUNT_OFF   0x68

Definition at line 129 of file horizon.h.

#define MAX_PIO_COUNT   0x000000ff

Definition at line 185 of file horizon.h.

#define MAX_TRANSFER_COUNT   0x00001ffc

Definition at line 187 of file horizon.h.

#define MAX_VCS   RX_CHANS

Definition at line 342 of file horizon.h.

#define MEM_RD_ADDR_REG_OFF   0x18

Definition at line 110 of file horizon.h.

#define MEM_WR_ADDR_REG_OFF   0x14

Definition at line 109 of file horizon.h.

#define memmap   ((MEMMAP *)0)

Definition at line 375 of file horizon.h.

#define MEMORY_PORT_OFF   0x0C

Definition at line 108 of file horizon.h.

#define MIN_PCI_LATENCY   48

Definition at line 98 of file horizon.h.

#define NON_USER_CELLS_IN_ONE_CHANNEL   0x0008

Definition at line 236 of file horizon.h.

#define NON_USER_UNUSED_VPI_VCI_BITS_SET   0x0020

Definition at line 239 of file horizon.h.

#define PCI_DEVICE_ID_MADGE_HORIZON   0x1000

Definition at line 44 of file horizon.h.

#define PCI_VENDOR_ID_MADGE   0x10B6

Definition at line 41 of file horizon.h.

#define PCR_TIMER_ACCESS   0x0000

Definition at line 192 of file horizon.h.

#define PRINTD (   bits,
  format,
  args... 
)

Definition at line 82 of file horizon.h.

#define PRINTDB (   bits,
  format,
  args... 
)

Definition at line 83 of file horizon.h.

#define PRINTDD (   sec,
  fmt,
  args... 
)

Definition at line 89 of file horizon.h.

#define PRINTDDB (   sec,
  fmt,
  args... 
)

Definition at line 90 of file horizon.h.

#define PRINTDDE (   sec,
  fmt,
  args... 
)

Definition at line 92 of file horizon.h.

#define PRINTDDM (   sec,
  fmt,
  args... 
)

Definition at line 91 of file horizon.h.

#define PRINTDE (   bits,
  format,
  args... 
)

Definition at line 85 of file horizon.h.

#define PRINTDM (   bits,
  format,
  args... 
)

Definition at line 84 of file horizon.h.

#define PRINTK (   severity,
  format,
  args... 
)    printk(severity DEV_LABEL ": " format "\n" , ## args)

Definition at line 49 of file horizon.h.

#define RATE_TYPE_ACCESS   0x0004

Definition at line 196 of file horizon.h.

#define RESET_ATM   0x00200000

Definition at line 161 of file horizon.h.

#define RESET_HORIZON   0x00100000

Definition at line 160 of file horizon.h.

#define RESET_HOST   0x01000000

Definition at line 164 of file horizon.h.

#define RESET_RX   0x00400000

Definition at line 162 of file horizon.h.

#define RESET_TX   0x00800000

Definition at line 163 of file horizon.h.

#define RX_AAL5_LIMIT   ATM_MAX_AAL5_PDU

Definition at line 475 of file horizon.h.

#define RX_BUS_MASTER_COMPLETE   0x00000010

Definition at line 177 of file horizon.h.

#define RX_CELL_COUNT_OFF   0x74

Definition at line 132 of file horizon.h.

#define RX_CHANNEL_DISABLED   0x00000000

Definition at line 297 of file horizon.h.

#define RX_CHANNEL_IDLE   0x00000001

Definition at line 298 of file horizon.h.

#define RX_CHANNEL_MASK   0x03FF

Definition at line 257 of file horizon.h.

#define RX_CHANNEL_PORT_OFF   0x6C

Definition at line 130 of file horizon.h.

#define RX_CHANNEL_UPDATE_IN_PROGRESS   0x8000

Definition at line 260 of file horizon.h.

#define RX_CHANS   1024

Definition at line 340 of file horizon.h.

#define RX_COMPLETE_FRAME   0x80000000

Definition at line 270 of file horizon.h.

#define RX_CONFIG_OFF   0x58

Definition at line 125 of file horizon.h.

#define RX_CONGESTION_EXPERIENCED   0x10000000

Definition at line 267 of file horizon.h.

#define RX_CRC_10_OK   0x20000000

Definition at line 268 of file horizon.h.

#define RX_CRC_32_OK   0x40000000

Definition at line 269 of file horizon.h.

#define RX_DATA_AV   0x00000001

Definition at line 173 of file horizon.h.

#define RX_DISABLED   0x00000002

Definition at line 174 of file horizon.h.

#define RX_ENABLE   0x0010

Definition at line 237 of file horizon.h.

#define RX_FREE_BUFFER_COUNT_OFF   0x4C

Definition at line 122 of file horizon.h.

#define RX_INT_THRESHOLD_MASK   0x07FF

Definition at line 278 of file horizon.h.

#define RX_INT_THRESHOLD_MULT   0x00010000

Definition at line 277 of file horizon.h.

#define RX_LINE_CONFIG_OFF   0x5C

Definition at line 126 of file horizon.h.

#define RX_Q_ENTRY_CHANNEL_SHIFT   16

Definition at line 265 of file horizon.h.

#define RX_Q_ENTRY_LENGTH_MASK   0x0000FFFF

Definition at line 264 of file horizon.h.

#define RX_QS   1024

Definition at line 341 of file horizon.h.

#define RX_QUEUE_RD_PTR_OFF   0x60

Definition at line 127 of file horizon.h.

#define RX_QUEUE_WR_PTR_OFF   0x64

Definition at line 128 of file horizon.h.

#define SCR_TIMER_ACCESS   0x0001

Definition at line 193 of file horizon.h.

#define SEEPROM_CS   0x00000008

Definition at line 143 of file horizon.h.

#define SEEPROM_DI   0x00000002

Definition at line 141 of file horizon.h.

#define SEEPROM_DO   0x00000001

Definition at line 140 of file horizon.h.

#define SEEPROM_SK   0x00000004

Definition at line 142 of file horizon.h.

#define SELECT_INTERNAL_LOOPBACK   0x0008

Definition at line 247 of file horizon.h.

#define SIGNAL_LOSS   0x0001

Definition at line 244 of file horizon.h.

#define SIMONS_DODGEY_MARKER   0x08000000

Definition at line 266 of file horizon.h.

#define SPARE_BUFFER_POOL_SIZE   MAX_VCS

Definition at line 96 of file horizon.h.

#define TARGET_RETRY_DISABLE   0x04000000

Definition at line 166 of file horizon.h.

#define TIMING_MARKER   0x00000004

Definition at line 175 of file horizon.h.

#define TIMING_MARKER_RECEIVED   0x0200

Definition at line 253 of file horizon.h.

#define TRANSMIT_TIMING_MARKER   0x0004

Definition at line 216 of file horizon.h.

#define TX_AAL5_LIMIT   (190*ATM_CELL_PAYLOAD-ATM_AAL5_TRAILER)

Definition at line 472 of file horizon.h.

#define TX_BUS_MASTER_COMPLETE   0x00000020

Definition at line 178 of file horizon.h.

#define TX_CELL_COUNT_OFF   0x70

Definition at line 131 of file horizon.h.

#define TX_CHANNEL_CONFIG_COMMAND_OFF   0x40

Definition at line 119 of file horizon.h.

#define TX_CHANNEL_CONFIG_DATA_OFF   0x44

Definition at line 120 of file horizon.h.

#define TX_CHANNEL_CONFIG_MULT   0x0100

Definition at line 198 of file horizon.h.

#define TX_CHANNEL_PORT_OFF   0x04

Definition at line 106 of file horizon.h.

#define TX_CHANS   8

Definition at line 339 of file horizon.h.

#define TX_CONFIG_OFF   0x50

Definition at line 123 of file horizon.h.

#define TX_DESCRIPTOR_PORT_OFF   0x08

Definition at line 107 of file horizon.h.

#define TX_DESCRIPTOR_REG_OFF   0x38

Definition at line 118 of file horizon.h.

#define TX_FREE_BUFFER_COUNT_OFF   0x48

Definition at line 121 of file horizon.h.

#define TX_NORMAL_OPERATION   0x0070

Definition at line 225 of file horizon.h.

#define TX_STATUS_OFF   0x54

Definition at line 124 of file horizon.h.

#define TX_TEST_MODE_16MHz   0x0000

Definition at line 218 of file horizon.h.

#define TX_TEST_MODE_2_29MHz   0x0060

Definition at line 224 of file horizon.h.

#define TX_TEST_MODE_2_66MHz   0x0050

Definition at line 223 of file horizon.h.

#define TX_TEST_MODE_3_2MHz   0x0040

Definition at line 222 of file horizon.h.

#define TX_TEST_MODE_4MHz   0x0030

Definition at line 221 of file horizon.h.

#define TX_TEST_MODE_5_33MHz   0x0020

Definition at line 220 of file horizon.h.

#define TX_TEST_MODE_8MHz   0x0010

Definition at line 219 of file horizon.h.

#define TXCLK_MUX_SELECT_RCLK   0x0002

Definition at line 215 of file horizon.h.

#define UNASSIGNED_CELL_COUNT_OFF   0x7C

Definition at line 134 of file horizon.h.

#define USER_FRAQ   0x0040

Definition at line 250 of file horizon.h.

#define VBR_RATE_TYPE   0x2

Definition at line 209 of file horizon.h.

#define YELLOW_LED   DEBUG_BIT_0

Definition at line 487 of file horizon.h.

#define YELLOW_LED_OE   DEBUG_BIT_0_OE

Definition at line 489 of file horizon.h.

#define YELLOW_LED_OFF (   dev)    wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) | YELLOW_LED)

Definition at line 496 of file horizon.h.

#define YELLOW_LED_ON (   dev)    wr_regl (dev, CONTROL_0_REG, rd_regl (dev, CONTROL_0_REG) &~ YELLOW_LED)

Definition at line 498 of file horizon.h.

Typedef Documentation

typedef u8 HDW

Definition at line 310 of file horizon.h.

Definition at line 462 of file horizon.h.

typedef struct MEMMAP MEMMAP

Enumeration Type Documentation

enum hrz_aal
Enumerator:
aal0 
aal34 
aal5 

Definition at line 379 of file horizon.h.

enum hrz_flags
Enumerator:
tx_busy 
rx_busy 
ultra 

Definition at line 385 of file horizon.h.

enum rounding
Enumerator:
round_up 
round_down 
round_nearest 
round_up 
round_down 
round_nearest 

Definition at line 501 of file horizon.h.