summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
Commit message (Collapse)AuthorAgeFilesLines
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-4/+3
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* Remove unused lp_unit member from softc.brooks2003-10-301-3/+0
|
* Use __FBSDID().obrien2003-08-2413-16/+40
| | | | Also some minor style cleanups.
* Define a module version.imp2003-08-221-0/+2
|
* Consistently use the BSD u_int and u_short instead of the SYSV uint andjhb2003-08-071-3/+3
| | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c)
* Fix a printf warning from the recent CAM changes.jhb2003-05-011-2/+2
|
* Centralize the devstat handling for all GEOM disk device driversphk2003-03-081-2/+0
| | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again.
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-041-10/+2
| | | | | | | | | | 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-034-52/+24
| | | | | | | | | | | | | 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-021-6/+6
|
* Back out M_* changes, per decision of the TRB.imp2003-02-193-4/+4
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-213-4/+4
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-302-14/+14
| | | | Add FreeBSD Id tag where missing.
* Synchronize mode for ppsX devices to that found previously in MAKEDEVrwatson2002-12-271-2/+2
| | | | | | for consistency. Submitted by: kris
* Synchronize make_dev() for pcfclock devices to the values in MAKEDEVrwatson2002-12-271-1/+1
| | | | | | for consistency. Submitted by: kris
* network interface driver changes:sam2002-11-141-1/+1
| | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re
* Fix instances of macros with improperly parenthasized arguments.alfred2002-11-091-21/+21
| | | | Verified by: md5
* d_read_t functions return an int, not a ssize_t. (Considering the factjhb2002-11-071-1/+1
| | | | that read(2) returns a ssize_t perhaps this is a bug in d_read_t?)
* Warning fixes for sizeof(int) != sizeof(void *).jhb2002-11-071-6/+6
|
* - Make 'irq' intptr_t instead of uintptr_t so it handles a value of -1jhb2002-11-071-2/+2
| | | | | properly. - Add a cast to quiet a printf warning.
* Remove empty #if*/#endif clauses.phk2002-09-211-3/+0
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-1/+1
|
* Fix warnings due to macro varargs.peter2002-05-241-1/+1
|
* Simplify the RFC2783 and PPS_SYNC timestamp collection API.phk2002-04-261-15/+7
|
* This makes ppbus childs like lpt and ppi succesfully connect to moreticso2002-04-077-7/+7
| | | | | | | | than just the first ppbus. The child drivers always tried to attach unit 0. Reviewed by: gallatin Approved by: gallatin
* Major rework of the iicbus/smbus framework:nsouch2002-03-231-39/+32
| | | | | | | | - VIA chipset SMBus controllers added - alpm driver updated - Support for dynamic modules added - bktr FreeBSD smbus updated but not tested - cleanup
* Fix some gcc-3.1+ warnings:peter2002-03-191-0/+1
| | | | | warning: deprecated use of label at end of compound statement umass.c:2626:46: multi-line string literals are deprecated
* Make this driver a better citizen by moving dev creation andimp2001-12-191-46/+45
| | | | | | | other initialization into attach from probe. Also hide a few printfs behind a bootverbose. approved in principle by: phk
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-103-12/+12
| | | | also don't use ANSI string concatenation.
* Give the pps driver an additional 8 inputs if we can persuade thephk2001-09-221-43/+154
| | | | | | ppc to go into EPP mode. These 8 inputs are timestamped in polled loop so their resolution will be nanoseconds but their granularity will only be 1/hz.
* KSE Milestone 2julian2001-09-124-11/+11
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Translate various ppbus sequences into microsequences to limitnsouch2001-06-232-109/+128
| | | | | | overhead of abstraction layers. Submitted by: jcm@FreeBSD-uk.eu.org
* -Wunused cleanuppeter2001-06-121-2/+1
|
* Style fixes from Saschaphk2001-06-061-4/+3
| | | | | PR: 16551 Submitted by: Sascha Schumann <sascha@schumann.cx>
* make code use strxxx() callsalfred2001-04-011-11/+3
| | | | Glanced at by: imp
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-264-4/+0
| | | | the bit-bucket.
* Discard extra status information if -1. This has been breaking thensouch2001-01-251-0/+5
| | | | | | PS/2 mode for ZIP+ drives for a long time. Thanks Jonathon. Submitted by: j mckitrick <jcm@FreeBSD-uk.eu.org>
* Cleanup and improve mode detection. Now, you should get what you actuallynsouch2001-01-023-183/+98
| | | | | | | want according to the modes set with the ppc(4) flags. Especially, it should fix some problems with mode detection of parallel chipsets configured to EPP but which have timing troubles with the drives. In such a case, the driver should now fall back to slower modes (PS2, NIBBLE).
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-082-5/+3
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Staticize some malloc M_ instances.phk2000-12-081-1/+1
|
* Don't use a private malloc(9) type for something this M_DEVBUFish.phk2000-12-071-6/+4
| | | | Noticed long time ago by: bde
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-14/+10
| | | | | | | | | | | | | | 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.
* Remove unneeded #include <machine/clock.h>phk2000-10-1510-10/+0
|
* A quote from the ia64 compiler:dfr2000-10-101-1/+1
| | | | | `char' is promoted to `int' when passed through `...' (so you should pass `int' not `char' to `va_arg')
* Remove an unused variable warning.n_hibma2000-07-181-2/+0
|
* Fix the detection of parallel port Zip drives.n_hibma2000-07-181-4/+5
| | | | | Submitted by: j mckitrick <jcm@freebsd-uk.eu.org> Reviewed by: nsouchu
* Unused include: #include "pps.h"peter2000-06-101-1/+0
|
* Match the include protection with the install location.obrien2000-05-201-3/+3
|
* Rather than use a MD lpt.h, we now use the MI lptio.h.obrien2000-05-191-2/+1
|
* If PERIPH_1284 is not defined, don't even bother calling the BUS_*_INTRn_hibma2000-05-071-9/+15
| | | | | | | | | | functions. If it is defined, check whether bus_alloc_resource has succeeded. If it hasn't, it is in polled mode. Mike Nowlin reports that this change makes the geek port (whatever _that_ is :-) work again on his machine. Submitted by: Mike Nowlin <mike@argos.org>
OpenPOWER on IntegriCloud