/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.24.2.4 2004/01/24 20:47:23 keil Exp $ 15 #include "hscx.h" 44 int hscx = bcs->hw.hscx.hscx; local 47 debugl1(cs, "hscx %c mode %d ichan %d", 48 'A' + hscx, mode, bc); 51 cs->BC_Write_Reg(cs, hscx, HSCX_XAD1, 0xFF); 52 cs->BC_Write_Reg(cs, hscx, HSCX_XAD2, 0xFF); 53 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 47 static void bch_int(struct IsdnCardState *cs, u_char hscx); 52 static void bch_init(struct IsdnCardState *cs, int hscx); 460 bcs->hw.hscx.count = 0; 472 bcs->hw.hscx.count = 0; 511 u_char *ptr, hscx; local 516 hscx = bcs->hw.hscx.hscx; 521 if (bcs->hw.hscx 554 u_char *ptr, *p, hscx; local 593 bch_int(struct IsdnCardState *cs, u_char hscx) argument 716 int hscx = bcs->hw.hscx.hscx; local 828 bch_init(struct IsdnCardState *cs, int hscx) argument [all...] |
H A D | Makefile | 30 hisax-$(CONFIG_HISAX_16_0) += teles0.o isac.o arcofi.o hscx.o 31 hisax-$(CONFIG_HISAX_16_3) += teles3.o isac.o arcofi.o hscx.o 32 hisax-$(CONFIG_HISAX_TELESPCI) += telespci.o isac.o arcofi.o hscx.o 33 hisax-$(CONFIG_HISAX_S0BOX) += s0box.o isac.o arcofi.o hscx.o 34 hisax-$(CONFIG_HISAX_AVM_A1) += avm_a1.o isac.o arcofi.o hscx.o 35 hisax-$(CONFIG_HISAX_AVM_A1_PCMCIA) += avm_a1p.o isac.o arcofi.o hscx.o 37 hisax-$(CONFIG_HISAX_ELSA) += elsa.o isac.o arcofi.o hscx.o 38 hisax-$(CONFIG_HISAX_IX1MICROR2) += ix1_micro.o isac.o arcofi.o hscx.o 39 hisax-$(CONFIG_HISAX_DIEHLDIVA) += diva.o isac.o arcofi.o hscx.o ipacx.o 40 hisax-$(CONFIG_HISAX_ASUSCOM) += asuscom.o isac.o arcofi.o hscx [all...] |
H A D | teles3.c | 20 #include "hscx.h" 80 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 82 return (readreg(cs->hw.teles3.hscx[hscx], offset)); 86 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 88 writereg(cs->hw.teles3.hscx[hscx], offset, value); 95 #define READHSCX(cs, nr, reg) readreg(cs->hw.teles3.hscx[nr], reg) 96 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.teles3.hscx[nr], reg, data) 112 val = readreg(cs->hw.teles3.hscx[ [all...] |
H A D | avm_a1.c | 16 #include "hscx.h" 80 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 82 return (readreg(cs->hw.avm.hscx[hscx], offset)); 86 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 88 writereg(cs->hw.avm.hscx[hscx], offset, value); 95 #define READHSCX(cs, nr, reg) readreg(cs->hw.avm.hscx[nr], reg) 96 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.avm.hscx[nr], reg, data) 117 val = readreg(cs->hw.avm.hscx[ [all...] |
H A D | mic.c | 16 #include "hscx.h" 90 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 93 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0))); 97 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 100 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0), value); 108 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0)) 110 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0), data) 113 cs->hw.mic.hscx, (n [all...] |
H A D | diva.c | 21 #include "hscx.h" 180 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 183 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0))); 187 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 190 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0), value); 220 MemReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 222 return(memreadreg(cs->hw.diva.cfg_reg, offset + (hscx ? 0x40 : 0))); 226 MemWriteHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 259 MemReadHSCX_IPACX(struct IsdnCardState *cs, int hscx, u_char offset) argument 266 MemWriteHSCX_IPACX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 367 MemwaitforCEC(struct IsdnCardState *cs, int hscx) argument 381 MemwaitforXFW(struct IsdnCardState *cs, int hscx) argument 394 MemWriteHSCXCMDR(struct IsdnCardState *cs, int hscx, u_char data) argument 477 Memhscx_interrupt(struct IsdnCardState *cs, u_char val, u_char hscx) argument [all...] |
H A D | s0box.c | 16 #include "hscx.h" 120 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 122 return (readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[hscx], offset)); 126 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 128 writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[hscx], offset, value); 135 #define READHSCX(cs, nr, reg) readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[nr], reg) 136 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[nr], reg, data) 152 val = readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[ [all...] |
H A D | niccy.c | 19 #include "hscx.h" 98 static u_char ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 101 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0)); 104 static void WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, argument 108 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0), value); 112 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0)) 114 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0), data) 117 cs->hw.niccy.hscx, (n [all...] |
H A D | ix1_micro.c | 24 #include "hscx.h" 100 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 103 cs->hw.ix1.hscx, offset + (hscx ? 0x40 : 0))); 107 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 110 cs->hw.ix1.hscx, offset + (hscx ? 0x40 : 0), value); 114 cs->hw.ix1.hscx, reg + (nr ? 0x40 : 0)) 116 cs->hw.ix1.hscx, reg + (nr ? 0x40 : 0), data) 119 cs->hw.ix1.hscx, (n [all...] |
H A D | saphir.c | 18 #include "hscx.h" 92 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 94 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, 95 offset + (hscx ? 0x40 : 0))); 99 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 101 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, 102 offset + (hscx ? 0x40 : 0), value); 106 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0)) 108 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0), data) 111 cs->hw.saphir.hscx, (n [all...] |
H A D | sportster.c | 18 #include "hscx.h" 78 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 80 return (bytein(calc_off(cs->hw.spt.hscx[hscx], offset))); 84 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 86 byteout(calc_off(cs->hw.spt.hscx[hscx], offset), value); 93 #define READHSCX(cs, nr, reg) bytein(calc_off(cs->hw.spt.hscx[nr], reg)) 94 #define WRITEHSCX(cs, nr, reg, data) byteout(calc_off(cs->hw.spt.hscx[nr], reg), data) 95 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.spt.hscx[n [all...] |
H A D | telespci.c | 18 #include "hscx.h" 77 readhscx(void __iomem *adr, int hscx, u_char off) argument 83 writel(WRITE_ADDR_HSCX | ((hscx ? 0x40:0) + off), adr + 0x200); 93 writehscx(void __iomem *adr, int hscx, u_char off, u_char data) argument 99 writel(WRITE_ADDR_HSCX | ((hscx ? 0x40:0) + off), adr + 0x200); 143 read_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 152 writel(WRITE_ADDR_HSCX |(hscx ? 0x5F:0x1F), adr + 0x200); 161 write_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 170 writel(WRITE_ADDR_HSCX |(hscx ? 0x5F:0x1F), adr + 0x200); 205 ReadHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 211 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument [all...] |
H A D | gazel.c | 17 #include "hscx.h" 35 #define INT_HSCX_EN 0x1 /* 1 = enable IT hscx */ 36 #define INT_HSCX 0x4 /* 1 = IT hscx en cours */ 169 ReadHSCXfifo(struct IsdnCardState *cs, int hscx, u_char * data, int size) argument 174 read_fifo(cs->hw.gazel.hscxfifo[hscx], data, size); 178 read_fifo_ipac(cs->hw.gazel.ipac, hscx * 0x40, data, size); 184 WriteHSCXfifo(struct IsdnCardState *cs, int hscx, u_char * data, int size) argument 189 write_fifo(cs->hw.gazel.hscxfifo[hscx], data, size); 193 write_fifo_ipac(cs->hw.gazel.ipac, hscx * 0x40, data, size); 199 ReadHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 216 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" 126 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 129 cs->hw.asus.hscx, offset + (hscx ? 0x40 : 0))); 133 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 136 cs->hw.asus.hscx, offset + (hscx ? 0x40 : 0), value); 144 cs->hw.asus.hscx, reg + (nr ? 0x40 : 0)) 146 cs->hw.asus.hscx, reg + (nr ? 0x40 : 0), data) 149 cs->hw.asus.hscx, (n [all...] |
H A D | teles0.c | 22 #include "hscx.h" 44 readhscx(void __iomem *adr, int hscx, u_char off) argument 46 return readb(adr + (hscx ? 0x1c0 : 0x180) + 51 writehscx(void __iomem *adr, int hscx, u_char off, u_char data) argument 53 writeb(data, adr + (hscx ? 0x1c0 : 0x180) + 77 read_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 80 register u_char __iomem *ad = adr + (hscx ? 0x1c0 : 0x180); 86 write_fifo_hscx(void __iomem *adr, int hscx, u_char * data, int size) argument 89 register u_char __iomem *ad = adr + (hscx ? 0x1c0 : 0x180); 122 ReadHSCX(struct IsdnCardState *cs, int hscx, u_cha argument 128 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument [all...] |
H A D | sedlbauer.c | 45 #include "hscx.h" 202 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 205 cs->hw.sedl.hscx, offset + (hscx ? 0x40 : 0))); 209 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 212 cs->hw.sedl.hscx, offset + (hscx ? 0x40 : 0), value); 225 return (readreg(cs->hw.sedl.adr, cs->hw.sedl.hscx, offset)); 228 return(bytein(cs->hw.sedl.hscx)); 235 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 | 365 int hscx; member in struct:hscx_hw 523 struct hscx_hw hscx; member in union:BCState::__anon1227 560 unsigned int hscx; member in struct:elsa_hw 584 signed int hscx[2]; member in struct:teles3_hw 598 unsigned int hscx[2]; member in struct:avm_hw 610 unsigned int hscx; member in struct:ix1_hw 620 unsigned int hscx; member in struct:diva_hw 631 unsigned int hscx; member in struct:asus_hw 651 unsigned int hscx; member in struct:sedl_hw 663 unsigned int hscx[ member in struct:spt_hw 671 unsigned int hscx; member in struct:mic_hw 772 unsigned int hscx; member in struct:saphir_hw 795 signed int hscx[2]; member in struct:gazel_hw [all...] |
H A D | elsa.c | 27 #include "hscx.h" 224 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) argument 227 cs->hw.elsa.hscx, offset + (hscx ? 0x40 : 0))); 231 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) argument 234 cs->hw.elsa.hscx, offset + (hscx ? 0x40 : 0), value); 271 cs->hw.elsa.hscx, reg + (nr ? 0x40 : 0)) 273 cs->hw.elsa.hscx, reg + (nr ? 0x40 : 0), data) 276 cs->hw.elsa.hscx, (n [all...] |
/drivers/isdn/hardware/mISDN/ |
H A D | mISDNipac.c | 929 hscx_empty_fifo(struct hscx_hw *hscx, u8 count) argument 933 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); 934 if (!hscx->bch.rx_skb) { 935 hscx->bch.rx_skb = mI_alloc_skb(hscx->bch.maxlen, GFP_ATOMIC); 936 if (!hscx->bch.rx_skb) { 938 hscx->ip->name); 939 hscx_cmdr(hscx, 0x80); /* RMC */ 943 if ((hscx 969 hscx_fill_fifo(struct hscx_hw *hscx) argument 1216 hscx_mode(struct hscx_hw *hscx, u32 bprotocol) argument [all...] |
H A D | mISDNinfineon.c | 117 struct _ioaddr hscx; member in struct:inf_hw 242 card->ipac.hscx[0].bch.debug = debug; 243 card->ipac.hscx[1].bch.debug = debug; 273 IOFUNC_IO(IPAC, inf_hw, hscx.a.io) 275 IOFUNC_IND(IPAC, inf_hw, hscx.a.io) 277 IOFUNC_MEMIO(IPAC, inf_hw, u32, hscx.a.p) 566 hw->ipac.hscx[0].slot = 0x1f; 567 hw->ipac.hscx[1].slot = 0x23; 732 hw->hscx.mode = hw->cfg.mode; 733 hw->hscx [all...] |