freebsd-nq/sys/dev
Matthew N. Dodd 15317dd875 Alter the behavior of sys/kern/subr_bus.c:device_print_child()
- device_print_child() either lets the BUS_PRINT_CHILD
	  method produce the entire device announcement message or
	  it prints "foo0: not found\n"

Alter sys/kern/subr_bus.c:bus_generic_print_child() to take on
the previous behavior of device_print_child() (printing the
"foo0: <FooDevice 1.1>" bit of the announce message.)

Provide bus_print_child_header() and bus_print_child_footer()
to actually print the output for bus_generic_print_child().
These functions should be used whenever possible (unless you can
just use bus_generic_print_child())

The BUS_PRINT_CHILD method now returns int instead of void.

Modify everything else that defines or uses a BUS_PRINT_CHILD
method to comply with the above changes.

	- Devices are 'on' a bus, not 'at' it.
	- If a custom BUS_PRINT_CHILD method does the same thing
	  as bus_generic_print_child(), use bus_generic_print_child()
	- Use device_get_nameunit() instead of both
	  device_get_name() and device_get_unit()
	- All BUS_PRINT_CHILD methods return the number of
	  characters output.

Reviewed by: dfr, peter
1999-07-29 01:03:04 +00:00
..
advansys Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entire 1999-07-03 20:17:08 +00:00
aha
ahb
aic7xxx Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entire 1999-07-03 20:17:08 +00:00
amd
ar Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
ata slight change in the way we hi-jack the wd drivers cdevsw. 1999-07-17 17:55:53 +00:00
atkbdc Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
bktr Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
buslogic Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entire 1999-07-03 20:17:08 +00:00
ccd Use the vn_todev() function, rather than VOP_GETATTR 1999-07-18 14:31:01 +00:00
cs Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
cy Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entire 1999-07-03 20:17:08 +00:00
de Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
dec
dgb Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
dpt Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
ed Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
eisa Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
en Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
ep 3C574TX 16bit FastEtherlink PC-card support. 1999-07-25 01:20:37 +00:00
ex Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
fb Remove cmaj and bmaj args from DEV_DRIVER_MODULE. 1999-07-04 14:58:56 +00:00
fdc Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
fe Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
fxp Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
hea
hfa This commit should be a extensive NO-OP: 1999-05-30 16:53:49 +00:00
ic
ida Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
ie Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
iicbus Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
isp add in (controlled by option) 2200 Expanded Lun F/W 1999-07-06 05:38:24 +00:00
joy Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
kbd - Move the `return' statement the correct place so that the keyboard 1999-07-18 06:16:25 +00:00
lnc Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
mc146818
mcd Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
mse Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
pccard Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
pcf Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
pci Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
pcm/isa
pdq Convert the if_fea (DEC FDDI) driver to newbus since it has been broken 1999-07-10 19:46:08 +00:00
ppbus Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
ppc
rc Fixed null setting of `rc_started'. This was fixed for the 1999-06-04 18:53:47 +00:00
rp Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scd Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
sf Remember to clear the IFF_RUNNING and IFF_OACTIVE flags in sf_stop() and 1999-07-25 05:16:05 +00:00
si Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
sio Remove cmaj and bmaj args from DEV_DRIVER_MODULE. 1999-07-04 14:58:56 +00:00
sk Remember to clear the IFF_RUNNING and IFF_OACTIVE flags in sf_stop() and 1999-07-25 05:16:05 +00:00
smbus Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
snp Add Id strings 1999-06-17 23:42:45 +00:00
sound/isa
speaker Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
sr Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
streams Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
syscons - Clear relevant variables when the keyboard is not available. 1999-07-18 06:16:53 +00:00
ti Roar! Finish what I started last night: somehow only the header file change 1999-07-27 13:54:15 +00:00
tx Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
usb Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
vinum Modify device numbering method to work with latest -CURRENT. Briefly, 1999-07-22 08:40:37 +00:00
vn Now a dev_t is a pointer to struct specinfo which is shared by all specdev 1999-07-20 09:47:55 +00:00
vr Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
vx Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
wi Correct the alignment of some of the members in the wi_frame structure. 1999-07-20 20:03:42 +00:00
wl Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00
xe Rename bpfilter to bpf. 1999-07-06 19:23:32 +00:00