summaryrefslogtreecommitdiffstats
path: root/sys/i4b/layer1
Commit message (Collapse)AuthorAgeFilesLines
* Since DELAY() was moved, most <machine/clock.h> #includes have beenphk2006-05-164-4/+0
| | | | unnecessary.
* PR: kern/76611hm2006-05-131-8/+8
| | | | | | Submitted by: Mauritz Sundell and Sergio de Souza Prallon Reviewed by: hm@ fix several constants for the Tiger320 ISDN chip
* Fix -Wundef warnings found when compiling i386 LINT, GENERIC andru2005-12-051-1/+1
| | | | custom kernels.
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386nyan2005-05-291-1/+0
| | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr)
* Don't use 'i386/include' directly.nyan2005-04-081-2/+2
|
* Add device ID for Planet IA 128P-STD card.murray2005-03-191-0/+2
| | | | | | PR: kern/71923 Submitted by: Vassily Kiryanov <admin@assist.berezniki.ru> MFC after: 1 week
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-0670-210/+280
|
* Fix a possible hang which apparently occurs during a warm boot (cold bootgj2004-07-181-0/+8
| | | | | | | | | | | does not display the symptom). Evidently the ifpi2 controller needs to be massaged more than it was. Note that this does not close the PR since it was filed against 4.9. MFC: 5 days PR: kern/68756 Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
* add missing #include <sys/module.h>phk2004-05-303-0/+3
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-1717-130/+127
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Use PCIR_BAR(x) instead of PCIR_MAPS.jhb2003-09-025-18/+15
| | | | | Glanced over by: imp, gibbs Tested by: i386 LINT
* Prefer new location of pci include files (which have only been in theimp2003-08-225-10/+10
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Mega busdma API commit.scottl2003-07-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg. Lockfunc allows a driver to provide a function for managing its locking semantics while using busdma. At the moment, this is used for the asynchronous busdma_swi and callback mechanism. Two lockfunc implementations are provided: busdma_lock_mutex() performs standard mutex operations on the mutex that is specified from lockfuncarg. dftl_lock() is a panic implementation and is defaulted to when NULL, NULL are passed to bus_dma_tag_create(). The only time that NULL, NULL should ever be used is when the driver ensures that bus_dmamap_load() will not be deferred. Drivers that do not provide their own locking can pass busdma_lock_mutex,&Giant args in order to preserve the former behaviour. sparc64 and powerpc do not provide real busdma_swi functions, so this is largely a noop on those platforms. The busdma_swi on is64 is not properly locked yet, so warnings will be emitted on this platform when busdma callback deferrals happen. If anyone gets panics or warnings from dflt_lock() being called, please let me know right away. Reviewed by: tmm, gibbs
* Use __FBSDID().obrien2003-06-1033-111/+100
|
* Use __FBSDID().obrien2003-06-107-32/+21
|
* Use __FBSDID().obrien2003-06-1011-51/+34
|
* Fix systematic off-by-one errors in unit number range checks.phk2003-05-314-8/+8
| | | | Found by: FlexeLint
* Rename BUS_DMAMEM_NOSYNC to BUS_DMA_COHERENT.hmp2003-05-301-2/+2
| | | | | | | | | | | | | | | | | The current name is confusing, because it indicates to the client that a bus_dmamap_sync() operation is not necessary when the flag is specified, which is wrong. The main purpose of this flag is to hint the underlying architecture that DMA memory should be mapped in a coherent way, but the architecture can ignore it. But if the architecture does supports coherent mapping of memory, then it makes bus_dmamap_sync() calls cheap. This flag is the same as the one in NetBSD's Bus DMA. Reviewed by: gibbs, scottl, des (implicitly) Approved by: re@ (jhb)
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-03-252-2/+2
| | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change)
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Be consistent about marking functions static.phk2002-10-156-29/+29
| | | | Found by: FlexeLint.
* It's bad enough people can't figure out to use the same code, or inphk2002-09-113-192/+139
| | | | | | this case, ugly macros, but the data tables can be reused: Put one copy of the software HDLC tables in its own file.
* Add missing calls to mtx_init().phk2002-09-101-0/+12
| | | | | | It seems counter-intuitive that all drivers have to do this. Pointed in right direction by: gj
* Continue de-counting i4b. Devices i4bctl, i4bcapi, iavc, i4bq921,brooks2002-09-0249-281/+34
| | | | | | | | i4bq931, i4b, isic, iwic, ifpi, ifpi2, ifpnp, ihfc, and itjc are no longer count devices. Also remove a few other instances of N<DEVICE> being used to control compilation of whole files. Reviewed by: hm
* Remote pci.h/NPCI usage from i4b code.brooks2002-06-1318-36/+18
| | | | Approved by: hm
* Fix typo in the BSD copyright: s/withough/without/schweikh2002-06-021-1/+1
| | | | | Spotted and suggested by: des MFC after: 3 weeks
* Fix some low hanging fruit warnings. There are problems in i4b_ing.cpeter2002-05-242-0/+5
| | | | still, but they are due due to some bogosity in netgraph.
* Fix a problem which could cause some machines to hang after a warm boot.gj2002-05-101-2/+2
| | | | | | This should be in 4.6. Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
* Change instances of avma1pp2- to ifpi2- in printf's since the namegj2002-04-281-5/+5
| | | | | | of the driver should be emitted. This was already changed in the code committed to RELENG_4.
* On slow machines interrupts could be lost, so check for pendinggj2002-04-231-11/+18
| | | | | | interrupts in a loop. Tested by: Andrew Gordon <arg-bsd@arg1.demon.co.uk>
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-046-16/+16
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,hm2002-03-172-19/+5
| | | | | OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's, remove #if(def)s and respective code for FreeBSD versions < 5 .
* Quiet bogus gcc warningpeter2002-02-281-1/+1
|
* Fix some places where the macro L0IFPIUNIT was used instead of the correctgj2002-01-022-7/+7
| | | | | | | form L0IFPI2UNIT. This could result in a panic if the user tried to trace using isdntrace(8). I fixed this locally but forgot to commit it. Reminded by: "Wittig, Christoph" <wc@medianet-world.de>
* Fix two typos in previous commit.joerg2001-12-301-1/+1
|
* Protect mtx_init() invocations with mtx_intialized() checks to avoid agj2001-12-306-16/+32
| | | | | | | reported panic. Submitted by: Alexander Leidinger <Alexander@Leidinger.net> (partly) MFC after: 4 weeks
* Fix an error which could cause a panic if both an ifpi and ifpi2 controllergj2001-12-292-5/+5
| | | | | | | were installed. For the ifpi2, change the string in the driver_t from "ifpi2" to "ifpi2-" so that one sees "ifpi2-0" instead of "ifpi20" at boot time.
* Add a driver for the AVM Fritz!Card PCI version 2 ISDN controller.gj2001-12-228-0/+3452
| | | | MFC after: 4 weeks
* Fix bug attaching the ELSA PCC16, the cardtyp value was set incorrectlyhm2001-10-211-2/+2
| | | | | in the probe routine. MFC after: 3 days
* Add a driver for the Compaq Microcom 610 ISDN (Compaq series PSB2222I) ISA PnPhm2001-10-212-26/+100
| | | | | | | | card. Submitted by: Steve Looman Reviewed by: hm MFC after: 1 month
* Fix typo: seperate -> separate.asmodai2001-02-062-2/+2
| | | | Seperate does not exist in the english language.
* Add experimental support for Eicon.Diehl DIVA 2.0 and 2.02 ISA PnP cards.hm2001-01-263-3/+420
| | | | | Thanks a lot to Jakob Schripsema (sch@kpn.com) for pointing out similarities of the Eicon 2.02 to the Siemens I-surf driver !
* remove redundant definitions of card types:hm2001-01-2430-451/+118
| | | | | | | - remove all occurances of FLAG_XXX values and replace with CARD_TYPEP_XXX - remove sc_flag from isic softc and replace it with sc_cardtyp remove some left over redundant definitions from isic and i4b_l1.h remove left over cvs id from i4b cvs repository
* Update the iwic driver: fix error handling for rx errors on the D-channelhm2001-01-218-111/+103
| | | | | which prevents erroneous packets from being put onto the protocol stack; enhance error detection for B-channel HDLC errors; remove old cvs id´s.
* Reenable support for FreeBSD 4.x and possibly the other supported BSD'shm2001-01-156-28/+79
|
* Add the ISDN itjc hardware driver. This driver supports the NETJet-S cardshm2001-01-118-9/+3942
| | | | | | | | | | from Traverse Technology and also the Teles PCI-TJ cards both based on the chipset combination of the Siemens ISAC and the TJNet Tiger300/320 chips. The itjc/i4b_hdlc.h file will hopefully soon be merged with the file /usr/src/sys/i4b/layer1/i4b_hdlc.h. Submitted by: Sergio de Souza Prallon <prallon@tmp.com.br>
* Update the ihfc driver with a patch from the author. He writes: This patchhm2001-01-114-50/+84
| | | | | | | | | enables the driver to work on current (I have not tested the isa part fully, but I suppose it should work). The patching from jlemon caused a crash at probe time. This is probably my fault not having added a comment for "RESET_SOFT" saying: "this resets all!". Submitted by: Hans Petter Selasky <hselasky@c2i.net>
* Add PCI id's for the Planet PCI ISDN Adapter (Model IA128P-STDV)hm2001-01-101-4/+3
| | | | Submitted by: Luiz Henrique Duma <duma@bsi.com.br>
* Move the mutex initialization from avma1pp_bchannel_setup intojlemon2001-01-091-2/+9
| | | | | | | avma1pp_attach_avma1pp, since the former may be called multiple times and we only want to initialize the mutex once. Submitted by: Thomas Moestl <tmoestl@gmx.net>
OpenPOWER on IntegriCloud