summaryrefslogtreecommitdiff
path: root/sys/dev/ppbus
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/5.4.0_cvscvs2svn2005-05-0722-22/+22
| | | | | | 'RELENG_5_4_0_RELEASE'. This commit was manufactured to restore the state of the 5.4-RELEASE image.
* MFC: /*- and my license changes for sys/[a-d]*Warner Losh2005-01-305-5/+5
| | | | Notes: svn path=/stable/5/; revision=141016
* MFC: Apply error and success logic consistently to the function netisr_queue()Andre Oppermann2004-09-151-2/+2
| | | | | | | | | and its users. Approved by: re (kensmith) Notes: svn path=/stable/5/; revision=135266
* Since if_plip doesn't contain locking or run with INTR_MPSAFE, markRobert Watson2004-08-131-1/+2
| | | | | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Notes: svn path=/head/; revision=133695
* Do not bzero() the softc, as newbus does it for us.Olivier Houchard2004-07-095-5/+0
| | | | Notes: svn path=/head/; revision=131882
* Newbus returns a zeroed softc, so there's no need to call bzero() here.Olivier Houchard2004-07-091-2/+0
| | | | Notes: svn path=/head/; revision=131874
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-164-22/+22
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* Prevent the strange situation that after each load/unload of a ppbusGuido van Rooij2004-03-187-7/+34
| | | | | | | | | | | | | | | | | | device, the device is probed multiple times (so each device is detected N times after unloading/loading the module N-1 times). The real fix is (quote Doug and Warner): > : In an ideal world, there should be some kind of BUS_UNIDENTIFY method > : which a driver could use to delete the devices it created in > : BUS_IDENTIFY. > > Or the bus would have a driver deleted routine that got called and it > would remove all instances of the devclass attached to it. Reviewed by: Doug Rabson & Warner Losh Notes: svn path=/head/; revision=127189
* Device megapatch 4/6:Poul-Henning Kamp2004-02-214-0/+8
| | | | | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. Notes: svn path=/head/; revision=126080
* Device megapatch 1/6:Poul-Henning Kamp2004-02-214-8/+0
| | | | | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number. Notes: svn path=/head/; revision=126076
* Apparently there's a good reason why M_WAITOK malloc() is done beforeRuslan Ermilov2004-01-181-2/+2
| | | | | | | xpt_create_path(). Notes: svn path=/head/; revision=124673
* Fixed a memory leak.Ruslan Ermilov2004-01-181-1/+2
| | | | | | | Submitted by: Stanford Metacompilation research group Notes: svn path=/head/; revision=124670
* o eliminate widespread on-stack mbuf use for bpf by introducingSam Leffler2003-12-281-12/+1
| | | | | | | | | | | | | | | | a new bpf_mtap2 routine that does the right thing for an mbuf and a variable-length chunk of data that should be prepended. o while we're sweeping the drivers, use u_int32_t uniformly when when prepending the address family (several places were assuming sizeof(int) was 4) o return M_ASSERTVALID to BPF_MTAP* now that all stack-allocated mbufs have been eliminated; this may better be moved to the bpf routines Reviewed by: arch@ and several others Notes: svn path=/head/; revision=123922
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-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) Notes: svn path=/head/; revision=121816
* Remove unused lp_unit member from softc.Brooks Davis2003-10-301-3/+0
| | | | Notes: svn path=/head/; revision=121775
* Use __FBSDID().David E. O'Brien2003-08-2413-16/+40
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Define a module version.Warner Losh2003-08-221-0/+2
| | | | Notes: svn path=/head/; revision=119284
* Consistently use the BSD u_int and u_short instead of the SYSV uint andJohn Baldwin2003-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) Notes: svn path=/head/; revision=118607
* Fix a printf warning from the recent CAM changes.John Baldwin2003-05-011-2/+2
| | | | Notes: svn path=/head/; revision=114451
* Centralize the devstat handling for all GEOM disk device driversPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=111979
* Update netisr handling; Each SWI now registers its queue, and all queueJonathan Lemon2003-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 Notes: svn path=/head/; revision=111888
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-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) Notes: svn path=/head/; revision=111815
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav2003-03-021-6/+6
| | | | Notes: svn path=/head/; revision=111748
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-193-4/+4
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-213-4/+4
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-302-14/+14
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470
* Synchronize mode for ppsX devices to that found previously in MAKEDEVRobert Watson2002-12-271-2/+2
| | | | | | | | | for consistency. Submitted by: kris Notes: svn path=/head/; revision=108322
* Synchronize make_dev() for pcfclock devices to the values in MAKEDEVRobert Watson2002-12-271-1/+1
| | | | | | | | | for consistency. Submitted by: kris Notes: svn path=/head/; revision=108321
* network interface driver changes:Sam Leffler2002-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 Notes: svn path=/head/; revision=106937
* Fix instances of macros with improperly parenthasized arguments.Alfred Perlstein2002-11-091-21/+21
| | | | | | | Verified by: md5 Notes: svn path=/head/; revision=106696
* d_read_t functions return an int, not a ssize_t. (Considering the factJohn Baldwin2002-11-071-1/+1
| | | | | | | that read(2) returns a ssize_t perhaps this is a bug in d_read_t?) Notes: svn path=/head/; revision=106564
* Warning fixes for sizeof(int) != sizeof(void *).John Baldwin2002-11-071-6/+6
| | | | Notes: svn path=/head/; revision=106563
* - Make 'irq' intptr_t instead of uintptr_t so it handles a value of -1John Baldwin2002-11-071-2/+2
| | | | | | | | properly. - Add a cast to quiet a printf warning. Notes: svn path=/head/; revision=106562
* Remove empty #if*/#endif clauses.Poul-Henning Kamp2002-09-211-3/+0
| | | | Notes: svn path=/head/; revision=103736
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-1/+1
| | | | Notes: svn path=/head/; revision=102412
* Fix warnings due to macro varargs.Peter Wemm2002-05-241-1/+1
| | | | Notes: svn path=/head/; revision=97228
* Simplify the RFC2783 and PPS_SYNC timestamp collection API.Poul-Henning Kamp2002-04-261-15/+7
| | | | Notes: svn path=/head/; revision=95523
* This makes ppbus childs like lpt and ppi succesfully connect to moreBernd Walter2002-04-077-7/+7
| | | | | | | | | | | than just the first ppbus. The child drivers always tried to attach unit 0. Reviewed by: gallatin Approved by: gallatin Notes: svn path=/head/; revision=94154
* Major rework of the iicbus/smbus framework:Nicolas Souchu2002-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 Notes: svn path=/head/; revision=93023
* Fix some gcc-3.1+ warnings:Peter Wemm2002-03-191-0/+1
| | | | | | | | warning: deprecated use of label at end of compound statement umass.c:2626:46: multi-line string literals are deprecated Notes: svn path=/head/; revision=92732
* Make this driver a better citizen by moving dev creation andWarner Losh2001-12-191-46/+45
| | | | | | | | | | other initialization into attach from probe. Also hide a few printfs behind a bootverbose. approved in principle by: phk Notes: svn path=/head/; revision=88220
* Update to C99, s/__FUNCTION__/__func__/,David E. O'Brien2001-12-103-12/+12
| | | | | | | also don't use ANSI string concatenation. Notes: svn path=/head/; revision=87599
* Give the pps driver an additional 8 inputs if we can persuade thePoul-Henning Kamp2001-09-221-40/+151
| | | | | | | | | 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. Notes: svn path=/head/; revision=83818
* KSE Milestone 2Julian Elischer2001-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 Notes: svn path=/head/; revision=83366
* Translate various ppbus sequences into microsequences to limitNicolas Souchu2001-06-232-109/+128
| | | | | | | | | overhead of abstraction layers. Submitted by: jcm@FreeBSD-uk.eu.org Notes: svn path=/head/; revision=78645
* -Wunused cleanupPeter Wemm2001-06-121-2/+1
| | | | Notes: svn path=/head/; revision=78132
* Style fixes from SaschaPoul-Henning Kamp2001-06-061-4/+3
| | | | | | | | PR: 16551 Submitted by: Sascha Schumann <sascha@schumann.cx> Notes: svn path=/head/; revision=77837
* make code use strxxx() callsAlfred Perlstein2001-04-011-11/+3
| | | | | | | Glanced at by: imp Notes: svn path=/head/; revision=75061
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-264-4/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810