Date: Tue, 21 Oct 2008 18:30:10 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/ppbus if_plip.c immio.c lpbb.c lpt.c pcfclock.c ppb_base.c ppb_msq.c ppbconf.c ppbconf.h ppi.c pps.c vpo.c vpoio.c vpoio.h src/sys/dev/ppc ppc.c ppcreg.h Message-ID: <200810211830.m9LIUhNC047272@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2008-10-21 18:30:10 UTC FreeBSD src repository Modified files: sys/dev/ppbus if_plip.c immio.c lpbb.c lpt.c pcfclock.c ppb_base.c ppb_msq.c ppbconf.c ppbconf.h ppi.c pps.c vpo.c vpoio.c vpoio.h sys/dev/ppc ppc.c ppcreg.h Log: SVN rev 184130 on 2008-10-21 18:30:10Z by jhb Several cleanups to remove the need for explicit unit numbers and a few other fixes: - Add pointers back to device_t objects in softc structures instead of storing the unit and using devclass_get_device(). - Add 'lpbb', 'pcf', 'pps', and 'vpo' child devices to every 'ppbus' device instead of just the first one. - Store softc pointers in si_drv1 of character devices instead of pulling the unit number from the minor number and using devclass_get_softc() and devclass_get_device(). - Store the LP_BYPASS flag in si_drv2 instead of encoding it in the minor number. - Destroy character devices for lpt(4) when detaching the device. - Use bus_print_child_footer() instead of duplicating it in ppbus_print_child() and fix ppbus_print_child()'s return value. - Remove unused AVM ivar from ppbus. - Don't store the 'mode' ivar in the ppbus ivars since we always fetch it from the parent anyway. - Try to detach all the child devices before deleting them in ppbus_detach(). - Use pause() instead of a tsleep() on a dummy address when polling the ppbus. - Use if_printf() and device_printf() instead of explicit names with unit numbers. Silence on: current@ Revision Changes Path 1.47 +8 -6 src/sys/dev/ppbus/if_plip.c 1.19 +13 -10 src/sys/dev/ppbus/immio.c 1.21 +1 -1 src/sys/dev/ppbus/lpbb.c 1.43 +28 -29 src/sys/dev/ppbus/lpt.c 1.22 +29 -35 src/sys/dev/ppbus/pcfclock.c 1.15 +1 -1 src/sys/dev/ppbus/ppb_base.c 1.15 +4 -3 src/sys/dev/ppbus/ppb_msq.c 1.30 +18 -22 src/sys/dev/ppbus/ppbconf.c 1.22 +0 -7 src/sys/dev/ppbus/ppbconf.h 1.44 +20 -26 src/sys/dev/ppbus/ppi.c 1.54 +1 -1 src/sys/dev/ppbus/pps.c 1.37 +10 -17 src/sys/dev/ppbus/vpo.c 1.20 +7 -7 src/sys/dev/ppbus/vpoio.c 1.6 +1 -4 src/sys/dev/ppbus/vpoio.h 1.60 +15 -24 src/sys/dev/ppc/ppc.c 1.19 +1 -2 src/sys/dev/ppc/ppcreg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810211830.m9LIUhNC047272>