/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/isdn/hisax/ |
H A D | hscx_irq.c | 17 waitforCEC(struct IsdnCardState *cs, int hscx) argument 21 while ((READHSCX(cs, hscx, HSCX_STAR) & 0x04) && to) { 31 waitforXFW(struct IsdnCardState *cs, int hscx) argument 35 while ((!(READHSCX(cs, hscx, HSCX_STAR) & 0x44) == 0x40) && to) { 44 WriteHSCXCMDR(struct IsdnCardState *cs, int hscx, u_char data) argument 46 waitforCEC(cs, hscx); 47 WRITEHSCX(cs, hscx, HSCX_CMDR, data); 61 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { 64 WriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 123 hscx_interrupt(struct IsdnCardState *cs, u_char val, u_char hscx) argument [all...] |
H A D | jade_irq.c | 51 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { 54 WriteJADECMDR(cs, bcs->hw.hscx.hscx, jade_HDLC_RCMD, jadeRCMD_RMC); 55 bcs->hw.hscx.rcvidx = 0; 58 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; 59 bcs->hw.hscx.rcvidx += count; 60 READJADEFIFO(cs, bcs->hw.hscx.hscx, ptr, count); 61 WriteJADECMDR(cs, bcs->hw.hscx [all...] |
H A D | hscx.c | 1 /* $Id: hscx.c,v 1.1.1.1 2007/08/03 18:52:35 Exp $ 15 #include "hscx.h" 43 int hscx = bcs->hw.hscx.hscx; local 46 debugl1(cs, "hscx %c mode %d ichan %d", 47 'A' + hscx, mode, bc); 50 cs->BC_Write_Reg(cs, hscx, HSCX_XAD1, 0xFF); 51 cs->BC_Write_Reg(cs, hscx, HSCX_XAD2, 0xFF); 52 cs->BC_Write_Reg(cs, hscx, HSCX_RAH [all...] |
H A D | ipacx.c | 6 * Derived from hisax_isac.c, isac.c, hscx.c and others 46 static void bch_int(struct IsdnCardState *cs, u_char hscx); 51 static void bch_init(struct IsdnCardState *cs, int hscx); 459 bcs->hw.hscx.count = 0; 471 bcs->hw.hscx.count = 0; 510 u_char *ptr, hscx; local 515 hscx = bcs->hw.hscx.hscx; 520 if (bcs->hw.hscx 553 u_char *ptr, *p, hscx; local 592 bch_int(struct IsdnCardState *cs, u_char hscx) argument 715 int hscx = bcs->hw.hscx.hscx; local 827 bch_init(struct IsdnCardState *cs, int hscx) argument [all...] |
H A D | Makefile | 34 hisax-$(CONFIG_HISAX_16_0) += teles0.o isac.o arcofi.o hscx.o 35 hisax-$(CONFIG_HISAX_16_3) += teles3.o isac.o arcofi.o hscx.o 36 hisax-$(CONFIG_HISAX_TELESPCI) += telespci.o isac.o arcofi.o hscx.o 37 hisax-$(CONFIG_HISAX_S0BOX) += s0box.o isac.o arcofi.o hscx.o 38 hisax-$(CONFIG_HISAX_AVM_A1) += avm_a1.o isac.o arcofi.o hscx.o 39 hisax-$(CONFIG_HISAX_AVM_A1_PCMCIA) += avm_a1p.o isac.o arcofi.o hscx.o 41 hisax-$(CONFIG_HISAX_ELSA) += elsa.o isac.o arcofi.o hscx.o 42 hisax-$(CONFIG_HISAX_IX1MICROR2) += ix1_micro.o isac.o arcofi.o hscx.o 43 hisax-$(CONFIG_HISAX_DIEHLDIVA) += diva.o isac.o arcofi.o hscx.o ipacx.o 44 hisax-$(CONFIG_HISAX_ASUSCOM) += asuscom.o isac.o arcofi.o hscx [all...] |
H A D | teles3.c | 20 #include "hscx.h" 81 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 83 return (readreg(cs->hw.teles3.hscx[hscx], offset)); 87 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 89 writereg(cs->hw.teles3.hscx[hscx], offset, value); 96 #define READHSCX(cs, nr, reg) readreg(cs->hw.teles3.hscx[nr], reg) 97 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.teles3.hscx[nr], reg, data) 113 val = readreg(cs->hw.teles3.hscx[ [all...] |
H A D | avm_a1.c | 16 #include "hscx.h" 81 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 83 return (readreg(cs->hw.avm.hscx[hscx], offset)); 87 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 89 writereg(cs->hw.avm.hscx[hscx], offset, value); 96 #define READHSCX(cs, nr, reg) readreg(cs->hw.avm.hscx[nr], reg) 97 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.avm.hscx[nr], reg, data) 118 val = readreg(cs->hw.avm.hscx[ [all...] |
H A D | mic.c | 16 #include "hscx.h" 92 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 95 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0))); 99 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 102 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0), value); 110 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0)) 112 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0), data) 115 cs->hw.mic.hscx, (n [all...] |
H A D | diva.c | 21 #include "hscx.h" 182 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 185 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0))); 189 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 192 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0), value); 222 MemReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 224 return(memreadreg(cs->hw.diva.cfg_reg, offset + (hscx ? 0x40 : 0))); 228 MemWriteHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 261 MemReadHSCX_IPACX(struct IsdnCardState *cs, int hscx, u_char offset) argument 268 MemWriteHSCX_IPACX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 369 MemwaitforCEC(struct IsdnCardState *cs, int hscx) argument 383 MemwaitforXFW(struct IsdnCardState *cs, int hscx) argument 396 MemWriteHSCXCMDR(struct IsdnCardState *cs, int hscx, u_char data) argument 479 Memhscx_interrupt(struct IsdnCardState *cs, u_char val, u_char hscx) argument [all...] |
H A D | s0box.c | 16 #include "hscx.h" 121 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 123 return (readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[hscx], offset)); 127 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 129 writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[hscx], offset, value); 136 #define READHSCX(cs, nr, reg) readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[nr], reg) 137 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[nr], reg, data) 153 val = readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[ [all...] |
H A D | niccy.c | 19 #include "hscx.h" 99 static u_char ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 102 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0)); 105 static void WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, argument 109 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0), value); 113 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0)) 115 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0), data) 118 cs->hw.niccy.hscx, (n [all...] |
H A D | ix1_micro.c | 24 #include "hscx.h" 101 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 104 cs->hw.ix1.hscx, offset + (hscx ? 0x40 : 0))); 108 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 111 cs->hw.ix1.hscx, offset + (hscx ? 0x40 : 0), value); 115 cs->hw.ix1.hscx, reg + (nr ? 0x40 : 0)) 117 cs->hw.ix1.hscx, reg + (nr ? 0x40 : 0), data) 120 cs->hw.ix1.hscx, (n [all...] |
H A D | saphir.c | 18 #include "hscx.h" 93 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 95 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, 96 offset + (hscx ? 0x40 : 0))); 100 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 102 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, 103 offset + (hscx ? 0x40 : 0), value); 107 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0)) 109 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0), data) 112 cs->hw.saphir.hscx, (n [all...] |
H A D | sportster.c | 18 #include "hscx.h" 79 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 81 return (bytein(calc_off(cs->hw.spt.hscx[hscx], offset))); 85 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 87 byteout(calc_off(cs->hw.spt.hscx[hscx], offset), value); 94 #define READHSCX(cs, nr, reg) bytein(calc_off(cs->hw.spt.hscx[nr], reg)) 95 #define WRITEHSCX(cs, nr, reg, data) byteout(calc_off(cs->hw.spt.hscx[nr], reg), data) 96 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.spt.hscx[n [all...] |
H A D | gazel.c | 17 #include "hscx.h" 36 #define INT_HSCX_EN 0x1 /* 1 = enable IT hscx */ 37 #define INT_HSCX 0x4 /* 1 = IT hscx en cours */ 170 ReadHSCXfifo(struct IsdnCardState *cs, int hscx, u_char * data, int size) argument 175 read_fifo(cs->hw.gazel.hscxfifo[hscx], data, size); 179 read_fifo_ipac(cs->hw.gazel.ipac, hscx * 0x40, data, size); 185 WriteHSCXfifo(struct IsdnCardState *cs, int hscx, u_char * data, int size) argument 190 write_fifo(cs->hw.gazel.hscxfifo[hscx], data, size); 194 write_fifo_ipac(cs->hw.gazel.ipac, hscx * 0x40, data, size); 200 ReadHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 217 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument [all...] |
H A D | jade.c | 3 * JADE stuff (derived from original hscx.c) 16 #include "hscx.h" 81 int jade = bcs->hw.hscx.hscx; 148 bcs->hw.hscx.count = 0; 160 bcs->hw.hscx.count = 0; 198 kfree(bcs->hw.hscx.rcvbuf); 199 bcs->hw.hscx.rcvbuf = NULL; 216 if (!(bcs->hw.hscx.rcvbuf = kmalloc(HSCX_BUFMAX, GFP_ATOMIC))) { 218 "HiSax: No memory for hscx [all...] |
H A D | asuscom.c | 20 #include "hscx.h" 128 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 131 cs->hw.asus.hscx, offset + (hscx ? 0x40 : 0))); 135 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 138 cs->hw.asus.hscx, offset + (hscx ? 0x40 : 0), value); 146 cs->hw.asus.hscx, reg + (nr ? 0x40 : 0)) 148 cs->hw.asus.hscx, reg + (nr ? 0x40 : 0), data) 151 cs->hw.asus.hscx, (n [all...] |
H A D | teles0.c | 22 #include "hscx.h" 46 readhscx(void __iomem *adr, int hscx, u_char off) argument 48 return readb(adr + (hscx ? 0x1c0 : 0x180) + 53 writehscx(void __iomem *adr, int hscx, u_char off, u_char data) argument 55 writeb(data, adr + (hscx ? 0x1c0 : 0x180) + 79 read_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 82 register u_char __iomem *ad = adr + (hscx ? 0x1c0 : 0x180); 88 write_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 91 register u_char __iomem *ad = adr + (hscx ? 0x1c0 : 0x180); 124 ReadHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 130 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument [all...] |
H A D | telespci.c | 18 #include "hscx.h" 78 readhscx(void __iomem *adr, int hscx, u_char off) argument 84 writel(WRITE_ADDR_HSCX | ((hscx ? 0x40:0) + off), adr + 0x200); 94 writehscx(void __iomem *adr, int hscx, u_char off, u_char data) argument 100 writel(WRITE_ADDR_HSCX | ((hscx ? 0x40:0) + off), adr + 0x200); 144 read_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 153 writel(WRITE_ADDR_HSCX |(hscx ? 0x5F:0x1F), adr + 0x200); 162 write_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 171 writel(WRITE_ADDR_HSCX |(hscx ? 0x5F:0x1F), adr + 0x200); 206 ReadHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 212 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument [all...] |
H A D | sedlbauer.c | 45 #include "hscx.h" 204 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 207 cs->hw.sedl.hscx, offset + (hscx ? 0x40 : 0))); 211 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 214 cs->hw.sedl.hscx, offset + (hscx ? 0x40 : 0), value); 227 return (readreg(cs->hw.sedl.adr, cs->hw.sedl.hscx, offset)); 230 return(bytein(cs->hw.sedl.hscx)); 237 writereg(cs->hw.sedl.adr, cs->hw.sedl.hscx, offse [all...] |
H A D | avm_a1p.c | 19 #include "hscx.h" 95 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 101 HSCX_REG_OFFSET+hscx*HSCX_CH_DIFF+offset); 107 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 111 HSCX_REG_OFFSET+hscx*HSCX_CH_DIFF+offset); 116 ReadHSCXfifo(struct IsdnCardState *cs, int hscx, u_char * data, int size) argument 119 HSCX_FIFO_OFFSET+hscx*HSCX_CH_DIFF); 124 WriteHSCXfifo(struct IsdnCardState *cs, int hscx, u_char * data, int size) argument 127 HSCX_FIFO_OFFSET+hscx*HSCX_CH_DIFF);
|
H A D | hisax.h | 355 int hscx; member in struct:hscx_hw 513 struct hscx_hw hscx; member in union:BCState::__anon4764 550 unsigned int hscx; member in struct:elsa_hw 574 signed int hscx[2]; member in struct:teles3_hw 588 unsigned int hscx[2]; member in struct:avm_hw 600 unsigned int hscx; member in struct:ix1_hw 610 unsigned int hscx; member in struct:diva_hw 621 unsigned int hscx; member in struct:asus_hw 641 unsigned int hscx; member in struct:sedl_hw 653 unsigned int hscx[ member in struct:spt_hw 661 unsigned int hscx; member in struct:mic_hw 762 unsigned int hscx; member in struct:saphir_hw 785 signed int hscx[2]; member in struct:gazel_hw [all...] |
H A D | elsa.c | 26 #include "hscx.h" 225 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 228 cs->hw.elsa.hscx, offset + (hscx ? 0x40 : 0))); 232 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 235 cs->hw.elsa.hscx, offset + (hscx ? 0x40 : 0), value); 272 cs->hw.elsa.hscx, reg + (nr ? 0x40 : 0)) 274 cs->hw.elsa.hscx, reg + (nr ? 0x40 : 0), data) 277 cs->hw.elsa.hscx, (n [all...] |
H A D | elsa_ser.c | 291 bcs->ackcnt += bcs->hw.hscx.count; 300 bcs->hw.hscx.count = 0; 431 if (bcs->hw.hscx.rcvbuf) { 433 kfree(bcs->hw.hscx.rcvbuf); 434 bcs->hw.hscx.rcvbuf = NULL; 561 bcs->hw.hscx.count = 0; 598 bcs->hw.hscx.rcvbuf = bcs->cs->hw.elsa.rcvbuf; 605 bcs->hw.hscx.rcvidx = 0;
|
H A D | bkm_a8.c | 18 #include "hscx.h" 107 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 109 return (readreg(cs->hw.ax.base, cs->hw.ax.data_adr, offset + (hscx ? 0x40 : 0))); 113 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 115 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, offset + (hscx ? 0x40 : 0), value); 418 /* For isac and hscx data path */
|