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

Go to the source code of this file.

Data Structures

struct  ctrl_buf
 
struct  hfcusb_symbolic_list
 
struct  iso_urb
 
struct  usb_fifo
 
struct  hfcsusb
 
struct  hfcsusb_vdata
 

Macros

#define DRIVER_NAME   "HFC-S_USB"
 
#define DBG_HFC_CALL_TRACE   0x00010000
 
#define DBG_HFC_FIFO_VERBOSE   0x00020000
 
#define DBG_HFC_USB_VERBOSE   0x00100000
 
#define DBG_HFC_URB_INFO   0x00200000
 
#define DBG_HFC_URB_ERROR   0x00400000
 
#define DEFAULT_TRANSP_BURST_SZ   128
 
#define HFC_CTRL_TIMEOUT   20 /* 5ms timeout writing/reading regs */
 
#define CLKDEL_TE   0x0f /* CLKDEL in TE mode */
 
#define CLKDEL_NT   0x6c /* CLKDEL in NT mode */
 
#define HFC_L1_ACTIVATE_TE   1
 
#define HFC_L1_ACTIVATE_NT   2
 
#define HFC_L1_DEACTIVATE_NT   3
 
#define HFC_L1_FORCE_DEACTIVATE_TE   4
 
#define HFCUSB_LOAD_STATE   0x10
 
#define HFCUSB_ACTIVATE   0x20
 
#define HFCUSB_DO_ACTION   0x40
 
#define HFCUSB_NT_G2_G3   0x80
 
#define NT_ACTIVATION_TIMER   0x01 /* enables NT mode activation Timer */
 
#define NT_T1_COUNT   10
 
#define MAX_BCH_SIZE   2048 /* allowed B-channel packet size */
 
#define HFCUSB_RX_THRESHOLD   64 /* threshold for fifo report bit rx */
 
#define HFCUSB_TX_THRESHOLD   96 /* threshold for fifo report bit tx */
 
#define HFCUSB_CHIP_ID   0x16 /* Chip ID register index */
 
#define HFCUSB_CIRM   0x00 /* cirm register index */
 
#define HFCUSB_USB_SIZE   0x07 /* int length register */
 
#define HFCUSB_USB_SIZE_I   0x06 /* iso length register */
 
#define HFCUSB_F_CROSS   0x0b /* bit order register */
 
#define HFCUSB_CLKDEL   0x37 /* bit delay register */
 
#define HFCUSB_CON_HDLC   0xfa /* channel connect register */
 
#define HFCUSB_HDLC_PAR   0xfb
 
#define HFCUSB_SCTRL   0x31 /* S-bus control register (tx) */
 
#define HFCUSB_SCTRL_E   0x32 /* same for E and special funcs */
 
#define HFCUSB_SCTRL_R   0x33 /* S-bus control register (rx) */
 
#define HFCUSB_F_THRES   0x0c /* threshold register */
 
#define HFCUSB_FIFO   0x0f /* fifo select register */
 
#define HFCUSB_F_USAGE   0x1a /* fifo usage register */
 
#define HFCUSB_MST_MODE0   0x14
 
#define HFCUSB_MST_MODE1   0x15
 
#define HFCUSB_P_DATA   0x1f
 
#define HFCUSB_INC_RES_F   0x0e
 
#define HFCUSB_B1_SSL   0x20
 
#define HFCUSB_B2_SSL   0x21
 
#define HFCUSB_B1_RSL   0x24
 
#define HFCUSB_B2_RSL   0x25
 
#define HFCUSB_STATES   0x30
 
#define HFCUSB_CHIPID   0x40 /* ID value of HFC-S USB */
 
#define HFCUSB_NUM_FIFOS   8 /* maximum number of fifos */
 
#define HFCUSB_B1_TX   0 /* index for B1 transmit bulk/int */
 
#define HFCUSB_B1_RX   1 /* index for B1 receive bulk/int */
 
#define HFCUSB_B2_TX   2
 
#define HFCUSB_B2_RX   3
 
#define HFCUSB_D_TX   4
 
#define HFCUSB_D_RX   5
 
#define HFCUSB_PCM_TX   6
 
#define HFCUSB_PCM_RX   7
 
#define USB_INT   0
 
#define USB_BULK   1
 
#define USB_ISOC   2
 
#define ISOC_PACKETS_D   8
 
#define ISOC_PACKETS_B   8
 
#define ISO_BUFFER_SIZE   128
 
#define SINK_MAX   68
 
#define SINK_MIN   48
 
#define SINK_DMIN   12
 
