Path: blob/master/drivers/isdn/hardware/mISDN/hfc_multi.h
15111 views
/*1* see notice in hfc_multi.c2*/34#define DEBUG_HFCMULTI_FIFO 0x000100005#define DEBUG_HFCMULTI_CRC 0x000200006#define DEBUG_HFCMULTI_INIT 0x000400007#define DEBUG_HFCMULTI_PLXSD 0x000800008#define DEBUG_HFCMULTI_MODE 0x001000009#define DEBUG_HFCMULTI_MSG 0x0020000010#define DEBUG_HFCMULTI_STATE 0x0040000011#define DEBUG_HFCMULTI_FILL 0x0080000012#define DEBUG_HFCMULTI_SYNC 0x0100000013#define DEBUG_HFCMULTI_DTMF 0x0200000014#define DEBUG_HFCMULTI_LOCK 0x800000001516#define PCI_ENA_REGIO 0x0117#define PCI_ENA_MEMIO 0x021819#define XHFC_IRQ 4 /* SIU_IRQ2 */20#define XHFC_MEMBASE 0xFE00000021#define XHFC_MEMSIZE 0x0000100022#define XHFC_OFFSET 0x0000100023#define PA_XHFC_A0 0x0020 /* PA10 */24#define PB_XHFC_IRQ1 0x00000100 /* PB23 */25#define PB_XHFC_IRQ2 0x00000200 /* PB22 */26#define PB_XHFC_IRQ3 0x00000400 /* PB21 */27#define PB_XHFC_IRQ4 0x00000800 /* PB20 */2829/*30* NOTE: some registers are assigned multiple times due to different modes31* also registers are assigned differen for HFC-4s/8s and HFC-E132*/3334/*35#define MAX_FRAME_SIZE 204836*/3738struct hfc_chan {39struct dchannel *dch; /* link if channel is a D-channel */40struct bchannel *bch; /* link if channel is a B-channel */41int port; /* the interface port this */42/* channel is associated with */43int nt_timer; /* -1 if off, 0 if elapsed, >0 if running */44int los, ais, slip_tx, slip_rx, rdi; /* current alarms */45int jitter;46u_long cfg; /* port configuration */47int sync; /* sync state (used by E1) */48u_int protocol; /* current protocol */49int slot_tx; /* current pcm slot */50int bank_tx; /* current pcm bank */51int slot_rx;52int bank_rx;53int conf; /* conference setting of TX slot */54int txpending; /* if there is currently data in */55/* the FIFO 0=no, 1=yes, 2=splloop */56int Zfill; /* rx-fifo level on last hfcmulti_tx */57int rx_off; /* set to turn fifo receive off */58int coeff_count; /* curren coeff block */59s32 *coeff; /* memory pointer to 8 coeff blocks */60};616263struct hfcm_hw {64u_char r_ctrl;65u_char r_irq_ctrl;66u_char r_cirm;67u_char r_ram_sz;68u_char r_pcm_md0;69u_char r_irqmsk_misc;70u_char r_dtmf;71u_char r_st_sync;72u_char r_sci_msk;73u_char r_tx0, r_tx1;74u_char a_st_ctrl0[8];75u_char r_bert_wd_md;76timer_t timer;77};787980/* for each stack these flags are used (cfg) */81#define HFC_CFG_NONCAP_TX 1 /* S/T TX interface has less capacity */82#define HFC_CFG_DIS_ECHANNEL 2 /* disable E-channel processing */83#define HFC_CFG_REG_ECHANNEL 3 /* register E-channel */84#define HFC_CFG_OPTICAL 4 /* the E1 interface is optical */85#define HFC_CFG_REPORT_LOS 5 /* the card should report loss of signal */86#define HFC_CFG_REPORT_AIS 6 /* the card should report alarm ind. sign. */87#define HFC_CFG_REPORT_SLIP 7 /* the card should report bit slips */88#define HFC_CFG_REPORT_RDI 8 /* the card should report remote alarm */89#define HFC_CFG_DTMF 9 /* enable DTMF-detection */90#define HFC_CFG_CRC4 10 /* disable CRC-4 Multiframe mode, */91/* use double frame instead. */9293#define HFC_TYPE_E1 1 /* controller is HFC-E1 */94#define HFC_TYPE_4S 4 /* controller is HFC-4S */95#define HFC_TYPE_8S 8 /* controller is HFC-8S */96#define HFC_TYPE_XHFC 5 /* controller is XHFC */9798#define HFC_CHIP_EXRAM_128 0 /* external ram 128k */99#define HFC_CHIP_EXRAM_512 1 /* external ram 256k */100#define HFC_CHIP_REVISION0 2 /* old fifo handling */101#define HFC_CHIP_PCM_SLAVE 3 /* PCM is slave */102#define HFC_CHIP_PCM_MASTER 4 /* PCM is master */103#define HFC_CHIP_RX_SYNC 5 /* disable pll sync for pcm */104#define HFC_CHIP_DTMF 6 /* DTMF decoding is enabled */105#define HFC_CHIP_CONF 7 /* conference handling is enabled */106#define HFC_CHIP_ULAW 8 /* ULAW mode */107#define HFC_CHIP_CLOCK2 9 /* double clock mode */108#define HFC_CHIP_E1CLOCK_GET 10 /* always get clock from E1 interface */109#define HFC_CHIP_E1CLOCK_PUT 11 /* always put clock from E1 interface */110#define HFC_CHIP_WATCHDOG 12 /* whether we should send signals */111/* to the watchdog */112#define HFC_CHIP_B410P 13 /* whether we have a b410p with echocan in */113/* hw */114#define HFC_CHIP_PLXSD 14 /* whether we have a Speech-Design PLX */115#define HFC_CHIP_EMBSD 15 /* whether we have a SD Embedded board */116117#define HFC_IO_MODE_PCIMEM 0x00 /* normal memory mapped IO */118#define HFC_IO_MODE_REGIO 0x01 /* PCI io access */119#define HFC_IO_MODE_PLXSD 0x02 /* access HFC via PLX9030 */120#define HFC_IO_MODE_EMBSD 0x03 /* direct access */121122/* table entry in the PCI devices list */123struct hm_map {124char *vendor_name;125char *card_name;126int type;127int ports;128int clock2;129int leds;130int opticalsupport;131int dip_type;132int io_mode;133int irq;134};135136struct hfc_multi {137struct list_head list;138struct hm_map *mtyp;139int id;140int pcm; /* id of pcm bus */141int ctype; /* controller type */142int ports;143144u_int irq; /* irq used by card */145u_int irqcnt;146struct pci_dev *pci_dev;147int io_mode; /* selects mode */148#ifdef HFC_REGISTER_DEBUG149void (*HFC_outb)(struct hfc_multi *hc, u_char reg,150u_char val, const char *function, int line);151void (*HFC_outb_nodebug)(struct hfc_multi *hc, u_char reg,152u_char val, const char *function, int line);153u_char (*HFC_inb)(struct hfc_multi *hc, u_char reg,154const char *function, int line);155u_char (*HFC_inb_nodebug)(struct hfc_multi *hc, u_char reg,156const char *function, int line);157u_short (*HFC_inw)(struct hfc_multi *hc, u_char reg,158const char *function, int line);159u_short (*HFC_inw_nodebug)(struct hfc_multi *hc, u_char reg,160const char *function, int line);161void (*HFC_wait)(struct hfc_multi *hc,162const char *function, int line);163void (*HFC_wait_nodebug)(struct hfc_multi *hc,164const char *function, int line);165#else166void (*HFC_outb)(struct hfc_multi *hc, u_char reg,167u_char val);168void (*HFC_outb_nodebug)(struct hfc_multi *hc, u_char reg,169u_char val);170u_char (*HFC_inb)(struct hfc_multi *hc, u_char reg);171u_char (*HFC_inb_nodebug)(struct hfc_multi *hc, u_char reg);172u_short (*HFC_inw)(struct hfc_multi *hc, u_char reg);173u_short (*HFC_inw_nodebug)(struct hfc_multi *hc, u_char reg);174void (*HFC_wait)(struct hfc_multi *hc);175void (*HFC_wait_nodebug)(struct hfc_multi *hc);176#endif177void (*read_fifo)(struct hfc_multi *hc, u_char *data,178int len);179void (*write_fifo)(struct hfc_multi *hc, u_char *data,180int len);181u_long pci_origmembase, plx_origmembase;182void __iomem *pci_membase; /* PCI memory */183void __iomem *plx_membase; /* PLX memory */184u_long xhfc_origmembase;185u_char *xhfc_membase;186u_long *xhfc_memaddr, *xhfc_memdata;187#ifdef CONFIG_MISDN_HFCMULTI_8xx188struct immap *immap;189#endif190u_long pb_irqmsk; /* Portbit mask to check the IRQ line */191u_long pci_iobase; /* PCI IO */192struct hfcm_hw hw; /* remember data of write-only-registers */193194u_long chip; /* chip configuration */195int masterclk; /* port that provides master clock -1=off */196unsigned char silence;/* silence byte */197unsigned char silence_data[128];/* silence block */198int dtmf; /* flag that dtmf is currently in process */199int Flen; /* F-buffer size */200int Zlen; /* Z-buffer size (must be int for calculation)*/201int max_trans; /* maximum transparent fifo fill */202int Zmin; /* Z-buffer offset */203int DTMFbase; /* base address of DTMF coefficients */204205u_int slots; /* number of PCM slots */206u_int leds; /* type of leds */207u_int ledcount; /* used to animate leds */208u_long ledstate; /* save last state of leds */209int opticalsupport; /* has the e1 board */210/* an optical Interface */211int dslot; /* channel # of d-channel (E1) default 16 */212213u_long wdcount; /* every 500 ms we need to */214/* send the watchdog a signal */215u_char wdbyte; /* watchdog toggle byte */216u_int activity[8]; /* if there is any action on this */217/* port (will be cleared after */218/* showing led-states) */219int e1_state; /* keep track of last state */220int e1_getclock; /* if sync is retrieved from interface */221int syncronized; /* keep track of existing sync interface */222int e1_resync; /* resync jobs */223224spinlock_t lock; /* the lock */225226struct mISDNclock *iclock; /* isdn clock support */227int iclock_on;228229/*230* the channel index is counted from 0, regardless where the channel231* is located on the hfc-channel.232* the bch->channel is equvalent to the hfc-channel233*/234struct hfc_chan chan[32];235u_char created[8]; /* what port is created */236signed char slot_owner[256]; /* owner channel of slot */237};238239/* PLX GPIOs */240#define PLX_GPIO4_DIR_BIT 13241#define PLX_GPIO4_BIT 14242#define PLX_GPIO5_DIR_BIT 16243#define PLX_GPIO5_BIT 17244#define PLX_GPIO6_DIR_BIT 19245#define PLX_GPIO6_BIT 20246#define PLX_GPIO7_DIR_BIT 22247#define PLX_GPIO7_BIT 23248#define PLX_GPIO8_DIR_BIT 25249#define PLX_GPIO8_BIT 26250251#define PLX_GPIO4 (1 << PLX_GPIO4_BIT)252#define PLX_GPIO5 (1 << PLX_GPIO5_BIT)253#define PLX_GPIO6 (1 << PLX_GPIO6_BIT)254#define PLX_GPIO7 (1 << PLX_GPIO7_BIT)255#define PLX_GPIO8 (1 << PLX_GPIO8_BIT)256257#define PLX_GPIO4_DIR (1 << PLX_GPIO4_DIR_BIT)258#define PLX_GPIO5_DIR (1 << PLX_GPIO5_DIR_BIT)259#define PLX_GPIO6_DIR (1 << PLX_GPIO6_DIR_BIT)260#define PLX_GPIO7_DIR (1 << PLX_GPIO7_DIR_BIT)261#define PLX_GPIO8_DIR (1 << PLX_GPIO8_DIR_BIT)262263#define PLX_TERM_ON PLX_GPIO7264#define PLX_SLAVE_EN_N PLX_GPIO5265#define PLX_MASTER_EN PLX_GPIO6266#define PLX_SYNC_O_EN PLX_GPIO4267#define PLX_DSP_RES_N PLX_GPIO8268/* GPIO4..8 Enable & Set to OUT, SLAVE_EN_N = 1 */269#define PLX_GPIOC_INIT (PLX_GPIO4_DIR | PLX_GPIO5_DIR | PLX_GPIO6_DIR \270| PLX_GPIO7_DIR | PLX_GPIO8_DIR | PLX_SLAVE_EN_N)271272/* PLX Interrupt Control/STATUS */273#define PLX_INTCSR_LINTI1_ENABLE 0x01274#define PLX_INTCSR_LINTI1_STATUS 0x04275#define PLX_INTCSR_LINTI2_ENABLE 0x08276#define PLX_INTCSR_LINTI2_STATUS 0x20277#define PLX_INTCSR_PCIINT_ENABLE 0x40278279/* PLX Registers */280#define PLX_INTCSR 0x4c281#define PLX_CNTRL 0x50282#define PLX_GPIOC 0x54283284285/*286* REGISTER SETTING FOR HFC-4S/8S AND HFC-E1287*/288289/* write only registers */290#define R_CIRM 0x00291#define R_CTRL 0x01292#define R_BRG_PCM_CFG 0x02293#define R_RAM_ADDR0 0x08294#define R_RAM_ADDR1 0x09295#define R_RAM_ADDR2 0x0A296#define R_FIRST_FIFO 0x0B297#define R_RAM_SZ 0x0C298#define R_FIFO_MD 0x0D299#define R_INC_RES_FIFO 0x0E300#define R_FSM_IDX 0x0F301#define R_FIFO 0x0F302#define R_SLOT 0x10303#define R_IRQMSK_MISC 0x11304#define R_SCI_MSK 0x12305#define R_IRQ_CTRL 0x13306#define R_PCM_MD0 0x14307#define R_PCM_MD1 0x15308#define R_PCM_MD2 0x15309#define R_SH0H 0x15310#define R_SH1H 0x15311#define R_SH0L 0x15312#define R_SH1L 0x15313#define R_SL_SEL0 0x15314#define R_SL_SEL1 0x15315#define R_SL_SEL2 0x15316#define R_SL_SEL3 0x15317#define R_SL_SEL4 0x15318#define R_SL_SEL5 0x15319#define R_SL_SEL6 0x15320#define R_SL_SEL7 0x15321#define R_ST_SEL 0x16322#define R_ST_SYNC 0x17323#define R_CONF_EN 0x18324#define R_TI_WD 0x1A325#define R_BERT_WD_MD 0x1B326#define R_DTMF 0x1C327#define R_DTMF_N 0x1D328#define R_E1_WR_STA 0x20329#define R_E1_RD_STA 0x20330#define R_LOS0 0x22331#define R_LOS1 0x23332#define R_RX0 0x24333#define R_RX_FR0 0x25334#define R_RX_FR1 0x26335#define R_TX0 0x28336#define R_TX1 0x29337#define R_TX_FR0 0x2C338339#define R_TX_FR1 0x2D340#define R_TX_FR2 0x2E341#define R_JATT_ATT 0x2F /* undocumented */342#define A_ST_RD_STATE 0x30343#define A_ST_WR_STATE 0x30344#define R_RX_OFF 0x30345#define A_ST_CTRL0 0x31346#define R_SYNC_OUT 0x31347#define A_ST_CTRL1 0x32348#define A_ST_CTRL2 0x33349#define A_ST_SQ_WR 0x34350#define R_TX_OFF 0x34351#define R_SYNC_CTRL 0x35352#define A_ST_CLK_DLY 0x37353#define R_PWM0 0x38354#define R_PWM1 0x39355#define A_ST_B1_TX 0x3C356#define A_ST_B2_TX 0x3D357#define A_ST_D_TX 0x3E358#define R_GPIO_OUT0 0x40359#define R_GPIO_OUT1 0x41360#define R_GPIO_EN0 0x42361#define R_GPIO_EN1 0x43362#define R_GPIO_SEL 0x44363#define R_BRG_CTRL 0x45364#define R_PWM_MD 0x46365#define R_BRG_MD 0x47366#define R_BRG_TIM0 0x48367#define R_BRG_TIM1 0x49368#define R_BRG_TIM2 0x4A369#define R_BRG_TIM3 0x4B370#define R_BRG_TIM_SEL01 0x4C371#define R_BRG_TIM_SEL23 0x4D372#define R_BRG_TIM_SEL45 0x4E373#define R_BRG_TIM_SEL67 0x4F374#define A_SL_CFG 0xD0375#define A_CONF 0xD1376#define A_CH_MSK 0xF4377#define A_CON_HDLC 0xFA378#define A_SUBCH_CFG 0xFB379#define A_CHANNEL 0xFC380#define A_FIFO_SEQ 0xFD381#define A_IRQ_MSK 0xFF382383/* read only registers */384#define A_Z12 0x04385#define A_Z1L 0x04386#define A_Z1 0x04387#define A_Z1H 0x05388#define A_Z2L 0x06389#define A_Z2 0x06390#define A_Z2H 0x07391#define A_F1 0x0C392#define A_F12 0x0C393#define A_F2 0x0D394#define R_IRQ_OVIEW 0x10395#define R_IRQ_MISC 0x11396#define R_IRQ_STATECH 0x12397#define R_CONF_OFLOW 0x14398#define R_RAM_USE 0x15399#define R_CHIP_ID 0x16400#define R_BERT_STA 0x17401#define R_F0_CNTL 0x18402#define R_F0_CNTH 0x19403#define R_BERT_EC 0x1A404#define R_BERT_ECL 0x1A405#define R_BERT_ECH 0x1B406#define R_STATUS 0x1C407#define R_CHIP_RV 0x1F408#define R_STATE 0x20409#define R_SYNC_STA 0x24410#define R_RX_SL0_0 0x25411#define R_RX_SL0_1 0x26412#define R_RX_SL0_2 0x27413#define R_JATT_DIR 0x2b /* undocumented */414#define R_SLIP 0x2c415#define A_ST_RD_STA 0x30416#define R_FAS_EC 0x30417#define R_FAS_ECL 0x30418#define R_FAS_ECH 0x31419#define R_VIO_EC 0x32420#define R_VIO_ECL 0x32421#define R_VIO_ECH 0x33422#define A_ST_SQ_RD 0x34423#define R_CRC_EC 0x34424#define R_CRC_ECL 0x34425#define R_CRC_ECH 0x35426#define R_E_EC 0x36427#define R_E_ECL 0x36428#define R_E_ECH 0x37429#define R_SA6_SA13_EC 0x38430#define R_SA6_SA13_ECL 0x38431#define R_SA6_SA13_ECH 0x39432#define R_SA6_SA23_EC 0x3A433#define R_SA6_SA23_ECL 0x3A434#define R_SA6_SA23_ECH 0x3B435#define A_ST_B1_RX 0x3C436#define A_ST_B2_RX 0x3D437#define A_ST_D_RX 0x3E438#define A_ST_E_RX 0x3F439#define R_GPIO_IN0 0x40440#define R_GPIO_IN1 0x41441#define R_GPI_IN0 0x44442#define R_GPI_IN1 0x45443#define R_GPI_IN2 0x46444#define R_GPI_IN3 0x47445#define R_INT_DATA 0x88446#define R_IRQ_FIFO_BL0 0xC8447#define R_IRQ_FIFO_BL1 0xC9448#define R_IRQ_FIFO_BL2 0xCA449#define R_IRQ_FIFO_BL3 0xCB450#define R_IRQ_FIFO_BL4 0xCC451#define R_IRQ_FIFO_BL5 0xCD452#define R_IRQ_FIFO_BL6 0xCE453#define R_IRQ_FIFO_BL7 0xCF454455/* read and write registers */456#define A_FIFO_DATA0 0x80457#define A_FIFO_DATA1 0x80458#define A_FIFO_DATA2 0x80459#define A_FIFO_DATA0_NOINC 0x84460#define A_FIFO_DATA1_NOINC 0x84461#define A_FIFO_DATA2_NOINC 0x84462#define R_RAM_DATA 0xC0463464465/*466* BIT SETTING FOR HFC-4S/8S AND HFC-E1467*/468469/* chapter 2: universal bus interface */470/* R_CIRM */471#define V_IRQ_SEL 0x01472#define V_SRES 0x08473#define V_HFCRES 0x10474#define V_PCMRES 0x20475#define V_STRES 0x40476#define V_ETRES 0x40477#define V_RLD_EPR 0x80478/* R_CTRL */479#define V_FIFO_LPRIO 0x02480#define V_SLOW_RD 0x04481#define V_EXT_RAM 0x08482#define V_CLK_OFF 0x20483#define V_ST_CLK 0x40484/* R_RAM_ADDR0 */485#define V_RAM_ADDR2 0x01486#define V_ADDR_RES 0x40487#define V_ADDR_INC 0x80488/* R_RAM_SZ */489#define V_RAM_SZ 0x01490#define V_PWM0_16KHZ 0x10491#define V_PWM1_16KHZ 0x20492#define V_FZ_MD 0x80493/* R_CHIP_ID */494#define V_PNP_IRQ 0x01495#define V_CHIP_ID 0x10496497/* chapter 3: data flow */498/* R_FIRST_FIFO */499#define V_FIRST_FIRO_DIR 0x01500#define V_FIRST_FIFO_NUM 0x02501/* R_FIFO_MD */502#define V_FIFO_MD 0x01503#define V_CSM_MD 0x04504#define V_FSM_MD 0x08505#define V_FIFO_SZ 0x10506/* R_FIFO */507#define V_FIFO_DIR 0x01508#define V_FIFO_NUM 0x02509#define V_REV 0x80510/* R_SLOT */511#define V_SL_DIR 0x01512#define V_SL_NUM 0x02513/* A_SL_CFG */514#define V_CH_DIR 0x01515#define V_CH_SEL 0x02516#define V_ROUTING 0x40517/* A_CON_HDLC */518#define V_IFF 0x01519#define V_HDLC_TRP 0x02520#define V_TRP_IRQ 0x04521#define V_DATA_FLOW 0x20522/* A_SUBCH_CFG */523#define V_BIT_CNT 0x01524#define V_START_BIT 0x08525#define V_LOOP_FIFO 0x40526#define V_INV_DATA 0x80527/* A_CHANNEL */528#define V_CH_DIR0 0x01529#define V_CH_NUM0 0x02530/* A_FIFO_SEQ */531#define V_NEXT_FIFO_DIR 0x01532#define V_NEXT_FIFO_NUM 0x02533#define V_SEQ_END 0x40534535/* chapter 4: FIFO handling and HDLC controller */536/* R_INC_RES_FIFO */537#define V_INC_F 0x01538#define V_RES_F 0x02539#define V_RES_LOST 0x04540541/* chapter 5: S/T interface */542/* R_SCI_MSK */543#define V_SCI_MSK_ST0 0x01544#define V_SCI_MSK_ST1 0x02545#define V_SCI_MSK_ST2 0x04546#define V_SCI_MSK_ST3 0x08547#define V_SCI_MSK_ST4 0x10548#define V_SCI_MSK_ST5 0x20549#define V_SCI_MSK_ST6 0x40550#define V_SCI_MSK_ST7 0x80551/* R_ST_SEL */552#define V_ST_SEL 0x01553#define V_MULT_ST 0x08554/* R_ST_SYNC */555#define V_SYNC_SEL 0x01556#define V_AUTO_SYNC 0x08557/* A_ST_WR_STA */558#define V_ST_SET_STA 0x01559#define V_ST_LD_STA 0x10560#define V_ST_ACT 0x20561#define V_SET_G2_G3 0x80562/* A_ST_CTRL0 */563#define V_B1_EN 0x01564#define V_B2_EN 0x02565#define V_ST_MD 0x04566#define V_D_PRIO 0x08567#define V_SQ_EN 0x10568#define V_96KHZ 0x20569#define V_TX_LI 0x40570#define V_ST_STOP 0x80571/* A_ST_CTRL1 */572#define V_G2_G3_EN 0x01573#define V_D_HI 0x04574#define V_E_IGNO 0x08575#define V_E_LO 0x10576#define V_B12_SWAP 0x80577/* A_ST_CTRL2 */578#define V_B1_RX_EN 0x01579#define V_B2_RX_EN 0x02580#define V_ST_TRIS 0x40581/* A_ST_CLK_DLY */582#define V_ST_CK_DLY 0x01583#define V_ST_SMPL 0x10584/* A_ST_D_TX */585#define V_ST_D_TX 0x40586/* R_IRQ_STATECH */587#define V_SCI_ST0 0x01588#define V_SCI_ST1 0x02589#define V_SCI_ST2 0x04590#define V_SCI_ST3 0x08591#define V_SCI_ST4 0x10592#define V_SCI_ST5 0x20593#define V_SCI_ST6 0x40594#define V_SCI_ST7 0x80595/* A_ST_RD_STA */596#define V_ST_STA 0x01597#define V_FR_SYNC_ST 0x10598#define V_TI2_EXP 0x20599#define V_INFO0 0x40600#define V_G2_G3 0x80601/* A_ST_SQ_RD */602#define V_ST_SQ 0x01603#define V_MF_RX_RDY 0x10604#define V_MF_TX_RDY 0x80605/* A_ST_D_RX */606#define V_ST_D_RX 0x40607/* A_ST_E_RX */608#define V_ST_E_RX 0x40609610/* chapter 5: E1 interface */611/* R_E1_WR_STA */612/* R_E1_RD_STA */613#define V_E1_SET_STA 0x01614#define V_E1_LD_STA 0x10615/* R_RX0 */616#define V_RX_CODE 0x01617#define V_RX_FBAUD 0x04618#define V_RX_CMI 0x08619#define V_RX_INV_CMI 0x10620#define V_RX_INV_CLK 0x20621#define V_RX_INV_DATA 0x40622#define V_AIS_ITU 0x80623/* R_RX_FR0 */624#define V_NO_INSYNC 0x01625#define V_AUTO_RESYNC 0x02626#define V_AUTO_RECO 0x04627#define V_SWORD_COND 0x08628#define V_SYNC_LOSS 0x10629#define V_XCRC_SYNC 0x20630#define V_MF_RESYNC 0x40631#define V_RESYNC 0x80632/* R_RX_FR1 */633#define V_RX_MF 0x01634#define V_RX_MF_SYNC 0x02635#define V_RX_SL0_RAM 0x04636#define V_ERR_SIM 0x20637#define V_RES_NMF 0x40638/* R_TX0 */639#define V_TX_CODE 0x01640#define V_TX_FBAUD 0x04641#define V_TX_CMI_CODE 0x08642#define V_TX_INV_CMI_CODE 0x10643#define V_TX_INV_CLK 0x20644#define V_TX_INV_DATA 0x40645#define V_OUT_EN 0x80646/* R_TX1 */647#define V_INV_CLK 0x01648#define V_EXCHG_DATA_LI 0x02649#define V_AIS_OUT 0x04650#define V_ATX 0x20651#define V_NTRI 0x40652#define V_AUTO_ERR_RES 0x80653/* R_TX_FR0 */654#define V_TRP_FAS 0x01655#define V_TRP_NFAS 0x02656#define V_TRP_RAL 0x04657#define V_TRP_SA 0x08658/* R_TX_FR1 */659#define V_TX_FAS 0x01660#define V_TX_NFAS 0x02661#define V_TX_RAL 0x04662#define V_TX_SA 0x08663/* R_TX_FR2 */664#define V_TX_MF 0x01665#define V_TRP_SL0 0x02666#define V_TX_SL0_RAM 0x04667#define V_TX_E 0x10668#define V_NEG_E 0x20669#define V_XS12_ON 0x40670#define V_XS15_ON 0x80671/* R_RX_OFF */672#define V_RX_SZ 0x01673#define V_RX_INIT 0x04674/* R_SYNC_OUT */675#define V_SYNC_E1_RX 0x01676#define V_IPATS0 0x20677#define V_IPATS1 0x40678#define V_IPATS2 0x80679/* R_TX_OFF */680#define V_TX_SZ 0x01681#define V_TX_INIT 0x04682/* R_SYNC_CTRL */683#define V_EXT_CLK_SYNC 0x01684#define V_SYNC_OFFS 0x02685#define V_PCM_SYNC 0x04686#define V_NEG_CLK 0x08687#define V_HCLK 0x10688/*689#define V_JATT_AUTO_DEL 0x20690#define V_JATT_AUTO 0x40691*/692#define V_JATT_OFF 0x80693/* R_STATE */694#define V_E1_STA 0x01695#define V_ALT_FR_RX 0x40696#define V_ALT_FR_TX 0x80697/* R_SYNC_STA */698#define V_RX_STA 0x01699#define V_FR_SYNC_E1 0x04700#define V_SIG_LOS 0x08701#define V_MFA_STA 0x10702#define V_AIS 0x40703#define V_NO_MF_SYNC 0x80704/* R_RX_SL0_0 */705#define V_SI_FAS 0x01706#define V_SI_NFAS 0x02707#define V_A 0x04708#define V_CRC_OK 0x08709#define V_TX_E1 0x10710#define V_TX_E2 0x20711#define V_RX_E1 0x40712#define V_RX_E2 0x80713/* R_SLIP */714#define V_SLIP_RX 0x01715#define V_FOSLIP_RX 0x08716#define V_SLIP_TX 0x10717#define V_FOSLIP_TX 0x80718719/* chapter 6: PCM interface */720/* R_PCM_MD0 */721#define V_PCM_MD 0x01722#define V_C4_POL 0x02723#define V_F0_NEG 0x04724#define V_F0_LEN 0x08725#define V_PCM_ADDR 0x10726/* R_SL_SEL0 */727#define V_SL_SEL0 0x01728#define V_SH_SEL0 0x80729/* R_SL_SEL1 */730#define V_SL_SEL1 0x01731#define V_SH_SEL1 0x80732/* R_SL_SEL2 */733#define V_SL_SEL2 0x01734#define V_SH_SEL2 0x80735/* R_SL_SEL3 */736#define V_SL_SEL3 0x01737#define V_SH_SEL3 0x80738/* R_SL_SEL4 */739#define V_SL_SEL4 0x01740#define V_SH_SEL4 0x80741/* R_SL_SEL5 */742#define V_SL_SEL5 0x01743#define V_SH_SEL5 0x80744/* R_SL_SEL6 */745#define V_SL_SEL6 0x01746#define V_SH_SEL6 0x80747/* R_SL_SEL7 */748#define V_SL_SEL7 0x01749#define V_SH_SEL7 0x80750/* R_PCM_MD1 */751#define V_ODEC_CON 0x01752#define V_PLL_ADJ 0x04753#define V_PCM_DR 0x10754#define V_PCM_LOOP 0x40755/* R_PCM_MD2 */756#define V_SYNC_PLL 0x02757#define V_SYNC_SRC 0x04758#define V_SYNC_OUT 0x08759#define V_ICR_FR_TIME 0x40760#define V_EN_PLL 0x80761762/* chapter 7: pulse width modulation */763/* R_PWM_MD */764#define V_EXT_IRQ_EN 0x08765#define V_PWM0_MD 0x10766#define V_PWM1_MD 0x40767768/* chapter 8: multiparty audio conferences */769/* R_CONF_EN */770#define V_CONF_EN 0x01771#define V_ULAW 0x80772/* A_CONF */773#define V_CONF_NUM 0x01774#define V_NOISE_SUPPR 0x08775#define V_ATT_LEV 0x20776#define V_CONF_SL 0x80777/* R_CONF_OFLOW */778#define V_CONF_OFLOW0 0x01779#define V_CONF_OFLOW1 0x02780#define V_CONF_OFLOW2 0x04781#define V_CONF_OFLOW3 0x08782#define V_CONF_OFLOW4 0x10783#define V_CONF_OFLOW5 0x20784#define V_CONF_OFLOW6 0x40785#define V_CONF_OFLOW7 0x80786787/* chapter 9: DTMF contoller */788/* R_DTMF0 */789#define V_DTMF_EN 0x01790#define V_HARM_SEL 0x02791#define V_DTMF_RX_CH 0x04792#define V_DTMF_STOP 0x08793#define V_CHBL_SEL 0x10794#define V_RST_DTMF 0x40795#define V_ULAW_SEL 0x80796797/* chapter 10: BERT */798/* R_BERT_WD_MD */799#define V_PAT_SEQ 0x01800#define V_BERT_ERR 0x08801#define V_AUTO_WD_RES 0x20802#define V_WD_RES 0x80803/* R_BERT_STA */804#define V_BERT_SYNC_SRC 0x01805#define V_BERT_SYNC 0x10806#define V_BERT_INV_DATA 0x20807808/* chapter 11: auxiliary interface */809/* R_BRG_PCM_CFG */810#define V_BRG_EN 0x01811#define V_BRG_MD 0x02812#define V_PCM_CLK 0x20813#define V_ADDR_WRDLY 0x40814/* R_BRG_CTRL */815#define V_BRG_CS 0x01816#define V_BRG_ADDR 0x08817#define V_BRG_CS_SRC 0x80818/* R_BRG_MD */819#define V_BRG_MD0 0x01820#define V_BRG_MD1 0x02821#define V_BRG_MD2 0x04822#define V_BRG_MD3 0x08823#define V_BRG_MD4 0x10824#define V_BRG_MD5 0x20825#define V_BRG_MD6 0x40826#define V_BRG_MD7 0x80827/* R_BRG_TIM0 */828#define V_BRG_TIM0_IDLE 0x01829#define V_BRG_TIM0_CLK 0x10830/* R_BRG_TIM1 */831#define V_BRG_TIM1_IDLE 0x01832#define V_BRG_TIM1_CLK 0x10833/* R_BRG_TIM2 */834#define V_BRG_TIM2_IDLE 0x01835#define V_BRG_TIM2_CLK 0x10836/* R_BRG_TIM3 */837#define V_BRG_TIM3_IDLE 0x01838#define V_BRG_TIM3_CLK 0x10839/* R_BRG_TIM_SEL01 */840#define V_BRG_WR_SEL0 0x01841#define V_BRG_RD_SEL0 0x04842#define V_BRG_WR_SEL1 0x10843#define V_BRG_RD_SEL1 0x40844/* R_BRG_TIM_SEL23 */845#define V_BRG_WR_SEL2 0x01846#define V_BRG_RD_SEL2 0x04847#define V_BRG_WR_SEL3 0x10848#define V_BRG_RD_SEL3 0x40849/* R_BRG_TIM_SEL45 */850#define V_BRG_WR_SEL4 0x01851#define V_BRG_RD_SEL4 0x04852#define V_BRG_WR_SEL5 0x10853#define V_BRG_RD_SEL5 0x40854/* R_BRG_TIM_SEL67 */855#define V_BRG_WR_SEL6 0x01856#define V_BRG_RD_SEL6 0x04857#define V_BRG_WR_SEL7 0x10858#define V_BRG_RD_SEL7 0x40859860/* chapter 12: clock, reset, interrupt, timer and watchdog */861/* R_IRQMSK_MISC */862#define V_STA_IRQMSK 0x01863#define V_TI_IRQMSK 0x02864#define V_PROC_IRQMSK 0x04865#define V_DTMF_IRQMSK 0x08866#define V_IRQ1S_MSK 0x10867#define V_SA6_IRQMSK 0x20868#define V_RX_EOMF_MSK 0x40869#define V_TX_EOMF_MSK 0x80870/* R_IRQ_CTRL */871#define V_FIFO_IRQ 0x01872#define V_GLOB_IRQ_EN 0x08873#define V_IRQ_POL 0x10874/* R_TI_WD */875#define V_EV_TS 0x01876#define V_WD_TS 0x10877/* A_IRQ_MSK */878#define V_IRQ 0x01879#define V_BERT_EN 0x02880#define V_MIX_IRQ 0x04881/* R_IRQ_OVIEW */882#define V_IRQ_FIFO_BL0 0x01883#define V_IRQ_FIFO_BL1 0x02884#define V_IRQ_FIFO_BL2 0x04885#define V_IRQ_FIFO_BL3 0x08886#define V_IRQ_FIFO_BL4 0x10887#define V_IRQ_FIFO_BL5 0x20888#define V_IRQ_FIFO_BL6 0x40889#define V_IRQ_FIFO_BL7 0x80890/* R_IRQ_MISC */891#define V_STA_IRQ 0x01892#define V_TI_IRQ 0x02893#define V_IRQ_PROC 0x04894#define V_DTMF_IRQ 0x08895#define V_IRQ1S 0x10896#define V_SA6_IRQ 0x20897#define V_RX_EOMF 0x40898#define V_TX_EOMF 0x80899/* R_STATUS */900#define V_BUSY 0x01901#define V_PROC 0x02902#define V_DTMF_STA 0x04903#define V_LOST_STA 0x08904#define V_SYNC_IN 0x10905#define V_EXT_IRQSTA 0x20906#define V_MISC_IRQSTA 0x40907#define V_FR_IRQSTA 0x80908/* R_IRQ_FIFO_BL0 */909#define V_IRQ_FIFO0_TX 0x01910#define V_IRQ_FIFO0_RX 0x02911#define V_IRQ_FIFO1_TX 0x04912#define V_IRQ_FIFO1_RX 0x08913#define V_IRQ_FIFO2_TX 0x10914#define V_IRQ_FIFO2_RX 0x20915#define V_IRQ_FIFO3_TX 0x40916#define V_IRQ_FIFO3_RX 0x80917/* R_IRQ_FIFO_BL1 */918#define V_IRQ_FIFO4_TX 0x01919#define V_IRQ_FIFO4_RX 0x02920#define V_IRQ_FIFO5_TX 0x04921#define V_IRQ_FIFO5_RX 0x08922#define V_IRQ_FIFO6_TX 0x10923#define V_IRQ_FIFO6_RX 0x20924#define V_IRQ_FIFO7_TX 0x40925#define V_IRQ_FIFO7_RX 0x80926/* R_IRQ_FIFO_BL2 */927#define V_IRQ_FIFO8_TX 0x01928#define V_IRQ_FIFO8_RX 0x02929#define V_IRQ_FIFO9_TX 0x04930#define V_IRQ_FIFO9_RX 0x08931#define V_IRQ_FIFO10_TX 0x10932#define V_IRQ_FIFO10_RX 0x20933#define V_IRQ_FIFO11_TX 0x40934#define V_IRQ_FIFO11_RX 0x80935/* R_IRQ_FIFO_BL3 */936#define V_IRQ_FIFO12_TX 0x01937#define V_IRQ_FIFO12_RX 0x02938#define V_IRQ_FIFO13_TX 0x04939#define V_IRQ_FIFO13_RX 0x08940#define V_IRQ_FIFO14_TX 0x10941#define V_IRQ_FIFO14_RX 0x20942#define V_IRQ_FIFO15_TX 0x40943#define V_IRQ_FIFO15_RX 0x80944/* R_IRQ_FIFO_BL4 */945#define V_IRQ_FIFO16_TX 0x01946#define V_IRQ_FIFO16_RX 0x02947#define V_IRQ_FIFO17_TX 0x04948#define V_IRQ_FIFO17_RX 0x08949#define V_IRQ_FIFO18_TX 0x10950#define V_IRQ_FIFO18_RX 0x20951#define V_IRQ_FIFO19_TX 0x40952#define V_IRQ_FIFO19_RX 0x80953/* R_IRQ_FIFO_BL5 */954#define V_IRQ_FIFO20_TX 0x01955#define V_IRQ_FIFO20_RX 0x02956#define V_IRQ_FIFO21_TX 0x04957#define V_IRQ_FIFO21_RX 0x08958#define V_IRQ_FIFO22_TX 0x10959#define V_IRQ_FIFO22_RX 0x20960#define V_IRQ_FIFO23_TX 0x40961#define V_IRQ_FIFO23_RX 0x80962/* R_IRQ_FIFO_BL6 */963#define V_IRQ_FIFO24_TX 0x01964#define V_IRQ_FIFO24_RX 0x02965#define V_IRQ_FIFO25_TX 0x04966#define V_IRQ_FIFO25_RX 0x08967#define V_IRQ_FIFO26_TX 0x10968#define V_IRQ_FIFO26_RX 0x20969#define V_IRQ_FIFO27_TX 0x40970#define V_IRQ_FIFO27_RX 0x80971/* R_IRQ_FIFO_BL7 */972#define V_IRQ_FIFO28_TX 0x01973#define V_IRQ_FIFO28_RX 0x02974#define V_IRQ_FIFO29_TX 0x04975#define V_IRQ_FIFO29_RX 0x08976#define V_IRQ_FIFO30_TX 0x10977#define V_IRQ_FIFO30_RX 0x20978#define V_IRQ_FIFO31_TX 0x40979#define V_IRQ_FIFO31_RX 0x80980981/* chapter 13: general purpose I/O pins (GPIO) and input pins (GPI) */982/* R_GPIO_OUT0 */983#define V_GPIO_OUT0 0x01984#define V_GPIO_OUT1 0x02985#define V_GPIO_OUT2 0x04986#define V_GPIO_OUT3 0x08987#define V_GPIO_OUT4 0x10988#define V_GPIO_OUT5 0x20989#define V_GPIO_OUT6 0x40990#define V_GPIO_OUT7 0x80991/* R_GPIO_OUT1 */992#define V_GPIO_OUT8 0x01993#define V_GPIO_OUT9 0x02994#define V_GPIO_OUT10 0x04995#define V_GPIO_OUT11 0x08996#define V_GPIO_OUT12 0x10997#define V_GPIO_OUT13 0x20998#define V_GPIO_OUT14 0x40999#define V_GPIO_OUT15 0x801000/* R_GPIO_EN0 */1001#define V_GPIO_EN0 0x011002#define V_GPIO_EN1 0x021003#define V_GPIO_EN2 0x041004#define V_GPIO_EN3 0x081005#define V_GPIO_EN4 0x101006#define V_GPIO_EN5 0x201007#define V_GPIO_EN6 0x401008#define V_GPIO_EN7 0x801009/* R_GPIO_EN1 */1010#define V_GPIO_EN8 0x011011#define V_GPIO_EN9 0x021012#define V_GPIO_EN10 0x041013#define V_GPIO_EN11 0x081014#define V_GPIO_EN12 0x101015#define V_GPIO_EN13 0x201016#define V_GPIO_EN14 0x401017#define V_GPIO_EN15 0x801018/* R_GPIO_SEL */1019#define V_GPIO_SEL0 0x011020#define V_GPIO_SEL1 0x021021#define V_GPIO_SEL2 0x041022#define V_GPIO_SEL3 0x081023#define V_GPIO_SEL4 0x101024#define V_GPIO_SEL5 0x201025#define V_GPIO_SEL6 0x401026#define V_GPIO_SEL7 0x801027/* R_GPIO_IN0 */1028#define V_GPIO_IN0 0x011029#define V_GPIO_IN1 0x021030#define V_GPIO_IN2 0x041031#define V_GPIO_IN3 0x081032#define V_GPIO_IN4 0x101033#define V_GPIO_IN5 0x201034#define V_GPIO_IN6 0x401035#define V_GPIO_IN7 0x801036/* R_GPIO_IN1 */1037#define V_GPIO_IN8 0x011038#define V_GPIO_IN9 0x021039#define V_GPIO_IN10 0x041040#define V_GPIO_IN11 0x081041#define V_GPIO_IN12 0x101042#define V_GPIO_IN13 0x201043#define V_GPIO_IN14 0x401044#define V_GPIO_IN15 0x801045/* R_GPI_IN0 */1046#define V_GPI_IN0 0x011047#define V_GPI_IN1 0x021048#define V_GPI_IN2 0x041049#define V_GPI_IN3 0x081050#define V_GPI_IN4 0x101051#define V_GPI_IN5 0x201052#define V_GPI_IN6 0x401053#define V_GPI_IN7 0x801054/* R_GPI_IN1 */1055#define V_GPI_IN8 0x011056#define V_GPI_IN9 0x021057#define V_GPI_IN10 0x041058#define V_GPI_IN11 0x081059#define V_GPI_IN12 0x101060#define V_GPI_IN13 0x201061#define V_GPI_IN14 0x401062#define V_GPI_IN15 0x801063/* R_GPI_IN2 */1064#define V_GPI_IN16 0x011065#define V_GPI_IN17 0x021066#define V_GPI_IN18 0x041067#define V_GPI_IN19 0x081068#define V_GPI_IN20 0x101069#define V_GPI_IN21 0x201070#define V_GPI_IN22 0x401071#define V_GPI_IN23 0x801072/* R_GPI_IN3 */1073#define V_GPI_IN24 0x011074#define V_GPI_IN25 0x021075#define V_GPI_IN26 0x041076#define V_GPI_IN27 0x081077#define V_GPI_IN28 0x101078#define V_GPI_IN29 0x201079#define V_GPI_IN30 0x401080#define V_GPI_IN31 0x8010811082/* map of all registers, used for debugging */10831084#ifdef HFC_REGISTER_DEBUG1085struct hfc_register_names {1086char *name;1087u_char reg;1088} hfc_register_names[] = {1089/* write registers */1090{"R_CIRM", 0x00},1091{"R_CTRL", 0x01},1092{"R_BRG_PCM_CFG ", 0x02},1093{"R_RAM_ADDR0", 0x08},1094{"R_RAM_ADDR1", 0x09},1095{"R_RAM_ADDR2", 0x0A},1096{"R_FIRST_FIFO", 0x0B},1097{"R_RAM_SZ", 0x0C},1098{"R_FIFO_MD", 0x0D},1099{"R_INC_RES_FIFO", 0x0E},1100{"R_FIFO / R_FSM_IDX", 0x0F},1101{"R_SLOT", 0x10},1102{"R_IRQMSK_MISC", 0x11},1103{"R_SCI_MSK", 0x12},1104{"R_IRQ_CTRL", 0x13},1105{"R_PCM_MD0", 0x14},1106{"R_0x15", 0x15},1107{"R_ST_SEL", 0x16},1108{"R_ST_SYNC", 0x17},1109{"R_CONF_EN", 0x18},1110{"R_TI_WD", 0x1A},1111{"R_BERT_WD_MD", 0x1B},1112{"R_DTMF", 0x1C},1113{"R_DTMF_N", 0x1D},1114{"R_E1_XX_STA", 0x20},1115{"R_LOS0", 0x22},1116{"R_LOS1", 0x23},1117{"R_RX0", 0x24},1118{"R_RX_FR0", 0x25},1119{"R_RX_FR1", 0x26},1120{"R_TX0", 0x28},1121{"R_TX1", 0x29},1122{"R_TX_FR0", 0x2C},1123{"R_TX_FR1", 0x2D},1124{"R_TX_FR2", 0x2E},1125{"R_JATT_ATT", 0x2F},1126{"A_ST_xx_STA/R_RX_OFF", 0x30},1127{"A_ST_CTRL0/R_SYNC_OUT", 0x31},1128{"A_ST_CTRL1", 0x32},1129{"A_ST_CTRL2", 0x33},1130{"A_ST_SQ_WR", 0x34},1131{"R_TX_OFF", 0x34},1132{"R_SYNC_CTRL", 0x35},1133{"A_ST_CLK_DLY", 0x37},1134{"R_PWM0", 0x38},1135{"R_PWM1", 0x39},1136{"A_ST_B1_TX", 0x3C},1137{"A_ST_B2_TX", 0x3D},1138{"A_ST_D_TX", 0x3E},1139{"R_GPIO_OUT0", 0x40},1140{"R_GPIO_OUT1", 0x41},1141{"R_GPIO_EN0", 0x42},1142{"R_GPIO_EN1", 0x43},1143{"R_GPIO_SEL", 0x44},1144{"R_BRG_CTRL", 0x45},1145{"R_PWM_MD", 0x46},1146{"R_BRG_MD", 0x47},1147{"R_BRG_TIM0", 0x48},1148{"R_BRG_TIM1", 0x49},1149{"R_BRG_TIM2", 0x4A},1150{"R_BRG_TIM3", 0x4B},1151{"R_BRG_TIM_SEL01", 0x4C},1152{"R_BRG_TIM_SEL23", 0x4D},1153{"R_BRG_TIM_SEL45", 0x4E},1154{"R_BRG_TIM_SEL67", 0x4F},1155{"A_FIFO_DATA0-2", 0x80},1156{"A_FIFO_DATA0-2_NOINC", 0x84},1157{"R_RAM_DATA", 0xC0},1158{"A_SL_CFG", 0xD0},1159{"A_CONF", 0xD1},1160{"A_CH_MSK", 0xF4},1161{"A_CON_HDLC", 0xFA},1162{"A_SUBCH_CFG", 0xFB},1163{"A_CHANNEL", 0xFC},1164{"A_FIFO_SEQ", 0xFD},1165{"A_IRQ_MSK", 0xFF},1166{NULL, 0},11671168/* read registers */1169{"A_Z1", 0x04},1170{"A_Z1H", 0x05},1171{"A_Z2", 0x06},1172{"A_Z2H", 0x07},1173{"A_F1", 0x0C},1174{"A_F2", 0x0D},1175{"R_IRQ_OVIEW", 0x10},1176{"R_IRQ_MISC", 0x11},1177{"R_IRQ_STATECH", 0x12},1178{"R_CONF_OFLOW", 0x14},1179{"R_RAM_USE", 0x15},1180{"R_CHIP_ID", 0x16},1181{"R_BERT_STA", 0x17},1182{"R_F0_CNTL", 0x18},1183{"R_F0_CNTH", 0x19},1184{"R_BERT_ECL", 0x1A},1185{"R_BERT_ECH", 0x1B},1186{"R_STATUS", 0x1C},1187{"R_CHIP_RV", 0x1F},1188{"R_STATE", 0x20},1189{"R_SYNC_STA", 0x24},1190{"R_RX_SL0_0", 0x25},1191{"R_RX_SL0_1", 0x26},1192{"R_RX_SL0_2", 0x27},1193{"R_JATT_DIR", 0x2b},1194{"R_SLIP", 0x2c},1195{"A_ST_RD_STA", 0x30},1196{"R_FAS_ECL", 0x30},1197{"R_FAS_ECH", 0x31},1198{"R_VIO_ECL", 0x32},1199{"R_VIO_ECH", 0x33},1200{"R_CRC_ECL / A_ST_SQ_RD", 0x34},1201{"R_CRC_ECH", 0x35},1202{"R_E_ECL", 0x36},1203{"R_E_ECH", 0x37},1204{"R_SA6_SA13_ECL", 0x38},1205{"R_SA6_SA13_ECH", 0x39},1206{"R_SA6_SA23_ECL", 0x3A},1207{"R_SA6_SA23_ECH", 0x3B},1208{"A_ST_B1_RX", 0x3C},1209{"A_ST_B2_RX", 0x3D},1210{"A_ST_D_RX", 0x3E},1211{"A_ST_E_RX", 0x3F},1212{"R_GPIO_IN0", 0x40},1213{"R_GPIO_IN1", 0x41},1214{"R_GPI_IN0", 0x44},1215{"R_GPI_IN1", 0x45},1216{"R_GPI_IN2", 0x46},1217{"R_GPI_IN3", 0x47},1218{"A_FIFO_DATA0-2", 0x80},1219{"A_FIFO_DATA0-2_NOINC", 0x84},1220{"R_INT_DATA", 0x88},1221{"R_RAM_DATA", 0xC0},1222{"R_IRQ_FIFO_BL0", 0xC8},1223{"R_IRQ_FIFO_BL1", 0xC9},1224{"R_IRQ_FIFO_BL2", 0xCA},1225{"R_IRQ_FIFO_BL3", 0xCB},1226{"R_IRQ_FIFO_BL4", 0xCC},1227{"R_IRQ_FIFO_BL5", 0xCD},1228{"R_IRQ_FIFO_BL6", 0xCE},1229{"R_IRQ_FIFO_BL7", 0xCF},1230};1231#endif /* HFC_REGISTER_DEBUG */1232123312341235