| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Approved by: harti@
|
|
|
|
|
| |
Glanced over by: imp, gibbs
Tested by: i386 LINT
|
|
|
|
| |
Also some minor style cleanups.
|
| |
|
|
|
|
|
| |
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
|
| |
|
| |
|
|
|
|
|
| |
- Don't test memory/port status and emit an error message; the PCI
bus code will do this now.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
a correctly aligned address in this block we really want to check, that the
part of the chunk that starts at the aligned address is large enough with
regard to the original request. Comparing it to 0 makes no sense, because this
is always true except in the rare case, that the aligned address is just at
the end of the chunk.
Approved by: jake (mentor)
|
|
|
|
| |
especially in troff files.
|
|
|
|
|
|
|
| |
arguments.
- Fix a few other places that assumed that sizeof(int) == sizeof(void *).
Reviewed by: mdodd
|
|
|
|
| |
Reviewed by: mdodd
|
|
|
|
| |
`uintptr_t' to pass it as the type bzero() expects.
|
|
|
|
| |
attach/detach.
|
| |
|
|
|
|
|
| |
- Convert DMA_GET_ADDR() calls to vtophys() calls in order to finish
removing the DMA_* macros.
|
|
|
|
| |
- Change SCHED_ATM statements into schednetisr() calls.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the necesary uma_zcreate() and uma_zdestroy calls into module loading
handler and the device attach handling.
- Change the related HARP netatm code to use UMA zone functions when
dealing with the zones that were formerly the ATM interface (hea, hfa)
storage pools.
- Have atm_physif_freenifs() now get passed an uma_zone_t so that we can
properly free the allocated NIF's back to their zone.
This should be the last commit to remove any code that makes use of the
netatm storage pool api. I will be removing the api code within the near
future.
Reviewed by: mdodd
|
|
|
|
|
| |
when compiling LINT, linking LINT was broke, so unbreak by removing
the preprocessor directives.
|
|
|
|
|
|
| |
Read the MAC address from Adaptec boards correctly.
Bits borrowed from sys/pci/if_en_pci.c.
|
|
|
|
| |
Minor whitespace changes.
|
|
|
|
|
|
|
| |
Module loads and unloads properly.
Thanks to Richard Hodges <rh@matriplex.com> for donating the hardware
to allow me to work on this driver.
|
|
|
|
|
|
| |
As a note, this driver needs the same updating as the hfa driver was
just given; removing these macros since I will be nuking them from
netatm.
|
| |
|
| |
|
|
|
|
| |
Seperate does not exist in the english language.
|
|
|
|
| |
and emit warnings, but we need to get the test coverage elsewhere.
|
|
|
|
| |
Fix various warnings while here anyway.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
before adding/removing packets from the queue. Also, the if_obytes and
if_omcasts fields should only be manipulated under protection of the mutex.
IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on
the queue. An IF_LOCK macro is provided, as well as the old (mutex-less)
versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which
needs them, but their use is discouraged.
Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF,
which takes care of locking/enqueue, and also statistics updating/start
if necessary.
|
|
|
|
|
|
| |
doesn't mess us up.
Noted by: Harti Brandt <brandt@fokus.gmd.de>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
the #includes to the respective source files.
Also un-nest includes in <dev/hfa/fore_include.h>
I have run src/tools/tools/kerninclude to remove 1239 clearly
unneeded #includes reducing the total from 3524 includes to 2285.
|
|
|
|
|
|
|
|
| |
Define the NETISR just like all the other NETISRs.
unifdef -Usun -D__FreeBSD__ we will probably never support sun4c
and if we do we can't use the solaris code anyway and I doubt
anybody will be running Fore ATM cards in then in the first place.
|
|
|
|
| |
Pointed out by: phk
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
events, in order to pave the way for removing a number of the ad-hoc
implementations currently in use.
Retire the at_shutdown family of functions and replace them with
new event handler lists.
Rework kern_shutdown.c to take greater advantage of the use of event
handlers.
Reviewed by: green
|
|
|
|
| |
just like the docs say it should.
|
| |
|
|
|
|
|
|
|
|
| |
#define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data)
.. to 2.2.x and 3.x if people think it's worth it. Driver writers can do
this if it's not defined. (The reason for this is that I'm trying to
progressively eliminate use of linker_sets where it hurts modularity and
runtime load capability, and these DATA_SET's keep getting in the way.)
|
|
|
|
| |
hurt the driver portability to 3.x too much for where drivers are shared.
|
|
|
|
| |
Prodded by: bde
|
| |
|
|
|
|
|
| |
Also disable one usb module in LINT due to fatal compilation errors,
temporary.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.
These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.
Reviewed by: Bruce Evans <bde@zeta.org.au>
Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by: Mike Spengler <mks@networkcs.com>
|
|
|
|
|
| |
Reviewed by: Mike Spengler <mks@networkcs.com>
Submitted by: phk
|