From owner-cvs-src-old@FreeBSD.ORG Tue Oct 21 18:30:43 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5A1D106569A for ; Tue, 21 Oct 2008 18:30:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C08BE8FC13 for ; Tue, 21 Oct 2008 18:30:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9LIUh2o047273 for ; Tue, 21 Oct 2008 18:30:43 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9LIUhNC047272 for cvs-src-old@freebsd.org; Tue, 21 Oct 2008 18:30:43 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200810211830.m9LIUhNC047272@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Tue, 21 Oct 2008 18:30:10 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 18:30:43 -0000 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