Home
last modified time | relevance | path

Searched +full:cs +full:- +full:2 (Results 1 – 25 of 1026) sorted by relevance

12345678910>>...42

/linux-3.3/drivers/isdn/hisax/
Ds0box.c23 outb_p(0x1c,padr+2); in writereg()
24 outb_p(0x14,padr+2); in writereg()
26 outb_p(0x16,padr+2); in writereg()
28 outb_p(0x17,padr+2); in writereg()
29 outb_p(0x14,padr+2); in writereg()
30 outb_p(0x1c,padr+2); in writereg()
35 0, 8, 4, 0xc, 2, 0xa, 6, 0xe } ;
41 outb_p(0x1c,padr+2); in readreg()
42 outb_p(0x14,padr+2); in readreg()
44 outb_p(0x16,padr+2); in readreg()
[all …]
Damd7930_fn.c6 * 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
28 * modprobe hisax type=41 protocol=2 id=gerdes
33 * 2. set debug-level
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 …]
Dteles3.c56 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 …]
Dniccy.c31 #define ISAC_PCI_ADDR 2
38 #define NICCY_PCI 2
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
95 writefifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in WriteISACfifo()
[all …]
Dhfcscard.c24 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 …]
Davm_pci.c27 #define AVM_FRITZ_PNP 2
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 …]
Delsa.c36 {"None", "PC", "PCC-8", "PCC-16", "PCF", "PCF-Pro",
38 "PCMCIA-IPAC" };
41 {"?0?", "?1?", "?2?", "?3?", "?4?", "V2.2",
50 #define ELSA_HSCX 2
59 #define ELSA_PCC8 2
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 */
89 #define ELSA_IRQ_IDX 0x38 /* Bit 3,4,5 des Config-Reg */
[all …]
Dsedlbauer.c6 * 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
65 #define SEDL_SPEED_STAR 2
76 #define SEDL_CHIP_ISAC_ISAR 2
80 #define SEDL_BUS_PCI 2
88 #define SEDL_HSCX_ISA_ISAC 2
94 #define SEDL_HSCX_PCMCIA_HSCX 2
[all …]
Dteleint.c32 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 …]
Dix1_micro.c3 * 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
34 #define ISAC_COMMAND_OFFSET 2
36 #define HSCX_COMMAND_OFFSET 2
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()
[all …]
Denternow_pci.c3 * enternow_pci.c Card-specific routines for
4 * Formula-n enter:now ISDN PCI ab
9 * Author Christoph Ersfeld <info@formula-n.de>
10 * Formula-n Europe AG (www.formula-n.com)
17 * This driver interfaces to netjet.c which performs B-channel
26 * (compressed) debug-logs.
29 * Log D-channel-processing as follows:
31 * 1. Load hisax with card-specific parameters, this example ist for
32 * Formula-n enter:now ISDN PCI and compatible
35 * modprobe hisax type=41 protocol=2 id=gerdes
[all …]
Dhfc_sx.c3 * 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 …]
Dicc.c32 ICCVersion(struct IsdnCardState *cs, char *s) in ICCVersion() argument
36 val = cs->readisac(cs, ICC_RBCH); in ICCVersion()
41 ph_command(struct IsdnCardState *cs, unsigned int command) in ph_command() argument
43 if (cs->debug & L1_DEB_ISAC) in ph_command()
44 debugl1(cs, "ph_command %x", command); in ph_command()
45 cs->writeisac(cs, ICC_CIX0, (command << 2) | 3); in ph_command()
50 icc_new_ph(struct IsdnCardState *cs) in icc_new_ph() argument
52 switch (cs->dc.icc.ph_state) { in icc_new_ph()
54 ph_command(cs, ICC_CMD_DI); in icc_new_ph()
55 l1_msg(cs, HW_RESET | INDICATION, NULL); in icc_new_ph()
[all …]
Disac.c31 void __devinit ISACVersion(struct IsdnCardState *cs, char *s) in ISACVersion() argument
35 val = cs->readisac(cs, ISAC_RBCH); in ISACVersion()
40 ph_command(struct IsdnCardState *cs, unsigned int command) in ph_command() argument
42 if (cs->debug & L1_DEB_ISAC) in ph_command()
43 debugl1(cs, "ph_command %x", command); in ph_command()
44 cs->writeisac(cs, ISAC_CIX0, (command << 2) | 3); in ph_command()
49 isac_new_ph(struct IsdnCardState *cs) in isac_new_ph() argument
51 switch (cs->dc.isac.ph_state) { in isac_new_ph()
54 ph_command(cs, ISAC_CMD_DUI); in isac_new_ph()
55 l1_msg(cs, HW_RESET | INDICATION, NULL); in isac_new_ph()
[all …]
Disar.c19 #define DUMP_MBOXFRAME 2
27 static int frm_extra_delay = 2;
31 static void isar_setup(struct IsdnCardState *cs);
36 waitforHIA(struct IsdnCardState *cs, int timeout) in waitforHIA() argument
39 while ((cs->BC_Read_Reg(cs, 0, ISAR_HIA) & 1) && timeout) { in waitforHIA()
41 timeout--; in waitforHIA()
50 sendmsg(struct IsdnCardState *cs, u_char his, u_char creg, u_char len, in sendmsg() argument
55 if (!waitforHIA(cs, 4000)) in sendmsg()
58 if (cs->debug & L1_DEB_HSCX) in sendmsg()
59 debugl1(cs, "sendmsg(%02x,%02x,%d)", his, creg, len); in sendmsg()
[all …]
Davm_a1.c56 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 …]
Disurf.c3 * low level stuff for Siemens I-Surf/I-Talk cards
26 #define ISURF_ISAC_RESET 2
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 …]
Dconfig.c37 * 2 Teles 8.0 p0=irq p1=membase
44 * 9 ITK ix1-micro p0=irq p1=iobase
57 * 20 Travers Technologies NETjet-S PCI card
66 * 29 Siemens I-Surf p0=irq p1=iobase p2=memory (from isapnp setup)
72 * 35 HFC 2BDS0 PCI none
74 * 37 HFC 2BDS0 S+/SP p0=irq p1=iobase
75 * 38 Travers Technologies NETspider-U PCI card
76 * 39 HFC 2BDS0-SP PCMCIA p0=irq p1=iobase
78 * 41 Formula-n enter:now ISDN PCI a/b none
88 "Teles PCMCIA", "ITK ix1-micro Rev.2", "Elsa PCMCIA",
[all …]
Dteles0.c98 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()
116 WriteISACfifo(struct IsdnCardState *cs, u_char * data, int size) in WriteISACfifo() argument
118 write_fifo_isac(cs->hw.teles0.membase, data, size); in WriteISACfifo()
122 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument
124 return (readhscx(cs->hw.teles0.membase, hscx, offset)); in ReadHSCX()
[all …]
Dhfc_pci.c3 * low level driver for CCD's hfc-pci based cards
42 {PCI_VENDOR_ID_CCD, PCI_DEVICE_ID_CCD_2BD0, "CCD/Billion/Asuscom", "2BD0"},
54 {PCI_VENDOR_ID_ABOCOM, PCI_DEVICE_ID_ABOCOM_2BD1, "Abocom/Magitek", "2BD1"},
56 {PCI_VENDOR_ID_BERKOM, PCI_DEVICE_ID_BERKOM_T_CONCEPT, "German telekom", "T-Concept"},
59 {PCI_VENDOR_ID_ZOLTRIX, PCI_DEVICE_ID_ZOLTRIX_2BD0, "Zoltrix", "2BD0"},
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()
[all …]
Dnetjet.c13 * 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 …]
Dhfc_2bds0.c3 * specific routines for CCD's HFC 2BDS0
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()
[all …]
/linux-3.3/drivers/isdn/divert/
Disdn_divert.c61 struct call_struc *cs = (struct call_struc *) arg; in deflect_timer_expire() local
64 del_timer(&cs->timer); /* delete active timer */ in deflect_timer_expire()
67 switch(cs->akt_state) in deflect_timer_expire()
69 cs->ics.command = ISDN_CMD_HANGUP; /* cancel action */ in deflect_timer_expire()
70 divert_if.ll_cmd(&cs->ics); in deflect_timer_expire()
72 cs->akt_state = DEFLECT_AUTODEL; /* delete after timeout */ in deflect_timer_expire()
73 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_timer_expire()
74 add_timer(&cs->timer); in deflect_timer_expire()
79 cs->ics.command = ISDN_CMD_REDIR; /* protocol */ in deflect_timer_expire()
80 strlcpy(cs->ics.parm.setup.phone, cs->deflect_dest, sizeof(cs->ics.parm.setup.phone)); in deflect_timer_expire()
[all …]
/linux-3.3/arch/arm/mach-omap2/
Dboard-flash.c2 * board-flash.c
3 * Modified from mach-omap2/board-3430sdp-flash.c
11 * it under the terms of the GNU General Public License version 2 as
26 #include "board-flash.h"
39 .width = 2,
47 .name = "physmap-flash",
57 __init board_nor_init(struct mtd_partition *nor_parts, u8 nr_parts, u8 cs) in board_nor_init() argument
66 err = gpmc_cs_request(cs, FLASH_SIZE_SDPV2 - 1, in board_nor_init()
69 + FLASH_SIZE_SDPV2 - 1; in board_nor_init()
71 err = gpmc_cs_request(cs, FLASH_SIZE_SDPV1 - 1, in board_nor_init()
[all …]
/linux-3.3/kernel/time/
Dclocksource.c10 * the Free Software Foundation; either version 2 of the License, or
38 tc->cc = cc; in timecounter_init()
39 tc->cycle_last = cc->read(cc); in timecounter_init()
40 tc->nsec = start_tstamp; in timecounter_init()
45 * timecounter_read_delta - get nanoseconds since last call of this function
61 cycle_now = tc->cc->read(tc->cc); in timecounter_read_delta()
64 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc->mask; in timecounter_read_delta()
67 ns_offset = cyclecounter_cyc2ns(tc->cc, cycle_delta); in timecounter_read_delta()
70 tc->cycle_last = cycle_now; in timecounter_read_delta()
81 nsec += tc->nsec; in timecounter_read()
[all …]

12345678910>>...42