summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_mn.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings:peter2001-06-151-3/+6
| | | | | | 412: warning: long unsigned int format, unsigned int arg (arg 3) 418: warning: long unsigned int format, unsigned int arg (arg 3) 424: warning: long unsigned int format, unsigned int arg (arg 3)
* Update these netgraph drivers in current so that these changes can bephk2001-01-211-38/+127
| | | | | | | | | | | | | | | | | MFC'ed i due time. I can't test it under current right now because netgraph seems to do unethical things with mutexes. musycc: Add status per channel. Reduce printf chattyness Keep error counters line if_mn does. Increase descriptor count. if_mn: Support experimental unframed E1 lines. These two drivers should share more code relating to framed channelized TDM media in general (T1/E1/E3/T3, Sonet). Anyone interested email me.
* Use pci_get_revid() rather than groping around the PCI register spacepeter2001-01-171-3/+3
| | | | using the removed compatability register names. (this broke LINT)
* Part 2 of the netgraph rewrite.julian2001-01-081-10/+10
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-061-20/+17
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.bmilekic2000-12-211-5/+5
| | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-181-8/+18
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* Make sure to check if MGET(HDR) returned NULL, even when called with M_WAIT.bmilekic2000-12-151-2/+26
| | | | | | | This fixes the possibility of a NULL pointer dereference in the case where there are no mbufs or mbuf clusters left. Approved by: phk
* I really hate it when part of a patch gets left out.julian2000-12-131-1/+0
| | | | | This was still sitting in my commit tree. Luckily I always compare my before and after trees...
* Reviewed by: Archie@freebsd.orgjulian2000-12-121-3/+5
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-081-4/+2
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Register resources in a more opportune order for the hardware.phk2000-09-051-17/+17
|
* Newbusify this driver at an expense of 40 extra lines of code.phk2000-07-101-67/+112
|
* Account for packets we clean out when we disconnect.phk2000-07-031-1/+3
|
* Two simple changes to the kernel internal API for netgraph modules,julian2000-04-281-2/+3
| | | | | | | to support future work in flow-control and 'packet reject/replace' processing modes. reviewed by: phk, archie
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Ahhrggg. Put the test for the compat shims AFTER the file that includesimp2000-03-271-4/+4
| | | | | | them. Pointed out by: bde
* Allow reuse of hooks.phk2000-03-271-4/+3
| | | | | Remove debugging printfs. Now compatible with ports/net/mpd-netgraph
* Per conversations in -current, add #error to these drivers when you don'timp2000-03-271-0/+4
| | | | have the right compatibility shims enabled. ISA drivers to follow later.
* Updates for new FALC chips and other nits.phk2000-03-131-19/+5
| | | | (And try to make it first post-freeze commit :-)
* Fix a initialization bug.phk2000-03-011-22/+20
| | | | | Report xmit queue length. Remove old magic and clean up some printfs.
* 'driver support' -> 'driver supports'billf2000-02-291-1/+1
|
* Implement queue-limiting based on bandwidth.phk2000-02-261-6/+31
| | | | Approved by: jkh
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* Removed unnecessary const poisoning (redundant casting) which was addedbde1999-12-241-2/+2
| | | | in rev.1.4.
* Add #ifdef notyet around uncalled code that is later going to become DDBeivind1999-12-211-1/+7
| | | | | | commands. Discussed with: phk (driver author)
* Add NULL for new entrypoint.julian1999-12-011-1/+2
|
* Change the prototype of the strto* routines to make the secondarchie1999-11-241-3/+3
| | | | | | | | | | | parameter a char ** instead of a const char **. This make these kernel routines consistent with the corresponding libc userland routines. Which is actually 'correct' is debatable, but consistency and following the spec was deemed more important in this case. Reviewed by (in concept): phk, bde
* Do timeouts in terms of hzphk1999-11-171-1/+1
| | | | Spotted by: julian
* Remove compat cruft.phk1999-11-031-4/+0
|
* New driver: Nx64kbit/s E1/T1 cards based on Munich32x&Falc54.phk1999-11-021-0/+1287
This is a netgraph driver.
OpenPOWER on IntegriCloud