summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wd_cd.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove five now unused fields from struct cdevsw. They should neverphk1999-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
* Use devstat_end_transaction_buf() rather than Use devstat_end_transaction()phk1999-09-181-3/+1
|
* Changes to centralise the default blocksize behaviour.julian1999-09-091-3/+1
| | | | | | More likely to follow. Submitted by: phk@freebsd.org
* Set si_bsize_phys and si_bsize_max in all legacy CD drivers.phk1999-09-011-0/+2
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-23/+9
| | | | | | | | | | | | | | | | 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().
* Simplify cdevsw registration.phk1999-05-311-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* This commit should be a extensive NO-OP:phk1999-05-301-6/+20
| | | | | | | | | | | | | 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.
* Make the driver work on HP8100 and the newer Philips that does notsos1999-05-111-24/+3
| | | | support the rezero command.
* Introduce two functions: physread() and physwrite() and use these directlyphk1999-05-071-16/+2
| | | | | | in *devsw[] rather than the 46 local copies of the same functions. (grog will do the same for vinum when he has time)
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.dt1999-04-281-2/+2
| | | | (Edited automatically)
* Suser() simplification:phk1999-04-271-2/+2
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Shoot the LKM support in the old wd/wdc/atapi driver set in the head andpeter1999-04-131-84/+3
| | | | | | | | | | | | | | | | | perform a cleanup/unifdef sweep over it to tidy things up. The atapi code is permanently attached to the wd driver and is always probed. I will add an extra option bit in the flags to disable an atapi probe on either the master or slave if needed, if people want this. Remember, this driver is destined to die some time. It's possible that it will loose all atapi support down the track and only be used for dumb non-ATA disks and all ata/atapi devices will be handled by the new ata system. ATAPI, ATAPI_STATIC and CMD640 are no longer options, all are implicit. Previously discussed with: sos
* The DEVFS case was screwed by my last commit here..sos1999-03-311-4/+4
|
* Rewert the atapi CDROM driver's name to wcd.sos1999-03-161-36/+36
| | | | | This is to avoid confusion with the new system. Also provide real entires in MAKEDEV for the new system.
* Add a prioritization field to the devstat_add_entry() call so thatken1999-02-101-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | peripheral drivers can determine where in the devstat(9) list they are inserted. This requires recompilation of libdevstat, systat, vmstat, rpc.rstatd, and any ports that depend on the devstat code, since the size of the devstat structure has changed. The devstat version number has been incremented as well to reflect the change. This sorts devices in the devstat list in "more interesting" to "less interesting" order. So, for instance, da devices are now more important than floppy drives, and so will appear before floppy drives in the default output from systat, iostat, vmstat, etc. The order of devices is, for now, kept in a central table in devicestat.h. If individual drivers were able to make a meaningful decision on what priority they should be at attach time, we could consider splitting the priority information out into the various drivers. For now, though, they have no way of knowing that, so it's easier to put them in an easy to find table. Also, move the checkversion() call in vmstat(8) to a more logical place. Thanks to Bruce and David O'Brien for suggestions, for reviewing this, and for putting up with the long time it has taken me to commit it. Bruce did object somewhat to the central priority table (he would rather the priorities be distributed in each driver), so his objection is duly noted here. Reviewed by: bde, obrien
* Bzero the devstat structure before use.sos1999-01-311-1/+2
| | | | Pointed out by: <Kenneth Merry> ken@plutotech.com
* Add device stats for the acd device.sos1999-01-311-13/+43
|
* Use suser() to determine super-user-ness, don't examine cr_uid directly.phk1999-01-301-3/+4
|
* Extraneous space.hoek1999-01-021-2/+2
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-9/+1
| | | | and local variables, goto labels, and functions declared but not defined.
* Eliminate compiler warning.archie1998-11-211-2/+2
|
* Use "KB" instead of "Kb" for KiloBytes, consistently with otherluigi1998-10-301-3/+3
| | | | drivers and common practices.
* Make the next_writeable address specific for each drive, there mightsos1998-10-151-6/+5
| | | | be more than one burner online.
* Remove debug output on disk change.sos1998-10-081-2/+2
|
* Add new atapi-cd driver that supports atapi CD-R/RW drives.sos1998-09-081-0/+1588
This is only a stop-gab solution to get atapi burner support into 3.0.
OpenPOWER on IntegriCloud