aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hfa
Commit message (Collapse)AuthorAgeFilesLines
* Adjust some casts to quiet warnings.John Baldwin2002-11-062-2/+2
| | | | | | | Reviewed by: mdodd Notes: svn path=/head/; revision=106540
* Replace aux mbufs with packet tags:Sam Leffler2002-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | o instead of a list of mbufs use a list of m_tag structures a la openbsd o for netgraph et. al. extend the stock openbsd m_tag to include a 32-bit ABI/module number cookie o for openbsd compatibility define a well-known cookie MTAG_ABI_COMPAT and use this in defining openbsd-compatible m_tag_find and m_tag_get routines o rewrite KAME use of aux mbufs in terms of packet tags o eliminate the most heavily used aux mbufs by adding an additional struct inpcb parameter to ip_output and ip6_output to allow the IPsec code to locate the security policy to apply to outbound packets o bump __FreeBSD_version so code can be conditionalized o fixup ipfilter's call to ip_output based on __FreeBSD_version Reviewed by: julian, luigi (silent), -arch, -net, darren Approved by: julian, silence from everyone else Obtained from: openbsd (mostly) MFC after: 1 month Notes: svn path=/head/; revision=105194
* Use more standard variable names for modevent functions.Matthew N. Dodd2002-10-021-2/+2
| | | | Notes: svn path=/head/; revision=104345
* 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
* Replace (ab)uses of "NULL" where "0" is really meant.Archie Cobbs2002-08-221-2/+2
| | | | Notes: svn path=/head/; revision=102291
* - Remove DMA_* macros as only one, DMA_GET_ADDR, was used.Andrew R. Reiter2002-06-2410-92/+12
| | | | | | | | - 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-1/+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/+28
| | | | | | | | | | | | | | | | | | | 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
* Move some code around.Matthew N. Dodd2002-06-072-12/+12
| | | | | | | Minor whitespace changes. Notes: svn path=/head/; revision=97982
* Change two KM_COPY()s to bcopy(). This should have been done when theMike Barcroft2002-04-202-2/+2
| | | | | | | KM_* macros were removed. Notes: svn path=/head/; revision=95147
* - Convert the 'hfa' ATM interface driver to newbus.Matthew N. Dodd2002-04-175-0/+966
| | | | | | | | | - Add stubs for EISA and SBUS cards. (VME, FutureBUS, and TurboChannel stubs not provided.) - Add infrastructure to build driver and bus front-end modules. Notes: svn path=/head/; revision=94898
* - Nuke fore_pci_device.Andrew R. Reiter2002-04-161-66/+40
| | | | | | | | | | | | - Add a device_method_t array, fore_methods. - Add a fore_ident_table that contains the various FORE Systems PCA-200 series devices. - Rewrite of the fore_probe routine (formerly known as fore_pci_probe). - Minor changes... mostly WIP stuff to get this updated... still much to be done. Notes: svn path=/head/; revision=94813
* - Remove PCA-200E definition -- this will be re-added in the commit toAndrew R. Reiter2002-04-161-1/+0
| | | | | | | | fore_load.c that will add ``fore_ident_table'' which holds various types of FORE Systems PCA-200 series devices. Notes: svn path=/head/; revision=94812
* Remove __P.Alfred Perlstein2002-03-206-44/+44
| | | | Notes: svn path=/head/; revision=92739
* Applied the patch to fix HARP ATM that was broken when KAME IPv6 cameJim Pirzyk2001-06-202-1/+4
| | | | | | | | | | | into FreeBSD. PR: kern/23620 Submitted by: rh@matriplex.com MFC after: 1 month Notes: svn path=/head/; revision=78505
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-1/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Minor tweaks to get these to stop breaking LINT. They still dont workPeter Wemm2001-01-172-0/+10
| | | | | | | 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-12/+3
| | | | | | | 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-251-3/+1
| | | | | | | | | | | | | | | | | 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-3013-0/+13
| | | | | | | | | 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-2713-40/+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 unneeded #includes.Poul-Henning Kamp2000-10-1413-280/+0
| | | | Notes: svn path=/head/; revision=67119
* Remove the #include kitchensink <netatm/kern_include.h> and addPoul-Henning Kamp2000-10-1215-102/+611
| | | | | | | | | | | | 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
* More HARP polishina:Poul-Henning Kamp2000-10-129-83/+4
| | | | | | | | unifdef -UFORE_SBUS -DFORE_PCI s/ATM_KERNEL/_KERNER/g Notes: svn path=/head/; revision=67002
* Do some cleanups of the HARP atm codes interface into the system:Poul-Henning Kamp2000-10-122-954/+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
* Ensure that DMA mappings are freed in error situations.Mike Spengler2000-01-152-7/+52
| | | | Notes: svn path=/head/; revision=56064
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-09-251-5/+0
| | | | | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags Notes: svn path=/head/; revision=51658
* Fixed printf format errors (don't assume that ntohl() returns u_long;Bruce Evans1999-08-292-2/+2
| | | | | | | it returns u_int on i386's and in_addr_t (u_int32_t) on alphas). Notes: svn path=/head/; revision=50557
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2819-32/+32
| | | | Notes: svn path=/head/; revision=50477
* Implement a new generic mechanism for attaching handler functions toMike Smith1999-08-211-6/+7
| | | | | | | | | | | | | | | | 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
* This commit should be a extensive NO-OP:Poul-Henning Kamp1999-05-301-14/+22
| | | | | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors. Notes: svn path=/head/; revision=47625
* 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-2/+15
| | | | 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
* Fix warnings preparing for -Wall -Wcast-qualMatthew Dillon1999-01-276-22/+22
| | | | | | | | 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-044-13/+18
| | | | | | | | | | | | | | | | | 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-3113-57/+57
| | | | | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk Notes: svn path=/head/; revision=40799
* Two patches from the HARP people:Poul-Henning Kamp1998-09-176-47/+48
| | | | | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=39412
* Add new files for HARP3Poul-Henning Kamp1998-09-1519-0/+7121
Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA). Notes: svn path=/head/; revision=39232