aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ppbus/lpt.c
Commit message (Collapse)AuthorAgeFilesLines
* This makes ppbus childs like lpt and ppi succesfully connect to moreBernd Walter2002-04-071-1/+1
| | | | | | | | | | | 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
* KSE Milestone 2Julian Elischer2001-09-121-3/+3
| | | | | | | | | | | | | | | | | 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
* 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
* Don't use a private malloc(9) type for something this M_DEVBUFish.Poul-Henning Kamp2000-12-071-6/+4
| | | | | | | Noticed long time ago by: bde Notes: svn path=/head/; revision=69730
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Rather than use a MD lpt.h, we now use the MI lptio.h.David E. O'Brien2000-05-191-2/+1
| | | | Notes: svn path=/head/; revision=60719
* Don't use getebuf() unless you really need a struct buf. Malloc willPoul-Henning Kamp2000-05-051-10/+12
| | | | | | | do fine in this case. Notes: svn path=/head/; revision=60025
* I _HATE_ crashes. The lptread() call needs to check LP_BYPASS, becauseBrian Feldman2000-03-151-0/+5
| | | | | | | | if one tries to use read() on an LP_BYPASS'd dev_t, the softc will be initialized mainly with NULLs, so... Notes: svn path=/head/; revision=58082
* Fix two warnings.Peter Wemm2000-02-131-1/+1
| | | | Notes: svn path=/head/; revision=57177
* Fix system hang when printer locks on missing paperNicolas Souchu2000-02-081-2/+2
| | | | | | | | | (also called the "printer fiasco") Approved by: jkh Notes: svn path=/head/; revision=57064
* Make this lot build on alpha.Doug Rabson2000-01-251-2/+3
| | | | Notes: svn path=/head/; revision=56618
* Some newbus-inspired tidy-ups. Use device_identify() rather than scanningPeter Wemm2000-01-231-28/+21
| | | | | | | | | | | | | | | the resource table to locate children. The 'at ppbus?' can go again. Remove a few #if Nxxx > 0' type things, config arranges this for us. Move the newbus method glue next to the DRIVER_MODULE() stuff so we don't need extra prototypes. Don't set device descriptions until after the possibility of the probe returning an error. Remove all cdevsw_add() calls, all the drivers that did this also use make_dev() correctly, so it's not required. A couple of other minor nits. Notes: svn path=/head/; revision=56455
* Port of ppbus standalone framework to the newbus system.Nicolas Souchu2000-01-141-157/+194
| | | | | | | | | | | | | | | | | | | | | | | | Note1: the correct interrupt level is invoked correctly for each driver. For this purpose, drivers request the bus before being able to call BUS_SETUP_INTR and BUS_TEARDOWN_INTR call is forced by the ppbus core when drivers release it. Thus, when BUS_SETUP_INTR is called at ppbus driver level, ppbus checks that the caller owns the bus and stores the interrupt handler cookie (in order to unregister it later). Printing is impossible while plip link is up is still TRUE. vpo (ZIP driver) and lpt are make in such a way that using the ZIP and printing concurrently is permitted is also TRUE. Note2: specific chipset detection is not done by default. PPC_PROBE_CHIPSET is now needed to force chipset detection. If set, the flags 0x40 still avoid detection at boot. Port of the pcf(4) driver to the newbus system (was previously directly connected to the rootbus and attached by a bogus pcf_isa_probe function). Notes: svn path=/head/; revision=55939
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-4/+4
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* 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
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Convert DEVFS hooks in (most) drivers to make_dev().Poul-Henning Kamp1999-08-231-18/+5
| | | | | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev(). Notes: svn path=/head/; revision=50254
* GC unused prototypePeter Wemm1999-06-031-2/+1
| | | | Notes: svn path=/head/; revision=47718
* Simplify cdevsw registration.Poul-Henning Kamp1999-05-311-17/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up. Notes: svn path=/head/; revision=47640
* This commit should be a extensive NO-OP:Poul-Henning Kamp1999-05-301-5/+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
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.Dmitrij Tejblum1999-04-281-2/+2
| | | | | | | (Edited automatically) Notes: svn path=/head/; revision=46153
* Move away from lpt.h data structure definition that only lpt.c relies on.Nicolas Souchu1999-02-141-1/+35
| | | | | | | Remove if_plip.c dependency to lpt.h. Notes: svn path=/head/; revision=43999
* Rename nlpt to lpt.Nicolas Souchu1999-02-141-0/+921
Remove from ppi.c the old depreciated module stuff. Print info when if_plip can't use interrupts. Notes: svn path=/head/; revision=43989