summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1999-12-08 04:45:23 +0000
committerken <ken@FreeBSD.org>1999-12-08 04:45:23 +0000
commit235e74ef14545e7100cec4fa645aff076da52816 (patch)
tree32b247bb1e4d2829469cabf6d97c96992ec8612b /sys/contrib
parent9ad09710679f41c5f78e53b1fa6541b8251a0867 (diff)
downloadFreeBSD-src-235e74ef14545e7100cec4fa645aff076da52816.zip
FreeBSD-src-235e74ef14545e7100cec4fa645aff076da52816.tar.gz
Revamp the devstat priority system. All disks now have the same priority.
The same goes for CD drivers and tape drivers. In systems with mixed IDE and SCSI, devices in the same priority class will be sorted in attach order. Also, the 'CCD' priority is now the 'ARRAY' priority, and a number of drivers have been modified to use that priority. This includes the necessary changes to all drivers, except the ATA drivers. Soren will modify those separately. This does not include and does not require any change in the devstat version number, since no known userland applications use the priority enumerations. Reviewed by: msmith, sos, phk, jlemon, mjacob, bde
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/fla/fla.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c
index 9de44ee..0f91842 100644
--- a/sys/contrib/dev/fla/fla.c
+++ b/sys/contrib/dev/fla/fla.c
@@ -326,7 +326,8 @@ flaattach (device_t dev)
devstat_add_entry(&softc[unit].stats, "fla", unit, DEV_BSIZE,
DEVSTAT_NO_ORDERED_TAGS,
- DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER, 0x190);
+ DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER,
+ DEVSTAT_PRIORITY_DISK);
sc->dev = disk_create(unit, &sc->disk, 0, &fla_cdevsw, &fladisk_cdevsw);
sc->dev->si_drv1 = sc;
OpenPOWER on IntegriCloud