freebsd-nq/sys/dev
Kenneth D. Merry 2a888f938e Add a prioritization field to the devstat_add_entry() call so that
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
1999-02-10 00:04:13 +00:00
..
advansys Unspammed includes in <machine/cpufunc.h> in the !SMP case. Partially 1999-01-08 19:17:49 +00:00
aha o enable plug and play support for the aha driver. Given the cumbersome 1999-01-20 06:21:27 +00:00
ahb Correct test in poll loop for determining that the mailbox is free to 1999-01-28 03:30:02 +00:00
aic7xxx "fix" long standing aicasm build glitch. The problem was the 1999-01-17 19:56:02 +00:00
ar Straigthen out the use of the tls and tlf callbacks. 1998-12-16 18:42:38 +00:00
atkbdc - Fixed the bug which always ignored Ctrl-Pause/Break on the AT 101 1999-01-28 10:55:55 +00:00
bktr Added detection for bt848a chips 1999-02-08 11:55:30 +00:00
buslogic probe function changed from returning char * to const char *. 1998-12-14 06:37:37 +00:00
ccd Add a prioritization field to the devstat_add_entry() call so that 1999-02-10 00:04:13 +00:00
cs Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-28 01:59:53 +00:00
cy YAMFsio.c (1.227-1.228: set up input buffering dynamically). 1999-02-04 15:54:02 +00:00
de Removed a bogus cast to v_caddr_t. This is part of terminating 1999-01-29 11:31:45 +00:00
dec Add semicolon to INTERFACE declarations 1998-11-08 18:35:53 +00:00
dgb Use suser() to check for super user rather than examining cr_uid directly. 1999-01-30 12:17:38 +00:00
dpt Error check is not necessary - this function cannot fail in this 1998-12-22 20:21:12 +00:00
ed Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-28 01:59:53 +00:00
eisa Replace includes of <sys/kernel.h> with includes of 1999-01-14 06:22:10 +00:00
en Fix warnings preparing for -Wall -Wcast-qual 1999-01-27 20:09:21 +00:00
ep Move the "fetch serial data" delay so that it is an inter-bit delay. 1999-01-31 22:41:51 +00:00
ex Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-28 01:59:53 +00:00
fb - Don't assume the line length in the video memory is always the same as 1999-02-05 11:52:13 +00:00
fdc Add a prioritization field to the devstat_add_entry() call so that 1999-02-10 00:04:13 +00:00
fe Update the pccard hooks to use a module style declaration instead. 1999-01-19 00:21:53 +00:00
fxp Fix warnings related to -Wall -Wcast-qual 1999-01-28 17:32:05 +00:00
hea Fix warnings preparing for -Wall -Wcast-qual 1999-01-27 20:09:21 +00:00
hfa Fix warnings preparing for -Wall -Wcast-qual 1999-01-27 20:09:21 +00:00
ic Implemented sending of BREAKs. This is quite complicated because the 1998-12-17 17:40:13 +00:00
ie Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-28 01:59:53 +00:00
iicbus Changed to use IICBUS_REPEATED_START 1999-02-06 10:56:09 +00:00
isp Cleanup. Set all PCI parameters of importance. Set a define that will 1999-02-09 01:12:52 +00:00
joy This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
kbd - Fixed the bug which always ignored Ctrl-Pause/Break on the AT 101 1999-01-28 10:55:55 +00:00
lnc New driver flags to support IFF_ALLMULTI handling. 1999-01-31 00:56:32 +00:00
mc146818 Major changes to the generic device framework for FreeBSD/alpha: 1998-06-14 13:46:10 +00:00
mcd Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
mse Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
pcf The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static 1998-12-07 21:58:50 +00:00
pci Added OPTi FireLink and NEC (Toshiba and others) to OHCI ID's 1999-01-22 00:36:46 +00:00
pcm/isa Fix YMF719 detection (report by jose@we.lc.ehu.es). 1999-01-04 20:06:38 +00:00
pdq Fix '|' that was supposed to be '||' 1999-01-27 19:35:33 +00:00
ppbus Generate correct DLT_NULL headers before passing packets to bpf. 1999-02-08 14:12:38 +00:00
ppc Fix compile warnings about missing braces around static initialization of unions. 1999-01-31 11:52:04 +00:00
rc Use suser() to check for super user rather than examining cr_uid directly. 1999-01-30 12:17:38 +00:00
rp Use suser() to check for super user rather than examining cr_uid directly. 1999-01-30 12:17:38 +00:00
scd Move a couple of functions to make __inline work. While I'm here, 1999-01-12 01:29:45 +00:00
si Use suser() to check for super user rather than examining cr_uid directly. 1999-01-30 12:17:38 +00:00
sio Use suser() to check for super user rather than examining cr_uid directly. 1999-01-30 12:17:38 +00:00
smbus Add parens to SMBPRI, fixing bug in tsleep() call that OR's SMBPRI with 1999-01-27 19:58:53 +00:00
snp Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
sound/isa Fix YMF719 detection (report by jose@we.lc.ehu.es). 1999-01-04 20:06:38 +00:00
speaker Fixed printf format errors. Only one left in LINT on i386's. 1998-08-24 02:28:16 +00:00
sr Fix typo. Unit is spelled with a 'u'. 'init' just types too easily. 1999-01-18 21:27:03 +00:00
streams Nuke some prototypes that really shouldn't be here. 1999-02-01 21:22:30 +00:00
syscons Followup to yokota's last commit: 1999-02-05 12:40:16 +00:00
tx probe function changed from returning char * to const char *. 1998-12-14 06:37:37 +00:00
usb Added UHCI_LEGSUP to uhcireg.h 1999-01-31 16:22:35 +00:00
vinum Remove some dead debug code 1999-02-05 05:09:22 +00:00
vn The alternate B_PAGING path for vnstrategy() is used for VM faults 1999-02-01 08:36:02 +00:00
vr Remember to initialize ifp->if_snd.ifq_maxlen. 1999-02-01 21:25:52 +00:00
vx Fix warnings preparing for -Wall -Wcast-qual 1999-01-27 20:09:21 +00:00
wl Silence warnings. 1999-01-12 00:36:36 +00:00