From owner-cvs-all Wed Nov 17 14:34: 6 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7B5AD14C2B; Wed, 17 Nov 1999 14:33:59 -0800 (PST) (envelope-from n_hibma@FreeBSD.org) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA40385; Wed, 17 Nov 1999 14:33:59 -0800 (PST) (envelope-from n_hibma@FreeBSD.org) Message-Id: <199911172233.OAA40385@freefall.freebsd.org> From: Nick Hibma Date: Wed, 17 Nov 1999 14:33:53 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb hid.c hid.h ohci.c ohcireg.h ohcivar.h ugen.c uhci.c uhcireg.h uhcivar.h uhid.c uhub.c ukbd.c ulpt.c umass.c ums.c usb.c usb.h usb_mem.h usb_port.h usb_quirks.c usb_subr.c usbcdc.h usbdevs.h usbdevs_data.h usbdi.c usbdi.h ... Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk n_hibma 1999/11/17 14:33:53 PST Modified files: sys/dev/usb hid.c hid.h ohci.c ohcireg.h ohcivar.h ugen.c uhci.c uhcireg.h uhcivar.h uhid.c uhub.c ukbd.c ulpt.c umass.c ums.c usb.c usb.h usb_mem.h usb_port.h usb_quirks.c usb_subr.c usbcdc.h usbdevs.h usbdevs_data.h usbdi.c usbdi.h usbdi_util.c usbdi_util.h usbdivar.h usbhid.h Log: Synchronisation with NetBSD as of 1999/11/16: Cleaning up the code: - Declare many functions static - Change variable names to make them more self explanatory - Change usbd_request_handle -> usbd_xfer_handle - Syntactical changes - Remove some unused code - Other KNF changes Interrupt context handling - Change delay to usbd_delay_ms were possible (takes polling mode into account) - Change detection mechanism for interrupt context Add support for pre-allocation DMA-able memory by device driver Add preliminary support for isochronous to the UHCI driver (not for OHCI yet). usb.c, uhci.c, ohci.c - Initial attempt at detachable USB host controllers - Handle the use_polling flag with a lttle more care and only set it if we are cold booting. usb.c, uhci.c ohci.c, usbdi.c usbdi_util.c usb_subr.c - Make sure an aborted pipe is marked as not running. - Start queued request in the right order. - Insert some more DIAGNOSTIC sanity checks. - Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN. usb.c, usb_subr.c - Add an event mechanism so that a userland process can watch devices come and go. ohci.c - Handle the case when a USB transfer is so long that it crosses two page (4K) boundaries. OHCI cannot do that with a single TD so we make a chain. ulpt.c - Use a bigger buffer when transferring data. - Pre-allocate the DMA buffer. This makes the driver slightly more efficient. - Comment out the GET_DEVICE_ID code, because for some unknown reason it causes printing to fail sometimes. usb.h - Add a macro to extract the isoc type. - Add a macro to check whether the routine has been entered after splusb and if not, complain. usbdi.c - Fix a glitch in dequeueing and aborting requests on interrupt pipes. - Add a flag in the request to determine if the data copying is done by the driver or the usbdi layer. Revision Changes Path 1.11 +12 -12 src/sys/dev/usb/hid.c 1.7 +2 -2 src/sys/dev/usb/hid.h 1.22 +688 -496 src/sys/dev/usb/ohci.c 1.8 +5 -1 src/sys/dev/usb/ohcireg.h 1.13 +12 -13 src/sys/dev/usb/ohcivar.h 1.26 +177 -165 src/sys/dev/usb/ugen.c 1.33 +644 -498 src/sys/dev/usb/uhci.c 1.12 +2 -2 src/sys/dev/usb/uhcireg.h 1.14 +10 -15 src/sys/dev/usb/uhcivar.h 1.22 +58 -56 src/sys/dev/usb/uhid.c 1.18 +126 -186 src/sys/dev/usb/uhub.c 1.20 +9 -10 src/sys/dev/usb/ukbd.c 1.24 +42 -38 src/sys/dev/usb/ulpt.c 1.10 +9 -9 src/sys/dev/usb/umass.c 1.34 +33 -17 src/sys/dev/usb/ums.c 1.20 +333 -120 src/sys/dev/usb/usb.c 1.14 +22 -9 src/sys/dev/usb/usb.h 1.9 +4 -4 src/sys/dev/usb/usb_mem.h 1.21 +42 -19 src/sys/dev/usb/usb_port.h 1.13 +5 -5 src/sys/dev/usb/usb_quirks.c 1.18 +195 -123 src/sys/dev/usb/usb_subr.c 1.7 +2 -2 src/sys/dev/usb/usbcdc.h 1.22 +6 -1 src/sys/dev/usb/usbdevs.h 1.22 +19 -1 src/sys/dev/usb/usbdevs_data.h 1.28 +373 -300 src/sys/dev/usb/usbdi.c 1.18 +24 -20 src/sys/dev/usb/usbdi.h 1.14 +61 -71 src/sys/dev/usb/usbdi_util.c 1.9 +2 -2 src/sys/dev/usb/usbdi_util.h 1.11 +35 -13 src/sys/dev/usb/usbdivar.h 1.7 +2 -2 src/sys/dev/usb/usbhid.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message