aboutsummaryrefslogtreecommitdiff
path: root/sys/i4b/layer1
Commit message (Collapse)AuthorAgeFilesLines
* Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE andBjoern A. Zeeb2008-05-2670-29864/+0
| | | | | | | | | | | | | | | | | | | | | parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7. This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation Discussed with: rwatson, re Notes: svn path=/head/; revision=179315
* Spelling fix for interupt -> interruptKevin Lo2007-10-127-9/+9
| | | | Notes: svn path=/head/; revision=172568
* I4B header files were repo-copied from sys/i386/include/ toBjoern A. Zeeb2007-07-0650-120/+120
| | | | | | | | | | | | sys/i4b/include/ so they will be available to all architectures once I4B compiles on those. Adapt #include paths. Approved by: re (kensmith) Notes: svn path=/head/; revision=171270
* Tell the user when the setup of the interrupt handler failed and returnAlexander Leidinger2007-04-017-23/+61
| | | | | | | | | | an error. Found by: Coverity Prevent (tm) CID: 71-78 Notes: svn path=/head/; revision=168218
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-241-1/+1
| | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Approved by: re (implicit?) Notes: svn path=/head/; revision=166936
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-2314-15/+15
| | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Approved by: re (implicit?) Notes: svn path=/head/; revision=166923
* Since DELAY() was moved, most <machine/clock.h> #includes have beenPoul-Henning Kamp2006-05-164-4/+0
| | | | | | | unnecessary. Notes: svn path=/head/; revision=158651
* PR: kern/76611Hellmuth Michaelis2006-05-131-8/+8
| | | | | | | | | Submitted by: Mauritz Sundell and Sergio de Souza Prallon Reviewed by: hm@ fix several constants for the Tiger320 ISDN chip Notes: svn path=/head/; revision=158521
* Fix -Wundef warnings found when compiling i386 LINT, GENERIC andRuslan Ermilov2005-12-051-1/+1
| | | | | | | custom kernels. Notes: svn path=/head/; revision=153110
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-291-1/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Don't use 'i386/include' directly.Yoshihiro Takahashi2005-04-081-2/+2
| | | | Notes: svn path=/head/; revision=144776
* Add device ID for Planet IA 128P-STD card.Murray Stokely2005-03-191-0/+2
| | | | | | | | | PR: kern/71923 Submitted by: Vassily Kiryanov <admin@assist.berezniki.ru> MFC after: 1 week Notes: svn path=/head/; revision=143834
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-0670-210/+280
| | | | Notes: svn path=/head/; revision=139790
* Fix a possible hang which apparently occurs during a warm boot (cold bootGary Jennejohn2004-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> Notes: svn path=/head/; revision=132363
* add missing #include <sys/module.h>Poul-Henning Kamp2004-05-303-0/+3
| | | | Notes: svn path=/head/; revision=129880
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-1717-130/+127
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Use PCIR_BAR(x) instead of PCIR_MAPS.John Baldwin2003-09-025-18/+15
| | | | | | | | Glanced over by: imp, gibbs Tested by: i386 LINT Notes: svn path=/head/; revision=119690
* Prefer new location of pci include files (which have only been in theWarner Losh2003-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. Notes: svn path=/head/; revision=119304
* Mega busdma API commit.Scott Long2003-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 Notes: svn path=/head/; revision=117126
* Use __FBSDID().David E. O'Brien2003-06-1033-111/+100
| | | | Notes: svn path=/head/; revision=116179
* Use __FBSDID().David E. O'Brien2003-06-107-32/+21
| | | | Notes: svn path=/head/; revision=116178
* Use __FBSDID().David E. O'Brien2003-06-1011-51/+34
| | | | Notes: svn path=/head/; revision=116177
* Fix systematic off-by-one errors in unit number range checks.Poul-Henning Kamp2003-05-314-8/+8
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115467
* Rename BUS_DMAMEM_NOSYNC to BUS_DMA_COHERENT.Hiten Pandya2003-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) Notes: svn path=/head/; revision=115416
* - Add vm_paddr_t, a physical address type. This is required for systemsJake Burkholder2003-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) Notes: svn path=/head/; revision=112569
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Be consistent about marking functions static.Poul-Henning Kamp2002-10-156-29/+29
| | | | | | | Found by: FlexeLint. Notes: svn path=/head/; revision=105172
* It's bad enough people can't figure out to use the same code, or inPoul-Henning Kamp2002-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. Notes: svn path=/head/; revision=103222
* Add missing calls to mtx_init().Poul-Henning Kamp2002-09-101-0/+12
| | | | | | | | | It seems counter-intuitive that all drivers have to do this. Pointed in right direction by: gj Notes: svn path=/head/; revision=103190
* Continue de-counting i4b. Devices i4bctl, i4bcapi, iavc, i4bq921,Brooks Davis2002-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 Notes: svn path=/head/; revision=102828
* Remote pci.h/NPCI usage from i4b code.Brooks Davis2002-06-1318-36/+18
| | | | | | | Approved by: hm Notes: svn path=/head/; revision=98155
* Fix typo in the BSD copyright: s/withough/without/Jens Schweikhardt2002-06-021-1/+1
| | | | | | | | Spotted and suggested by: des MFC after: 3 weeks Notes: svn path=/head/; revision=97748
* Fix some low hanging fruit warnings. There are problems in i4b_ing.cPeter Wemm2002-05-242-0/+5
| | | | | | | still, but they are due due to some bogosity in netgraph. Notes: svn path=/head/; revision=97210
* Fix a problem which could cause some machines to hang after a warm boot.Gary Jennejohn2002-05-101-2/+2
| | | | | | | | | This should be in 4.6. Submitted by: Ari Suutari <ari.suutari@syncrontech.com> Notes: svn path=/head/; revision=96348
* Change instances of avma1pp2- to ifpi2- in printf's since the nameGary Jennejohn2002-04-281-5/+5
| | | | | | | | | of the driver should be emitted. This was already changed in the code committed to RELENG_4. Notes: svn path=/head/; revision=95625
* On slow machines interrupts could be lost, so check for pendingGary Jennejohn2002-04-231-11/+18
| | | | | | | | | interrupts in a loop. Tested by: Andrew Gordon <arg-bsd@arg1.demon.co.uk> Notes: svn path=/head/; revision=95308
* Change callers of mtx_init() to pass in an appropriate lock type name. InJohn Baldwin2002-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 Notes: svn path=/head/; revision=93818
* Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,Hellmuth Michaelis2002-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 . Notes: svn path=/head/; revision=92487
* Quiet bogus gcc warningPeter Wemm2002-02-281-1/+1
| | | | Notes: svn path=/head/; revision=91466
* Fix some places where the macro L0IFPIUNIT was used instead of the correctGary Jennejohn2002-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> Notes: svn path=/head/; revision=88810
* Fix two typos in previous commit.Joerg Wunsch2001-12-301-1/+1
| | | | Notes: svn path=/head/; revision=88718
* Protect mtx_init() invocations with mtx_intialized() checks to avoid aGary Jennejohn2001-12-306-16/+32
| | | | | | | | | | reported panic. Submitted by: Alexander Leidinger <Alexander@Leidinger.net> (partly) MFC after: 4 weeks Notes: svn path=/head/; revision=88688
* Fix an error which could cause a panic if both an ifpi and ifpi2 controllerGary Jennejohn2001-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. Notes: svn path=/head/; revision=88675
* Add a driver for the AVM Fritz!Card PCI version 2 ISDN controller.Gary Jennejohn2001-12-228-0/+3452
| | | | | | | MFC after: 4 weeks Notes: svn path=/head/; revision=88403
* Fix bug attaching the ELSA PCC16, the cardtyp value was set incorrectlyHellmuth Michaelis2001-10-211-2/+2
| | | | | | | | in the probe routine. MFC after: 3 days Notes: svn path=/head/; revision=85279
* Add a driver for the Compaq Microcom 610 ISDN (Compaq series PSB2222I) ISA PnPHellmuth Michaelis2001-10-212-26/+100
| | | | | | | | | | | card. Submitted by: Steve Looman Reviewed by: hm MFC after: 1 month Notes: svn path=/head/; revision=85278
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-062-2/+2
| | | | | | | Seperate does not exist in the english language. Notes: svn path=/head/; revision=72091
* Add experimental support for Eicon.Diehl DIVA 2.0 and 2.02 ISA PnP cards.Hellmuth Michaelis2001-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 ! Notes: svn path=/head/; revision=71675
* remove redundant definitions of card types:Hellmuth Michaelis2001-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 Notes: svn path=/head/; revision=71516