#define SINK_DMAX   18
 
#define BITLINE_INF   (-96 * 8)
 
#define write_reg_atomic(a, b, c)
 
#define read_reg_atomic(a, b, c)
 
#define HFC_CTRL_BUFSIZE   64
 
#define CNF_4INT3ISO   1 /* 4 INT IN, 3 ISO OUT */
 
#define CNF_3INT3ISO   2 /* 3 INT IN, 3 ISO OUT */
 
#define CNF_4ISO3ISO   3 /* 4 ISO IN, 3 ISO OUT */
 
#define CNF_3ISO3ISO   4 /* 3 ISO IN, 3 ISO OUT */
 
#define EP_NUL   1 /* Endpoint at this position not allowed */
 
#define EP_NOP   2 /* all type of endpoints allowed at this position */
 
#define EP_ISO   3 /* Isochron endpoint mandatory at this position */
 
#define EP_BLK   4 /* Bulk endpoint mandatory at this position */
 
#define EP_INT   5 /* Interrupt endpoint mandatory at this position */
 
#define HFC_CHAN_B1   0
 
#define HFC_CHAN_B2   1
 
#define HFC_CHAN_D   2
 
#define HFC_CHAN_E   3
 
#define LED_OFF   0 /* no LED support */
 
#define LED_SCHEME1   1 /* LED standard scheme */
 
#define LED_SCHEME2   2 /* not used yet... */
 
#define LED_POWER_ON   1
 
#define LED_POWER_OFF   2
 
#define LED_S0_ON   3
 
#define LED_S0_OFF   4
 
#define LED_B1_ON   5
 
#define LED_B1_OFF   6
 
#define LED_B1_DATA   7
 
#define LED_B2_ON   8
 
#define LED_B2_OFF   9
 
#define LED_B2_DATA   10
 
#define LED_NORMAL   0 /* LEDs are normal */
 
#define LED_INVERTED   1 /* LEDs are inverted */
 
#define LED_TIME   250
 
#define HFC_MAX_TE_LAYER1_STATE   8
 
#define HFC_MAX_NT_LAYER1_STATE   4
 

Functions

 MODULE_DEVICE_TABLE (usb, hfcsusb_idtab)
 

Macro Definition Documentation

#define BITLINE_INF   (-96 * 8)

Definition at line 103 of file hfcsusb.h.

#define CLKDEL_NT   0x6c /* CLKDEL in NT mode */

Definition at line 21 of file hfcsusb.h.

#define CLKDEL_TE   0x0f /* CLKDEL in TE mode */

Definition at line 20 of file hfcsusb.h.

#define CNF_3INT3ISO   2 /* 3 INT IN, 3 ISO OUT */

Definition at line 158 of file hfcsusb.h.

#define CNF_3ISO3ISO   4 /* 3 ISO IN, 3 ISO OUT */

Definition at line 160 of file hfcsusb.h.

#define CNF_4INT3ISO   1 /* 4 INT IN, 3 ISO OUT */

Definition at line 157 of file hfcsusb.h.

#define CNF_4ISO3ISO   3 /* 4 ISO IN, 3 ISO OUT */

Definition at line 159 of file hfcsusb.h.

#define DBG_HFC_CALL_TRACE   0x00010000

Definition at line 11 of file hfcsusb.h.

#define DBG_HFC_FIFO_VERBOSE   0x00020000

Definition at line 12 of file hfcsusb.h.

#define DBG_HFC_URB_ERROR   0x00400000

Definition at line 15 of file hfcsusb.h.

#define DBG_HFC_URB_INFO   0x00200000

Definition at line 14 of file hfcsusb.h.

#define DBG_HFC_USB_VERBOSE   0x00100000

Definition at line 13 of file hfcsusb.h.

#define DEFAULT_TRANSP_BURST_SZ   128

Definition at line 17 of file hfcsusb.h.

#define DRIVER_NAME   "HFC-S_USB"

Definition at line 9 of file hfcsusb.h.

#define EP_BLK   4 /* Bulk endpoint mandatory at this position */

Definition at line 165 of file hfcsusb.h.

#define EP_INT   5 /* Interrupt endpoint mandatory at this position */

Definition at line 166 of file hfcsusb.h.

#define EP_ISO   3 /* Isochron endpoint mandatory at this position */

Definition at line 164 of file hfcsusb.h.

#define EP_NOP   2 /* all type of endpoints allowed at this position */

Definition at line 163 of file hfcsusb.h.

#define EP_NUL   1 /* Endpoint at this position not allowed */

