summaryrefslogtreecommitdiffstats
path: root/sys/i4b
Commit message (Collapse)AuthorAgeFilesLines
* 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-226-12/+12
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Undo agressive inlining which GCC previously wisely ignored.phk2003-07-232-152/+169
| | | | | The this eliminates 67% of the text segment (relative to respected inline requests).
* 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-1120-60/+60
|
* Use __FBSDID().obrien2003-06-1033-111/+100
|
* Use __FBSDID().obrien2003-06-107-32/+21
|
* Use __FBSDID().obrien2003-06-1025-86/+76
|
* Fix off-by-one errors in range checks of state machine states & events.phk2003-05-312-8/+8
| | | | Found by: FlexeLint
* Fix systematic off-by-one errors in unit number range checks.phk2003-05-316-11/+11
| | | | 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)
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-041-1/+1
| | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-035-65/+36
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-024-28/+28
|
* NODEVFS cleanup:phk2003-02-265-76/+0
| | | | | Don't call cdevsw_{add,remove}() Remove remnants of the previous DEVFS.
* Back out M_* changes, per decision of the TRB.imp2003-02-194-11/+11
| | | | Approved by: trb
* Fix another typo in a comment which I noticed while doing the MFC.gj2003-02-061-1/+1
|
* Fix some typos in 3 comments.gj2003-02-011-4/+5
| | | | Reported by: marius@alchemy.franken.de
* Add a fix for the case where the dialout fails. In this case the ispgj2003-01-301-0/+13
| | | | | | | | | | | | interface was left in an active, but not connected, state, which resulted in data being sent to it and the transmit queue filling up. This happened because the driver never informed sppp that it shoulkd clean up the connection. This fix informs sppp that it should clean things up. The fix was actually developed and tested under -stable, so a short MFC period seems appropriate, say 2 days. Contributed by: Ari Suutari <ari.suutari@syncrontech.com>
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-214-11/+11
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-012-24/+24
| | | | especially in troff files.
* network interface and link layer changes:sam2002-11-152-6/+4
| | | | | | | | | | | | o on input don't strip the Ethernet header from packets o input packet handling is now done with if_input o track changes to ether_ifattach/ether_ifdetach API o track changes to bpf tapping o call ether_ioctl for default handling of ioctl's o use constants from net/ethernet.h where possible Reviewed by: many Approved by: re
* Don't include the depricated "bpf.h" and always compile in bpf supportbrooks2002-10-212-21/+1
| | | | as per current practice.
* Be consistent about marking functions static.phk2002-10-157-30/+31
| | | | 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-0282-476/+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
* Bugfix to enable dialer "connected" response.hm2002-08-271-3/+12
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-1/+1
|
* add support properly displaying and logging incoming telephone numbers (MSNs)hm2002-08-124-3/+43
| | | | | | | by looking at the "type of number" field and providing configurable hooks to correct the numbers accordingly. See keywords add-prefix, prefix-national and prefix-international in isdnd.rc(5). This feature was implemented by Christian Ullrich <chris@chrullrich.de>
* add experimental support for Data over Voice (DoV) outgoing calls.hm2002-08-116-10/+34
| | | | | based on patches received from Guy Ellis (guy@traverse.com.au), Chris Collins (xfire@xware.cx) and Phillip Musumeci (phillip@cs.jcu.edu.au).
* Remote pci.h/NPCI usage from i4b code.brooks2002-06-1321-40/+19
| | | | 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
* Unbreak LINT by compensating for thealfred2002-06-011-4/+3
| | | | ng_parse_struct_info -> ng_parse_struct_field change.
* Fixed printf format errors which apparently crept in while -Wformat wasbde2002-05-251-1/+2
| | | | disabled for gcc-3.
* Oops, I missed this warning. Comment out extra junk after #endifpeter2002-05-241-1/+1
|
* 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-0415-28/+28
| | | | | | | 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
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-2/+2
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Add support for Q.931 subaddresses.hm2002-03-267-28/+82
| | | | Submitted by: Steven Looman <fsteevie@wish.net>
* Remove __P.alfred2002-03-201-75/+75
|
* Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,hm2002-03-1748-1756/+215
| | | | | OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's, remove #if(def)s and respective code for FreeBSD versions < 5 .
* remove BSD/OS specific ppp-interface file since the FreeBSD-BSD/OS mergerhm2002-03-091-562/+0
| | | | is IMHO likely not to happen anymore ...
* After joergs merge of i4b's sppp with the main sppp, remove obsolete file.hm2002-03-091-4687/+0
|
* Quiet bogus gcc warningpeter2002-02-281-1/+1
|
* Remove a redundant decalaration of call_desc[] since it's now agj2002-02-271-2/+0
| | | | fatal error.
OpenPOWER on IntegriCloud