aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hea
Commit message (Collapse)AuthorAgeFilesLines
* Now that we have the en(4) driver, we no longer need the hea driver.Warner Losh2003-12-0716-5503/+0
| | | | | | | Approved by: harti@ Notes: svn path=/head/; revision=123210
* Use PCIR_BAR(x) instead of PCIR_MAPS.John Baldwin2003-09-021-1/+1
| | | | | | | | Glanced over by: imp, gibbs Tested by: i386 LINT Notes: svn path=/head/; revision=119690
* Use __FBSDID().David E. O'Brien2003-08-2410-10/+30
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* fix reference to pci/pcireg.hWarner Losh2003-08-221-1/+1
| | | | Notes: svn path=/head/; revision=119306
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | 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=119280
* Use a size_t where a buffer length is meant.Hartmut Brandt2003-07-291-2/+4
| | | | Notes: svn path=/head/; revision=118161
* Explicitly declare 'int' parameters.David E. O'Brien2003-04-211-0/+1
| | | | Notes: svn path=/head/; revision=113799
* - Don't call pci_enable_io() in drivers (unless needed for resume).Matthew N. Dodd2003-04-161-13/+0
| | | | | | | | - Don't test memory/port status and emit an error message; the PCI bus code will do this now. Notes: svn path=/head/; revision=113545
* Update netisr handling; Each SWI now registers its queue, and all queueJonathan Lemon2003-03-041-11/+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 Notes: svn path=/head/; revision=111888
* When we have found a chunk of memory that is large enough and have computedHartmut Brandt2003-02-271-1/+1
| | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=111607
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* - Change the ATM stack functions to use intptr_t instead of int for opaqueJohn Baldwin2002-11-082-4/+4
| | | | | | | | | | arguments. - Fix a few other places that assumed that sizeof(int) == sizeof(void *). Reviewed by: mdodd Notes: svn path=/head/; revision=106651
* Adjust some casts to quiet warnings.John Baldwin2002-11-063-7/+7
| | | | | | | Reviewed by: mdodd Notes: svn path=/head/; revision=106540
* Cast the first argument to bzero() to `void *' after casting it toRobert Drehmel2002-10-162-2/+2
| | | | | | | `uintptr_t' to pass it as the type bzero() expects. Notes: svn path=/head/; revision=105232
* Create/destroy memory zones on module load/unload, not on deviceMatthew N. Dodd2002-10-022-15/+48
| | | | | | | attach/detach. Notes: svn path=/head/; revision=104344
* Add a field to struct cmn_unit to hold a pointer to the driver's softc.Matthew N. Dodd2002-10-012-0/+2
| | | | Notes: svn path=/head/; revision=104323
* - Remove DMA_* macros as only one, DMA_GET_ADDR, was used.Andrew R. Reiter2002-06-241-3/+3
| | | | | | | | - Convert DMA_GET_ADDR() calls to vtophys() calls in order to finish removing the DMA_* macros. Notes: svn path=/head/; revision=98721
* - Remove the definition for SCHED_ATMAndrew R. Reiter2002-06-241-3/+1
| | | | | | | - Change SCHED_ATM statements into schednetisr() calls. Notes: svn path=/head/; revision=98717
* - Turn the hea and hfa HARP storage pools into UMA zones and insertAndrew R. Reiter2002-06-145-22/+27
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=98223
* This actually compiles under lint now, by effectively #if 0'ing itAlfred Perlstein2002-06-111-5/+0
| | | | | | | | when compiling LINT, linking LINT was broke, so unbreak by removing the preprocessor directives. Notes: svn path=/head/; revision=98128
* Recognize Adaptec ANA-5910/30/40[A] boards.Matthew N. Dodd2002-06-073-19/+65
| | | | | | | | | Read the MAC address from Adaptec boards correctly. Bits borrowed from sys/pci/if_en_pci.c. Notes: svn path=/head/; revision=97988
* Move some code around.Matthew N. Dodd2002-06-072-4/+6
| | | | | | | Minor whitespace changes. Notes: svn path=/head/; revision=97982
* Quick and dirty convert to newbus. (Eventually 'eni.c' should go away.)Matthew N. Dodd2002-06-036-18/+670
| | | | | | | | | | Module loads and unloads properly. Thanks to Richard Hodges <rh@matriplex.com> for donating the hardware to allow me to work on this driver. Notes: svn path=/head/; revision=97761
* - Remove KM_ macro calls and replace with the real function we're calling.Andrew R. Reiter2002-04-194-16/+12
| | | | | | | | | 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. Notes: svn path=/head/; revision=95062
* Remove __P.Alfred Perlstein2002-03-206-28/+28
| | | | Notes: svn path=/head/; revision=92739
* Fix warningsPeter Wemm2002-02-272-2/+2
| | | | Notes: svn path=/head/; revision=91446
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | Seperate does not exist in the english language. Notes: svn path=/head/; revision=72091
* Minor tweaks to get these to stop breaking LINT. They still dont workPeter Wemm2001-01-172-0/+11
| | | | | | | and emit warnings, but we need to get the test coverage elsewhere. Notes: svn path=/head/; revision=71136
* Add back some now needed #include <sys/systm.h>Poul-Henning Kamp2000-12-072-0/+2
| | | | | | | Fix various warnings while here anyway. Notes: svn path=/head/; revision=69726
* Lock down the network interface queues. The queue mutex must be obtainedJonathan Lemon2000-11-252-14/+12
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=69152
* Add back some #include <sys/systm.h> which were needed when <sys/ktr.h>Poul-Henning Kamp2000-10-305-0/+5
| | | | | | | | | doesn't mess us up. Noted by: Harti Brandt <brandt@fokus.gmd.de> Notes: svn path=/head/; revision=68002
* Remove 86 unneeded #includesPoul-Henning Kamp2000-10-279-46/+0
| | | | Notes: svn path=/head/; revision=67731
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-153-3/+0
| | | | Notes: svn path=/head/; revision=67164
* Remove even more nneeded #includes.Poul-Henning Kamp2000-10-149-188/+0
| | | | Notes: svn path=/head/; revision=67114
* Remove the #include kitchensink <netatm/kern_include.h> and addPoul-Henning Kamp2000-10-129-9/+360
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=67004
* Do some cleanups of the HARP atm codes interface into the system:Poul-Henning Kamp2000-10-121-6/+0
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=66988
* Remove un-needed #include's.Mike Spengler2000-01-171-1/+0
| | | | | | | Pointed out by: phk Notes: svn path=/head/; revision=56202
* Incorrect uses of NULL changed to 0Eivind Eklund1999-12-211-3/+3
| | | | Notes: svn path=/head/; revision=54936
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2813-22/+22
| | | | Notes: svn path=/head/; revision=50477
* Implement a new generic mechanism for attaching handler functions toMike Smith1999-08-211-6/+8
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=50107
* Allow configuration of up to 256 network interfaces per physical interface -Mike Spengler1999-05-101-3/+3
| | | | | | | just like the docs say it should. Notes: svn path=/head/; revision=46936
* Enable PCI bus master during attach in case the BIOS hasn't done it for us.Mike Spengler1999-05-101-47/+48
| | | | Notes: svn path=/head/; revision=46935
* Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add:Peter Wemm1999-05-091-6/+2
| | | | | | | | | | | #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.) Notes: svn path=/head/; revision=46813
* Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn'tPeter Wemm1999-04-241-2/+6
| | | | | | | hurt the driver portability to 3.x too much for where drivers are shared. Notes: svn path=/head/; revision=46024
* Shorten line.Eivind Eklund1999-04-121-3/+3
| | | | | | | Prodded by: bde Notes: svn path=/head/; revision=45619
* Staticize.Eivind Eklund1999-04-111-3/+3
| | | | Notes: svn path=/head/; revision=45575
* Fix warnings preparing for -Wall -Wcast-qualMatthew Dillon1999-01-273-14/+13
| | | | | | | | Also disable one usb module in LINT due to fatal compilation errors, temporary. Notes: svn path=/head/; revision=43295
* probe function changed from returning char * to const char *.Matthew Dillon1998-12-141-4/+4
| | | | Notes: svn path=/head/; revision=41771
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-12-042-8/+11
| | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=41514
* Trivial stylish changes, mostly to silence gcc.Poul-Henning Kamp1998-10-319-45/+45
| | | | | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk Notes: svn path=/head/; revision=40799