| /kernel/linux/linux-4.19/drivers/isdn/hisax/ |
| D | teles3.c | 56 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 58 return (readreg(cs->hw.teles3.isac, offset)); in ReadISAC() 62 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 64 writereg(cs->hw.teles3.isac, offset, value); in WriteISAC() 68 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 70 read_fifo(cs->hw.teles3.isacfifo, data, size); in ReadISACfifo() 74 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 76 write_fifo(cs->hw.teles3.isacfifo, data, size); in WriteISACfifo() 80 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument 82 return (readreg(cs->hw.teles3.hscx[hscx], offset)); in ReadHSCX() [all …]
|
| D | avm_a1.c | 56 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 58 return (readreg(cs->hw.avm.isac, offset)); in ReadISAC() 62 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 64 writereg(cs->hw.avm.isac, offset, value); in WriteISAC() 68 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 70 read_fifo(cs->hw.avm.isacfifo, data, size); in ReadISACfifo() 74 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 76 write_fifo(cs->hw.avm.isacfifo, data, size); in WriteISACfifo() 80 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument 82 return (readreg(cs->hw.avm.hscx[hscx], offset)); in ReadHSCX() [all …]
|
| D | teleint.c | 32 while (ret && --max_delay) in readreg() 52 while (ret && --max_delay) in readfifo() 71 while (ret && --max_delay) in writereg() 90 while (ret && --max_delay) in writefifo() 103 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 105 cs->hw.hfc.cip = offset; in ReadISAC() 106 return (readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset)); in ReadISAC() 110 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 112 cs->hw.hfc.cip = offset; in WriteISAC() 113 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset, value); in WriteISAC() [all …]
|
| D | hscx.c | 22 {"A1", "?1", "A2", "?3", "A3", "V2.1", "?6", "?7", 26 HscxVersion(struct IsdnCardState *cs, char *s) in HscxVersion() argument 30 verA = cs->BC_Read_Reg(cs, 0, HSCX_VSTR) & 0xf; in HscxVersion() 31 verB = cs->BC_Read_Reg(cs, 1, HSCX_VSTR) & 0xf; in HscxVersion() 35 return (1); in HscxVersion() 43 struct IsdnCardState *cs = bcs->cs; in modehscx() local 44 int hscx = bcs->hw.hscx.hscx; in modehscx() 46 if (cs->debug & L1_DEB_HSCX) in modehscx() 47 debugl1(cs, "hscx %c mode %d ichan %d", in modehscx() 49 bcs->mode = mode; in modehscx() [all …]
|
| D | gazel.c | 24 #define R647 1 33 #define INT_ISAC_EN 0x8 /* 1 = enable IT isac */ 34 #define INT_ISAC 0x20 /* 1 = IT isac en cours */ 35 #define INT_HSCX_EN 0x1 /* 1 = enable IT hscx */ 36 #define INT_HSCX 0x4 /* 1 = IT hscx en cours */ 37 #define INT_PCI_EN 0x40 /* 1 = enable IT PCI */ 104 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 108 switch (cs->subtyp) { in ReadISAC() 113 return (readreg(cs->hw.gazel.isac, off2)); in ReadISAC() 116 return (readreg_ipac(cs->hw.gazel.ipac, 0x80 + off2)); in ReadISAC() [all …]
|
| D | jade.c | 24 JadeVersion(struct IsdnCardState *cs, char *s) in JadeVersion() argument 28 cs->BC_Write_Reg(cs, -1, 0x50, 0x19); in JadeVersion() 30 udelay(1); in JadeVersion() 31 ver = cs->BC_Read_Reg(cs, -1, 0x60); in JadeVersion() 32 to--; in JadeVersion() 43 ver = cs->BC_Read_Reg(cs, -1, 0x60); in JadeVersion() 45 return (1); in JadeVersion() 50 jade_write_indirect(struct IsdnCardState *cs, u_char reg, u_char value) in jade_write_indirect() argument 56 cs->BC_Write_Reg(cs, -1, COMM_JADE + 1, value); in jade_write_indirect() 58 cs->BC_Write_Reg(cs, -1, COMM_JADE, reg); in jade_write_indirect() [all …]
|
| D | diva.c | 39 #define DIVA_IPAC_DATA 1 46 #define DIVA_ISA 1 132 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 134 return (readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset)); in ReadISAC() 138 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 140 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset, value); in WriteISAC() 144 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 146 readfifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0, data, size); in ReadISACfifo() 150 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 152 writefifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0, data, size); in WriteISACfifo() [all …]
|
| D | avm_pci.c | 26 #define AVM_FRITZ_PCI 1 78 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 83 outb(idx, cs->hw.avm.cfg_reg + 4); in ReadISAC() 84 val = inb(cs->hw.avm.isac + (offset & 0xf)); in ReadISAC() 89 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 93 outb(idx, cs->hw.avm.cfg_reg + 4); in WriteISAC() 94 outb(value, cs->hw.avm.isac + (offset & 0xf)); in WriteISAC() 98 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 100 outb(AVM_ISAC_FIFO, cs->hw.avm.cfg_reg + 4); in ReadISACfifo() 101 insb(cs->hw.avm.isac, data, size); in ReadISACfifo() [all …]
|
| D | hfc_sx.c | 3 * level driver for Cologne Chip Designs hfc-s+/sp based cards 25 /* IRQ-table for CCDs demo board */ 33 * ISA-SLOT Signal PIN 46 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 3, 4, 5, 0, 0, 6 50 0, 0, 0, 7, 0, 1, 0, 0, 0, 2, 3, 4, 5, 0, 0, 6 62 Write_hfc(struct IsdnCardState *cs, u_char regnum, u_char val) in Write_hfc() argument 64 byteout(cs->hw.hfcsx.base + 1, regnum); in Write_hfc() 65 byteout(cs->hw.hfcsx.base, val); in Write_hfc() 69 Read_hfc(struct IsdnCardState *cs, u_char regnum) in Read_hfc() argument 73 byteout(cs->hw.hfcsx.base + 1, regnum); in Read_hfc() [all …]
|
| D | teles0.c | 33 return readb(adr + ((off & 1) ? 0x2ff : 0x100) + off); in readisac() 39 writeb(data, adr + ((off & 1) ? 0x2ff : 0x100) + off); mb(); in writeisac() 47 ((off & 1) ? 0x1ff : 0) + off); in readhscx() 54 ((off & 1) ? 0x1ff : 0) + off); mb(); in writehscx() 98 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 100 return (readisac(cs->hw.teles0.membase, offset)); in ReadISAC() 104 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 106 writeisac(cs->hw.teles0.membase, offset, value); in WriteISAC() 110 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 112 read_fifo_isac(cs->hw.teles0.membase, data, size); in ReadISACfifo() [all …]
|
| D | saphir.c | 3 * low level stuff for HST Saphir 1 27 #define HSCX_DATA 1 68 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 70 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset)); in ReadISAC() 74 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 76 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset, value); in WriteISAC() 80 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 82 readfifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in ReadISACfifo() 86 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 88 writefifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in WriteISACfifo() [all …]
|
| D | s0box.c | 33 static u_char nibtab[] = { 1, 9, 5, 0xd, 3, 0xb, 7, 0xf, 46 n1 = (inb_p(padr + 1) >> 3) & 0x17; in readreg() 48 n2 = (inb_p(padr + 1) >> 3) & 0x17; in readreg() 66 n1 = (inb_p(padr + 1) >> 3) & 0x17; in read_fifo() 68 n2 = (inb_p(padr + 1) >> 3) & 0x17; in read_fifo() 96 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 98 return (readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.isac, offset)); in ReadISAC() 102 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 104 writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.isac, offset, value); in WriteISAC() 108 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument [all …]
|
| D | niccy.c | 30 #define HSCX_PCI_DATA 1 34 #define HSCX_PNP 1 37 #define NICCY_PNP 1 78 static u_char ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 80 return readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset); in ReadISAC() 83 static void WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 85 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset, value); in WriteISAC() 88 static void ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 90 readfifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in ReadISACfifo() 93 static void WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument [all …]
|
| D | sedlbauer.c | 6 * support for the Sedlbauer ISDN-Controller PC/104 and 11 * Copyright by Marcus Niemann <niemann@www-bib.fh-bielefeld.de> 24 * --------------------------------------------------------------------- 25 * Speed Card ISAC_HSCX DIP-SWITCH 30 * ISDN PC/104 IPAC DIP-SWITCH 64 #define SEDL_SPEED_CARD_WIN 1 75 #define SEDL_CHIP_ISAC_HSCX 1 79 #define SEDL_BUS_ISA 1 87 #define SEDL_HSCX_ISA_RESET_OFF 1 93 #define SEDL_HSCX_PCMCIA_ISAC 1 [all …]
|
| D | hfc_2bds0.c | 29 dummyf(struct IsdnCardState *cs, u_char *data, int size) in dummyf() argument 35 ReadReg(struct IsdnCardState *cs, int data, u_char reg) in ReadReg() argument 40 if (cs->hw.hfcD.cip != reg) { in ReadReg() 41 cs->hw.hfcD.cip = reg; in ReadReg() 42 byteout(cs->hw.hfcD.addr | 1, reg); in ReadReg() 44 ret = bytein(cs->hw.hfcD.addr); in ReadReg() 46 if (cs->debug & L1_DEB_HSCX_FIFO && (data != 2)) in ReadReg() 47 debugl1(cs, "t3c RD %02x %02x", reg, ret); in ReadReg() 50 ret = bytein(cs->hw.hfcD.addr | 1); in ReadReg() 55 WriteReg(struct IsdnCardState *cs, int data, u_char reg, u_char value) in WriteReg() argument [all …]
|
| D | elsa.c | 36 {"None", "PC", "PCC-8", "PCC-16", "PCF", "PCF-Pro", 38 "PCMCIA-IPAC" }; 41 {"?0?", "?1?", "?2?", "?3?", "?4?", "V2.2", 48 #define ELSA_ISAC_PCM 1 49 #define ELSA_ITAC 1 58 #define ELSA_PC 1 83 *** (mehrere Befehle werden durch Bit-Oderung kombiniert) *** 86 /* Config-Register (Read) */ 87 #define ELIRQF_TIMER_RUN 0x02 /* Bit 1 des Config-Reg */ 88 #define ELIRQF_TIMER_RUN_PCC8 0x01 /* Bit 0 des Config-Reg bei PCC */ [all …]
|
| D | hfcscard.c | 24 struct IsdnCardState *cs = dev_id; in hfcs_interrupt() local 28 spin_lock_irqsave(&cs->lock, flags); in hfcs_interrupt() 30 (stat = cs->BC_Read_Reg(cs, HFCD_DATA, HFCD_STAT))) { in hfcs_interrupt() 31 val = cs->BC_Read_Reg(cs, HFCD_DATA, HFCD_INT_S1); in hfcs_interrupt() 32 if (cs->debug & L1_DEB_ISAC) in hfcs_interrupt() 33 debugl1(cs, "HFCS: stat(%02x) s1(%02x)", stat, val); in hfcs_interrupt() 34 hfc2bds0_interrupt(cs, val); in hfcs_interrupt() 36 if (cs->debug & L1_DEB_ISAC) in hfcs_interrupt() 37 debugl1(cs, "HFCS: irq_no_irq stat(%02x)", stat); in hfcs_interrupt() 39 spin_unlock_irqrestore(&cs->lock, flags); in hfcs_interrupt() [all …]
|
| D | w6692.c | 39 #define W6692_DYNALINK 1 51 W6692Version(struct IsdnCardState *cs, char *s) in W6692Version() argument 55 val = cs->readW6692(cs, W_D_RBCH); in W6692Version() 60 ph_command(struct IsdnCardState *cs, unsigned int command) in ph_command() argument 62 if (cs->debug & L1_DEB_ISAC) in ph_command() 63 debugl1(cs, "ph_command %x", command); in ph_command() 64 cs->writeisac(cs, W_CIX, command); in ph_command() 69 W6692_new_ph(struct IsdnCardState *cs) in W6692_new_ph() argument 71 switch (cs->dc.w6692.ph_state) { in W6692_new_ph() 73 ph_command(cs, W_L1CMD_DRC); in W6692_new_ph() [all …]
|
| D | hfc_pci.c | 3 * low level driver for CCD's hfc-pci based cards 56 {PCI_VENDOR_ID_BERKOM, PCI_DEVICE_ID_BERKOM_T_CONCEPT, "German telekom", "T-Concept"}, 64 {PCI_VENDOR_ID_SITECOM, PCI_DEVICE_ID_SITECOM_DC105V2, "Sitecom Europe", "DC-105 ISDN PCI"}, 73 release_io_hfcpci(struct IsdnCardState *cs) in release_io_hfcpci() argument 76 cs->hw.hfcpci.pci_io); in release_io_hfcpci() 77 cs->hw.hfcpci.int_m2 = 0; /* interrupt output off ! */ in release_io_hfcpci() 78 Write_hfc(cs, HFCPCI_INT_M2, cs->hw.hfcpci.int_m2); in release_io_hfcpci() 79 Write_hfc(cs, HFCPCI_CIRM, HFCPCI_RESET); /* Reset On */ in release_io_hfcpci() 81 Write_hfc(cs, HFCPCI_CIRM, 0); /* Reset Off */ in release_io_hfcpci() 83 Write_hfc(cs, HFCPCI_INT_M2, cs->hw.hfcpci.int_m2); in release_io_hfcpci() [all …]
|
| D | amd7930_fn.c | 6 * Author Christoph Ersfeld <info@formula-n.de> 7 * Formula-n Europe AG (www.formula-n.com) 19 * (compressed) debug-logs. 22 * Log D-channel-processing as follows: 24 * 1. Load hisax with card-specific parameters, this example ist for 25 * Formula-n enter:now ISDN PCI and compatible 33 * 2. set debug-level 35 * hisaxctrl gerdes 1 0x3ff 44 * Programming the driver for Formula-n enter:now ISDN PCI and 45 * necessary this driver for the used Amd 7930 D-channel-controller [all …]
|
| D | ix1_micro.c | 3 * low level stuff for ITK ix1-micro Rev.2 isdn cards 6 * Author Klaus-Peter Nischke 7 * Copyright by Klaus-Peter Nischke, ITK AG 14 * Klaus-Peter Nischke 37 #define HSCX_DATA_OFFSET 1 76 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 78 return (readreg(cs->hw.ix1.isac_ale, cs->hw.ix1.isac, offset)); in ReadISAC() 82 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 84 writereg(cs->hw.ix1.isac_ale, cs->hw.ix1.isac, offset, value); in WriteISAC() 88 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument [all …]
|
| D | isurf.c | 3 * low level stuff for Siemens I-Surf/I-Talk cards 25 #define ISURF_ISAR_RESET 1 37 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 39 return (readb(cs->hw.isurf.isac + offset)); in ReadISAC() 43 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 45 writeb(value, cs->hw.isurf.isac + offset); mb(); in WriteISAC() 49 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 53 data[i] = readb(cs->hw.isurf.isac); in ReadISACfifo() 57 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 61 writeb(data[i], cs->hw.isurf.isac); mb(); in WriteISACfifo() [all …]
|
| D | netjet.c | 13 * 16-Apr-2002 - led code added - Guy Ellis (guy@traverse.com.au) 31 NETjet_ReadIC(struct IsdnCardState *cs, u_char offset) in NETjet_ReadIC() argument 35 cs->hw.njet.auxd &= 0xfc; in NETjet_ReadIC() 36 cs->hw.njet.auxd |= (offset >> 4) & 3; in NETjet_ReadIC() 37 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_ReadIC() 38 ret = bytein(cs->hw.njet.isac + ((offset & 0xf) << 2)); in NETjet_ReadIC() 43 NETjet_WriteIC(struct IsdnCardState *cs, u_char offset, u_char value) in NETjet_WriteIC() argument 45 cs->hw.njet.auxd &= 0xfc; in NETjet_WriteIC() 46 cs->hw.njet.auxd |= (offset >> 4) & 3; in NETjet_WriteIC() 47 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_WriteIC() [all …]
|
| /kernel/linux/linux-4.19/drivers/isdn/gigaset/ |
| D | ev-layer.c | 35 #define RT_ZSAU 1 43 #define RSP_ERROR 1 50 /* - numeric */ 55 /* - string */ 63 #define RSP_WRONG_CID -2 /* unknown cid in cmd */ 64 #define RSP_INVAL -6 /* invalid response */ 65 #define RSP_NODEV -9 /* device not connected */ 67 #define RSP_NONE -19 68 #define RSP_STRING -20 69 #define RSP_NULL -21 [all …]
|
| D | common.c | 41 * gigaset_dbg_buffer() - dump data in ASCII and hex for debugging 56 size_t space = sizeof outbuf - 1; in gigaset_dbg_buffer() 60 while (numin--) { in gigaset_dbg_buffer() 63 if (!space--) in gigaset_dbg_buffer() 68 if (!space--) in gigaset_dbg_buffer() 74 if (!space--) in gigaset_dbg_buffer() 79 if (!space--) in gigaset_dbg_buffer() 89 static int setflags(struct cardstate *cs, unsigned flags, unsigned delay) in setflags() argument 93 r = cs->ops->set_modem_ctrl(cs, cs->control_state, flags); in setflags() 94 cs->control_state = flags; in setflags() [all …]
|