Date: Wed, 28 Jul 1999 18:03:05 -0700 (PDT) From: "Matthew N. Dodd" <mdodd@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/share/man/man9 BUS_PRINT_CHILD.9 bus_generic_print_child.9 src/sys/alpha/tc ioasic.c tc.c tcasic.c tcds.c src/sys/alpha/tlsb gbus.c kftxx.c tlsb.c zs_tlsb.c src/sys/dev/iicbus iicbb.c iicbus.c iicsmb.c src/sys/dev/ppbus lpbb.c src/sys/dev/smbus ... Message-ID: <199907290103.SAA50191@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
mdodd 1999/07/28 18:03:05 PDT
Modified files:
share/man/man9 BUS_PRINT_CHILD.9
bus_generic_print_child.9
sys/alpha/tc ioasic.c tc.c tcasic.c tcds.c
sys/alpha/tlsb gbus.c kftxx.c tlsb.c zs_tlsb.c
sys/dev/iicbus iicbb.c iicbus.c iicsmb.c
sys/dev/ppbus lpbb.c
sys/dev/smbus smbus.c
sys/dev/usb usbdi.c
sys/i386/eisa eisaconf.c
sys/i386/i386 nexus.c
sys/i386/isa pcf.c
sys/isa atkbdc_isa.c fd.c isa_common.c
sys/kern bus_if.m subr_bus.c
sys/pc98/pc98 fd.c
sys/pci alpm.c bt848_i2c.c ida_pci.c intpm.c
pci.c
sys/sys bus.h
Log:
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
Revision Changes Path
1.3 +8 -3 src/share/man/man9/BUS_PRINT_CHILD.9
1.3 +18 -5 src/share/man/man9/bus_generic_print_child.9
1.5 +10 -6 src/sys/alpha/tc/ioasic.c
1.6 +2 -12 src/sys/alpha/tc/tc.c
1.5 +2 -12 src/sys/alpha/tc/tcasic.c
1.3 +2 -11 src/sys/alpha/tc/tcds.c
1.6 +8 -5 src/sys/alpha/tlsb/gbus.c
1.6 +9 -6 src/sys/alpha/tlsb/kftxx.c
1.7 +8 -6 src/sys/alpha/tlsb/tlsb.c
1.15 +10 -6 src/sys/alpha/tlsb/zs_tlsb.c
1.5 +10 -9 src/sys/dev/iicbus/iicbb.c
1.10 +11 -9 src/sys/dev/iicbus/iicbus.c
1.4 +2 -11 src/sys/dev/iicbus/iicsmb.c
1.6 +2 -11 src/sys/dev/ppbus/lpbb.c
1.10 +2 -12 src/sys/dev/smbus/smbus.c
1.24 +12 -8 src/sys/dev/usb/usbdi.c
1.48 +10 -5 src/sys/i386/eisa/eisaconf.c
1.13 +9 -4 src/sys/i386/i386/nexus.c
1.10 +8 -6 src/sys/i386/isa/pcf.c
1.10 +9 -6 src/sys/isa/atkbdc_isa.c
1.150 +8 -3 src/sys/isa/fd.c
1.4 +14 -10 src/sys/isa/isa_common.c
1.13 +5 -3 src/sys/kern/bus_if.m
1.32 +38 -11 src/sys/kern/subr_bus.c
1.67 +9 -4 src/sys/pc98/pc98/fd.c
1.6 +2 -11 src/sys/pci/alpm.c
1.6 +2 -11 src/sys/pci/bt848_i2c.c
1.3 +2 -9 src/sys/pci/ida_pci.c
1.13 +2 -9 src/sys/pci/intpm.c
1.114 +13 -5 src/sys/pci/pci.c
1.22 +4 -2 src/sys/sys/bus.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907290103.SAA50191>