Definition at line 162 of file hfcsusb.h.

#define HFC_CHAN_B1   0

Definition at line 168 of file hfcsusb.h.

#define HFC_CHAN_B2   1

Definition at line 169 of file hfcsusb.h.

#define HFC_CHAN_D   2

Definition at line 170 of file hfcsusb.h.

#define HFC_CHAN_E   3

Definition at line 171 of file hfcsusb.h.

#define HFC_CTRL_BUFSIZE   64

Definition at line 112 of file hfcsusb.h.

#define HFC_CTRL_TIMEOUT   20 /* 5ms timeout writing/reading regs */

Definition at line 19 of file hfcsusb.h.

#define HFC_L1_ACTIVATE_NT   2

Definition at line 25 of file hfcsusb.h.

#define HFC_L1_ACTIVATE_TE   1

Definition at line 24 of file hfcsusb.h.

#define HFC_L1_DEACTIVATE_NT   3

Definition at line 26 of file hfcsusb.h.

#define HFC_L1_FORCE_DEACTIVATE_TE   4

Definition at line 27 of file hfcsusb.h.

#define HFC_MAX_NT_LAYER1_STATE   4

Definition at line 317 of file hfcsusb.h.

#define HFC_MAX_TE_LAYER1_STATE   8

Definition at line 316 of file hfcsusb.h.

#define HFCUSB_ACTIVATE   0x20

Definition at line 31 of file hfcsusb.h.

#define HFCUSB_B1_RSL   0x24

Definition at line 64 of file hfcsusb.h.

#define HFCUSB_B1_RX   1 /* index for B1 receive bulk/int */

Definition at line 74 of file hfcsusb.h.

#define HFCUSB_B1_SSL   0x20

Definition at line 62 of file hfcsusb.h.

#define HFCUSB_B1_TX   0 /* index for B1 transmit bulk/int */

Definition at line 73 of file hfcsusb.h.

#define HFCUSB_B2_RSL   0x25

Definition at line 65 of file hfcsusb.h.

#define HFCUSB_B2_RX   3

Definition at line 76 of file hfcsusb.h.

#define HFCUSB_B2_SSL   0x21

Definition at line 63 of file hfcsusb.h.

#define HFCUSB_B2_TX   2

Definition at line 75 of file hfcsusb.h.

#define HFCUSB_CHIP_ID   0x16 /* Chip ID register index */

Definition at line 44 of file hfcsusb.h.

#define HFCUSB_CHIPID   0x40 /* ID value of HFC-S USB */

Definition at line 69 of file hfcsusb.h.

#define HFCUSB_CIRM   0x00 /* cirm register index */

Definition at line 45 of file hfcsusb.h.

#define HFCUSB_CLKDEL   0x37 /* bit delay register */

Definition at line 49 of file hfcsusb.h.

#define HFCUSB_CON_HDLC   0xfa /* channel connect register */

Definition at line 50 of file hfcsusb.h.

#define HFCUSB_D_RX   5

Definition at line 78 of file hfcsusb.h.

#define HFCUSB_D_TX   4

Definition at line 77 of file hfcsusb.h.

#define HFCUSB_DO_ACTION   0x40

Definition at line 32 of file hfcsusb.h.

#define HFCUSB_F_CROSS   0x0b /* bit order register */

Definition at line 48 of file hfcsusb.h.

#define HFCUSB_F_THRES   0x0c /* threshold register */

Definition at line 55 of file hfcsusb.h.

#define HFCUSB_F_USAGE   0x1a /* fifo usage register */

Definition at line 57 of file hfcsusb.h.

#define HFCUSB_FIFO   0x0f /* fifo select register */

Definition at line 56 of file hfcsusb.h.

#define HFCUSB_HDLC_PAR   0xfb

Definition at line 51 of file hfcsusb.h.

#define HFCUSB_INC_RES_F   0x0e

Definition at line 61 of file hfcsusb.h.

#define HFCUSB_LOAD_STATE   0x10

Definition at line 30 of file hfcsusb.h.

#define HFCUSB_MST_MODE0   0x14

Definition at line 58 of file hfcsusb.h.

#define HFCUSB_MST_MODE1   0x15

Definition at line 59 of file hfcsusb.h.

#define HFCUSB_NT_G2_G3   0x80

Definition at line 33 of file hfcsusb.h.

#define HFCUSB_NUM_FIFOS   8 /* maximum number of fifos */

Definition at line 72 of file hfcsusb.h.

#define HFCUSB_P_DATA   0x1f

