hi, not sure if this is anyhow useful, but we can completely ditch DV_TTY since it's not used in any sensible way.
any objections? ok? diff --git sys/arch/alpha/tc/scc.c sys/arch/alpha/tc/scc.c index d25901e..ad37605 100644 --- sys/arch/alpha/tc/scc.c +++ sys/arch/alpha/tc/scc.c @@ -179,7 +179,7 @@ struct cfattach scc_ca = { }; struct cfdriver scc_cd = { - NULL, "scc", DV_TTY, + NULL, "scc", DV_DULL, }; cdev_decl(scc); diff --git sys/arch/aviion/dev/dart.c sys/arch/aviion/dev/dart.c index 0e3bb9d..388cc5f 100644 --- sys/arch/aviion/dev/dart.c +++ sys/arch/aviion/dev/dart.c @@ -50,7 +50,7 @@ #endif struct cfdriver dart_cd = { - NULL, "dart", DV_TTY + NULL, "dart", DV_DULL }; /* console is on the first port */ diff --git sys/arch/hp300/dev/apci.c sys/arch/hp300/dev/apci.c index 6bc333b..731d28d 100644 --- sys/arch/hp300/dev/apci.c +++ sys/arch/hp300/dev/apci.c @@ -143,7 +143,7 @@ struct cfattach apci_ca = { }; struct cfdriver apci_cd = { - NULL, "apci", DV_TTY + NULL, "apci", DV_DULL }; int apciintr(void *); diff --git sys/arch/hp300/dev/dca.c sys/arch/hp300/dev/dca.c index ef2c0a3..5d66a63 100644 --- sys/arch/hp300/dev/dca.c +++ sys/arch/hp300/dev/dca.c @@ -100,7 +100,7 @@ struct cfattach dca_ca = { }; struct cfdriver dca_cd = { - NULL, "dca", DV_TTY + NULL, "dca", DV_DULL }; int dcadefaultrate = TTYDEF_SPEED; diff --git sys/arch/hp300/dev/dcm.c sys/arch/hp300/dev/dcm.c index 6346eeb..3ec126d 100644 --- sys/arch/hp300/dev/dcm.c +++ sys/arch/hp300/dev/dcm.c @@ -275,7 +275,7 @@ struct cfattach dcm_ca = { }; struct cfdriver dcm_cd = { - NULL, "dcm", DV_TTY + NULL, "dcm", DV_DULL }; int diff --git sys/arch/luna88k/dev/lunaws.c sys/arch/luna88k/dev/lunaws.c index 67fd0f5..be32ebb 100644 --- sys/arch/luna88k/dev/lunaws.c +++ sys/arch/luna88k/dev/lunaws.c @@ -132,7 +132,7 @@ const struct cfattach ws_ca = { }; struct cfdriver ws_cd = { - NULL, "ws", DV_TTY + NULL, "ws", DV_DULL }; extern int syscngetc(dev_t); diff --git sys/arch/luna88k/dev/siotty.c sys/arch/luna88k/dev/siotty.c index 7469381..df61be6 100644 --- sys/arch/luna88k/dev/siotty.c +++ sys/arch/luna88k/dev/siotty.c @@ -86,7 +86,7 @@ const struct cfattach siotty_ca = { }; struct cfdriver siotty_cd = { - NULL, "siotty", DV_TTY + NULL, "siotty", DV_DULL }; int diff --git sys/arch/macppc/dev/zs.c sys/arch/macppc/dev/zs.c index 0a53675..1dd23de 100644 --- sys/arch/macppc/dev/zs.c +++ sys/arch/macppc/dev/zs.c @@ -152,7 +152,7 @@ static u_char zs_init_reg[16] = { ****************************************************************/ struct cfdriver zsc_cd = { - NULL, "zsc", DV_TTY + NULL, "zsc", DV_DULL }; /* Definition of the driver for autoconfig. */ diff --git sys/arch/mvme68k/dev/cl.c sys/arch/mvme68k/dev/cl.c index c92b40e..a6d4df5 100644 --- sys/arch/mvme68k/dev/cl.c +++ sys/arch/mvme68k/dev/cl.c @@ -196,7 +196,7 @@ struct cfattach cl_ca = { }; struct cfdriver cl_cd = { - NULL, "cl", DV_TTY + NULL, "cl", DV_DULL }; #define CLCDBUF 80 diff --git sys/arch/mvme68k/dev/dart.c sys/arch/mvme68k/dev/dart.c index d1e30fc..c4c4741 100644 --- sys/arch/mvme68k/dev/dart.c +++ sys/arch/mvme68k/dev/dart.c @@ -49,7 +49,7 @@ #endif struct cfdriver dart_cd = { - NULL, "dart", DV_TTY + NULL, "dart", DV_DULL }; /* console is on the first port */ diff --git sys/arch/mvme68k/dev/wl.c sys/arch/mvme68k/dev/wl.c index 0258ed0..fe784a0 100644 --- sys/arch/mvme68k/dev/wl.c +++ sys/arch/mvme68k/dev/wl.c @@ -193,7 +193,7 @@ struct cfattach wl_ca = { }; struct cfdriver wl_cd = { - NULL, "wl", DV_TTY + NULL, "wl", DV_DULL }; #define CLCDBUF 80 diff --git sys/arch/mvme68k/dev/zs.c sys/arch/mvme68k/dev/zs.c index 71eb870..861dfcc 100644 --- sys/arch/mvme68k/dev/zs.c +++ sys/arch/mvme68k/dev/zs.c @@ -145,7 +145,7 @@ struct cfattach zs_ca = { }; struct cfdriver zs_cd = { - NULL, "zs", DV_TTY + NULL, "zs", DV_DULL }; void zs_ttydef(struct zs *); diff --git sys/arch/mvme88k/dev/cl.c sys/arch/mvme88k/dev/cl.c index 7cd54e5..da159cb 100644 --- sys/arch/mvme88k/dev/cl.c +++ sys/arch/mvme88k/dev/cl.c @@ -181,7 +181,7 @@ struct cfattach cl_ca = { }; struct cfdriver cl_cd = { - NULL, "cl", DV_TTY + NULL, "cl", DV_DULL }; #if 0 diff --git sys/arch/mvme88k/dev/dart.c sys/arch/mvme88k/dev/dart.c index d92e440..8c9545c 100644 --- sys/arch/mvme88k/dev/dart.c +++ sys/arch/mvme88k/dev/dart.c @@ -81,7 +81,7 @@ struct cfattach dart_ca = { }; struct cfdriver dart_cd = { - NULL, "dart", DV_TTY + NULL, "dart", DV_DULL }; /* console is on the first port */ diff --git sys/arch/mvme88k/dev/vx.c sys/arch/mvme88k/dev/vx.c index 406b67a..0ecde5f 100644 --- sys/arch/mvme88k/dev/vx.c +++ sys/arch/mvme88k/dev/vx.c @@ -86,7 +86,7 @@ struct cfattach vx_ca = { }; struct cfdriver vx_cd = { - NULL, "vx", DV_TTY + NULL, "vx", DV_DULL }; int bpp_send(struct vxsoftc *, void *, int); diff --git sys/arch/sgi/hpc/zs.c sys/arch/sgi/hpc/zs.c index 4ff3aeb..cfe558a 100644 --- sys/arch/sgi/hpc/zs.c +++ sys/arch/sgi/hpc/zs.c @@ -156,7 +156,7 @@ void zs_hpc_attach(struct device *, struct device *, void *); int zs_print(void *, const char *name); struct cfdriver zs_cd = { - NULL, "zs", DV_TTY + NULL, "zs", DV_DULL }; struct cfattach zs_hpc_ca = { diff --git sys/arch/sparc/dev/magma.c sys/arch/sparc/dev/magma.c index 50be93a..5006543 100644 --- sys/arch/sparc/dev/magma.c +++ sys/arch/sparc/dev/magma.c @@ -179,7 +179,7 @@ struct cfattach mtty_ca = { }; struct cfdriver mtty_cd = { - NULL, "mtty", DV_TTY + NULL, "mtty", DV_DULL }; struct cfattach mbpp_ca = { diff --git sys/arch/sparc/dev/spif.c sys/arch/sparc/dev/spif.c index d1324af..1852ca1 100644 --- sys/arch/sparc/dev/spif.c +++ sys/arch/sparc/dev/spif.c @@ -103,7 +103,7 @@ struct cfattach stty_ca = { }; struct cfdriver stty_cd = { - NULL, "stty", DV_TTY + NULL, "stty", DV_DULL }; struct cfattach sbpp_ca = { diff --git sys/arch/sparc/dev/z8530kbd.c sys/arch/sparc/dev/z8530kbd.c index 0a9c364..9572812 100644 --- sys/arch/sparc/dev/z8530kbd.c +++ sys/arch/sparc/dev/z8530kbd.c @@ -132,7 +132,7 @@ #endif struct cfdriver zskbd_cd = { - NULL, "zskbd", DV_TTY + NULL, "zskbd", DV_DULL }; /* diff --git sys/arch/sparc64/dev/pcons.c sys/arch/sparc64/dev/pcons.c index 84ebc0a..d128af5 100644 --- sys/arch/sparc64/dev/pcons.c +++ sys/arch/sparc64/dev/pcons.c @@ -136,7 +136,7 @@ struct cfattach pcons_ca = { }; struct cfdriver pcons_cd = { - NULL, "pcons", DV_TTY + NULL, "pcons", DV_DULL }; extern struct cfdriver pcons_cd; diff --git sys/arch/sparc64/dev/sab.c sys/arch/sparc64/dev/sab.c index abbcbd8..ca33ae0 100644 --- sys/arch/sparc64/dev/sab.c +++ sys/arch/sparc64/dev/sab.c @@ -170,7 +170,7 @@ struct cfattach sabtty_ca = { }; struct cfdriver sabtty_cd = { - NULL, "sabtty", DV_TTY + NULL, "sabtty", DV_DULL }; struct sabtty_rate { diff --git sys/arch/sparc64/dev/z8530kbd.c sys/arch/sparc64/dev/z8530kbd.c index e985544..1716c0e 100644 --- sys/arch/sparc64/dev/z8530kbd.c +++ sys/arch/sparc64/dev/z8530kbd.c @@ -131,7 +131,7 @@ #endif struct cfdriver zskbd_cd = { - NULL, "zskbd", DV_TTY + NULL, "zskbd", DV_DULL }; /* diff --git sys/arch/sparc64/dev/zs.c sys/arch/sparc64/dev/zs.c index 287e80d..2c231ff 100644 --- sys/arch/sparc64/dev/zs.c +++ sys/arch/sparc64/dev/zs.c @@ -67,7 +67,7 @@ #include "zs.h" /* NZS */ struct cfdriver zs_cd = { - NULL, "zs", DV_TTY + NULL, "zs", DV_DULL }; /* Make life easier for the initialized arrays here. */ diff --git sys/arch/vax/qbus/dhu.c sys/arch/vax/qbus/dhu.c index 5eb6aac..db288ab 100644 --- sys/arch/vax/qbus/dhu.c +++ sys/arch/vax/qbus/dhu.c @@ -151,7 +151,7 @@ struct cfattach dhu_ca = { }; struct cfdriver dhu_cd = { - NULL, "dhu", DV_TTY + NULL, "dhu", DV_DULL }; /* Autoconfig handles: setup the controller to interrupt, */ diff --git sys/arch/vax/qbus/dl.c sys/arch/vax/qbus/dl.c index e87ab20..8ee726f 100644 --- sys/arch/vax/qbus/dl.c +++ sys/arch/vax/qbus/dl.c @@ -116,7 +116,7 @@ struct cfattach dl_ca = { }; struct cfdriver dl_cd = { - NULL, "dl", DV_TTY + NULL, "dl", DV_DULL }; #define DL_READ_WORD(reg) \ diff --git sys/arch/vax/qbus/dz.c sys/arch/vax/qbus/dz.c index a9ffa09..21ccd07 100644 --- sys/arch/vax/qbus/dz.c +++ sys/arch/vax/qbus/dz.c @@ -95,7 +95,7 @@ static void dzscan(void *); static void dzdrain(struct dz_softc *); struct cfdriver dz_cd = { - NULL, "dz", DV_TTY + NULL, "dz", DV_DULL }; cdev_decl(dz); diff --git sys/arch/vax/vxt/qsc.c sys/arch/vax/vxt/qsc.c index 9389fe6..c28b9cc 100644 --- sys/arch/vax/vxt/qsc.c +++ sys/arch/vax/vxt/qsc.c @@ -70,7 +70,7 @@ #include "qscms.h" struct cfdriver qsc_cd = { - NULL, "qsc", DV_TTY + NULL, "qsc", DV_DULL }; /* console storage */ diff --git sys/dev/ic/com.c sys/dev/ic/com.c index 4a494ff..8a0b5e1 100644 --- sys/dev/ic/com.c +++ sys/dev/ic/com.c @@ -113,7 +113,7 @@ void cominit(bus_space_tag_t, bus_space_handle_t, int, int); int com_is_console(bus_space_tag_t, bus_addr_t); struct cfdriver com_cd = { - NULL, "com", DV_TTY + NULL, "com", DV_DULL }; int comdefaultrate = TTYDEF_SPEED; diff --git sys/dev/ic/cy.c sys/dev/ic/cy.c index 8a2cf87..baa9aae 100644 --- sys/dev/ic/cy.c +++ sys/dev/ic/cy.c @@ -90,7 +90,7 @@ void cd1400_channel_cmd(struct cy_port *, int); int cy_speed(speed_t, int *, int *, int); struct cfdriver cy_cd = { - NULL, "cy", DV_TTY + NULL, "cy", DV_DULL }; /* diff --git sys/dev/ic/lpt.c sys/dev/ic/lpt.c index 4053411..1a16915 100644 --- sys/dev/ic/lpt.c +++ sys/dev/ic/lpt.c @@ -89,7 +89,7 @@ int lptdebug = 1; cdev_decl(lpt); struct cfdriver lpt_cd = { - NULL, "lpt", DV_TTY + NULL, "lpt", DV_DULL }; #define LPTUNIT(s) (minor(s) & 0x1f) diff --git sys/dev/ic/z8530tty.c sys/dev/ic/z8530tty.c index c31c146..21b91c1 100644 --- sys/dev/ic/z8530tty.c +++ sys/dev/ic/z8530tty.c @@ -131,7 +131,7 @@ #endif struct cfdriver zstty_cd = { - NULL, "zstty", DV_TTY + NULL, "zstty", DV_DULL }; /* diff --git sys/dev/isa/addcom_isa.c sys/dev/isa/addcom_isa.c index 35a9198..d8dd92e 100644 --- sys/dev/isa/addcom_isa.c +++ sys/dev/isa/addcom_isa.c @@ -116,7 +116,7 @@ struct cfattach addcom_isa_ca = { }; struct cfdriver addcom_cd = { - NULL, "addcom", DV_TTY + NULL, "addcom", DV_DULL }; int diff --git sys/dev/isa/ast.c sys/dev/isa/ast.c index 20a498c..a74d4ec 100644 --- sys/dev/isa/ast.c +++ sys/dev/isa/ast.c @@ -70,7 +70,7 @@ struct cfattach ast_ca = { }; struct cfdriver ast_cd = { - NULL, "ast", DV_TTY + NULL, "ast", DV_DULL }; int diff --git sys/dev/isa/boca.c sys/dev/isa/boca.c index 06ce953..f046f6a 100644 --- sys/dev/isa/boca.c +++ sys/dev/isa/boca.c @@ -70,7 +70,7 @@ struct cfattach boca_ca = { }; struct cfdriver boca_cd = { - NULL, "boca", DV_TTY + NULL, "boca", DV_DULL }; int diff --git sys/dev/isa/hsq.c sys/dev/isa/hsq.c index 7e3b031..c8cf4cc 100644 --- sys/dev/isa/hsq.c +++ sys/dev/isa/hsq.c @@ -116,7 +116,7 @@ struct cfattach hsq_ca = { }; struct cfdriver hsq_cd = { - NULL, "hsq", DV_TTY + NULL, "hsq", DV_DULL }; int diff --git sys/dev/isa/rtfps.c sys/dev/isa/rtfps.c index d45c6e5..78e240e 100644 --- sys/dev/isa/rtfps.c +++ sys/dev/isa/rtfps.c @@ -72,7 +72,7 @@ struct cfattach rtfps_ca = { }; struct cfdriver rtfps_cd = { - NULL, "rtfps", DV_TTY + NULL, "rtfps", DV_DULL }; int diff --git sys/dev/pci/cz.c sys/dev/pci/cz.c index 9f74393..1e30c8b 100644 --- sys/dev/pci/cz.c +++ sys/dev/pci/cz.c @@ -195,7 +195,7 @@ int cztty_to_tiocm(struct cztty_softc *sc); void cztty_diag(void *arg); struct cfdriver cz_cd = { - 0, "cz", DV_TTY + 0, "cz", DV_DULL }; /* diff --git sys/dev/sbus/magma.c sys/dev/sbus/magma.c index 063a10f..36fa66e 100644 --- sys/dev/sbus/magma.c +++ sys/dev/sbus/magma.c @@ -170,7 +170,7 @@ struct cfattach mtty_ca = { }; struct cfdriver mtty_cd = { - NULL, "mtty", DV_TTY + NULL, "mtty", DV_DULL }; struct cfattach mbpp_ca = { diff --git sys/dev/sbus/spif.c sys/dev/sbus/spif.c index 260b8af..22e79a2 100644 --- sys/dev/sbus/spif.c +++ sys/dev/sbus/spif.c @@ -106,7 +106,7 @@ struct cfattach stty_ca = { }; struct cfdriver stty_cd = { - NULL, "stty", DV_TTY + NULL, "stty", DV_DULL }; struct cfattach sbpp_ca = { diff --git sys/dev/usb/ucom.c sys/dev/usb/ucom.c index a5d2c3a..bdd6fa1 100644 --- sys/dev/usb/ucom.c +++ sys/dev/usb/ucom.c @@ -146,7 +146,7 @@ int ucom_detach(struct device *, int); int ucom_activate(struct device *, int); struct cfdriver ucom_cd = { - NULL, "ucom", DV_TTY + NULL, "ucom", DV_DULL }; const struct cfattach ucom_ca = { diff --git sys/dev/wscons/wsdisplay.c sys/dev/wscons/wsdisplay.c index a57b2bc..7c88fc4 100644 --- sys/dev/wscons/wsdisplay.c +++ sys/dev/wscons/wsdisplay.c @@ -217,7 +217,7 @@ void wsdisplay_emul_attach(struct device *, struct device *, void *); int wsdisplay_emul_detach(struct device *, int); struct cfdriver wsdisplay_cd = { - NULL, "wsdisplay", DV_TTY + NULL, "wsdisplay", DV_DULL }; struct cfattach wsdisplay_emul_ca = { diff --git sys/dev/wscons/wskbd.c sys/dev/wscons/wskbd.c index 535a5a5..5083ac6 100644 --- sys/dev/wscons/wskbd.c +++ sys/dev/wscons/wskbd.c @@ -236,7 +236,7 @@ int wskbd_do_open(struct wskbd_softc *, struct wseventvar *); int wskbd_do_ioctl(struct device *, u_long, caddr_t, int, struct proc *); struct cfdriver wskbd_cd = { - NULL, "wskbd", DV_TTY + NULL, "wskbd", DV_DULL }; struct cfattach wskbd_ca = { diff --git sys/dev/wscons/wsmouse.c sys/dev/wscons/wsmouse.c index 8985e05..2c1fe3b 100644 --- sys/dev/wscons/wsmouse.c +++ sys/dev/wscons/wsmouse.c @@ -158,7 +158,7 @@ int wsmousedoioctl(struct device *, u_long, caddr_t, int, int wsmousedoopen(struct wsmouse_softc *, struct wseventvar *); struct cfdriver wsmouse_cd = { - NULL, "wsmouse", DV_TTY + NULL, "wsmouse", DV_DULL }; struct cfattach wsmouse_ca = { diff --git sys/sys/device.h sys/sys/device.h index 8ef70a0..be48807 100644 --- sys/sys/device.h +++ sys/sys/device.h @@ -55,8 +55,7 @@ enum devclass { DV_CPU, /* CPU (carries resource utilization) */ DV_DISK, /* disk drive (label, etc) */ DV_IFNET, /* network interface */ - DV_TAPE, /* tape device */ - DV_TTY /* serial line interface (???) */ + DV_TAPE /* tape device */ }; /*