Definition at line 60 of file hfcsusb.h.

#define HFCUSB_PCM_RX   7

Definition at line 80 of file hfcsusb.h.

#define HFCUSB_PCM_TX   6

Definition at line 79 of file hfcsusb.h.

#define HFCUSB_RX_THRESHOLD   64 /* threshold for fifo report bit rx */

Definition at line 41 of file hfcsusb.h.

#define HFCUSB_SCTRL   0x31 /* S-bus control register (tx) */

Definition at line 52 of file hfcsusb.h.

#define HFCUSB_SCTRL_E   0x32 /* same for E and special funcs */

Definition at line 53 of file hfcsusb.h.

#define HFCUSB_SCTRL_R   0x33 /* S-bus control register (rx) */

Definition at line 54 of file hfcsusb.h.

#define HFCUSB_STATES   0x30

Definition at line 66 of file hfcsusb.h.

#define HFCUSB_TX_THRESHOLD   96 /* threshold for fifo report bit tx */

Definition at line 42 of file hfcsusb.h.

#define HFCUSB_USB_SIZE   0x07 /* int length register */

Definition at line 46 of file hfcsusb.h.

#define HFCUSB_USB_SIZE_I   0x06 /* iso length register */

Definition at line 47 of file hfcsusb.h.

#define ISO_BUFFER_SIZE   128

Definition at line 89 of file hfcsusb.h.

#define ISOC_PACKETS_B   8

Definition at line 88 of file hfcsusb.h.

#define ISOC_PACKETS_D   8

Definition at line 87 of file hfcsusb.h.

#define LED_B1_DATA   7

Definition at line 219 of file hfcsusb.h.

#define LED_B1_OFF   6

Definition at line 218 of file hfcsusb.h.

#define LED_B1_ON   5

Definition at line 217 of file hfcsusb.h.

#define LED_B2_DATA   10

Definition at line 222 of file hfcsusb.h.

#define LED_B2_OFF   9

Definition at line 221 of file hfcsusb.h.

#define LED_B2_ON   8

Definition at line 220 of file hfcsusb.h.

#define LED_INVERTED   1 /* LEDs are inverted */

Definition at line 225 of file hfcsusb.h.

#define LED_NORMAL   0 /* LEDs are normal */

Definition at line 224 of file hfcsusb.h.

#define LED_OFF   0 /* no LED support */

Definition at line 209 of file hfcsusb.h.

#define LED_POWER_OFF   2

Definition at line 214 of file hfcsusb.h.

#define LED_POWER_ON   1

Definition at line 213 of file hfcsusb.h.

#define LED_S0_OFF   4

Definition at line 216 of file hfcsusb.h.

#define LED_S0_ON   3

Definition at line 215 of file hfcsusb.h.

#define LED_SCHEME1   1 /* LED standard scheme */

Definition at line 210 of file hfcsusb.h.

#define LED_SCHEME2   2 /* not used yet... */

Definition at line 211 of file hfcsusb.h.

#define LED_TIME   250

Definition at line 228 of file hfcsusb.h.

#define MAX_BCH_SIZE   2048 /* allowed B-channel packet size */

Definition at line 39 of file hfcsusb.h.

#define NT_ACTIVATION_TIMER   0x01 /* enables NT mode activation Timer */

Definition at line 36 of file hfcsusb.h.

#define NT_T1_COUNT   10

Definition at line 37 of file hfcsusb.h.

#define read_reg_atomic (   a,
  b,
  c 
)
Value:
usb_control_msg((a)->dev, (a)->ctrl_in_pipe, 1, 0xC0, 0, (b), (c), \

Definition at line 109 of file hfcsusb.h.

#define SINK_DMAX   18

Definition at line 102 of file hfcsusb.h.

#define SINK_DMIN   12

Definition at line 101 of file hfcsusb.h.

#define SINK_MAX   68

Definition at line 99 of file hfcsusb.h.

#define SINK_MIN   48

Definition at line 100 of file hfcsusb.h.

#define USB_BULK   1

Definition at line 84 of file hfcsusb.h.

#define USB_INT   0

Definition at line 83 of file hfcsusb.h.

#define USB_ISOC   2

Definition at line 85 of file hfcsusb.h.

#define write_reg_atomic (   a,
  b,
  c 
)
Value:
usb_control_msg((a)->dev, (a)->ctrl_out_pipe, 0, 0x40, (c), (b), \

Definition at line 106 of file hfcsusb.h.

Function Documentation

MODULE_DEVICE_TABLE ( usb  ,
hfcsusb_idtab   
)