Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Extract some definitions from usb_port.h and put...



details:   https://anonhg.NetBSD.org/src/rev/574bafbca9ba
branches:  trunk
changeset: 747169:574bafbca9ba
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Fri Sep 04 17:55:48 2009 +0000

description:
Extract some definitions from usb_port.h and put them into usb.h.

diffstat:

 sys/dev/usb/usb.h      |  55 +++++++++++++++++++++++++++++++++++++++++++++++++-
 sys/dev/usb/usb_port.h |  55 +-------------------------------------------------
 2 files changed, 55 insertions(+), 55 deletions(-)

diffs (138 lines):

diff -r a2d3cb9fd7bd -r 574bafbca9ba sys/dev/usb/usb.h
--- a/sys/dev/usb/usb.h Fri Sep 04 17:53:12 2009 +0000
+++ b/sys/dev/usb/usb.h Fri Sep 04 17:55:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.h,v 1.82 2008/08/02 23:14:34 jmcneill Exp $        */
+/*     $NetBSD: usb.h,v 1.83 2009/09/04 17:55:48 dyoung Exp $  */
 /*     $FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $        */
 
 /*
@@ -41,6 +41,59 @@
 #include <sys/ioctl.h>
 
 #if defined(_KERNEL)
+#include <sys/mallocvar.h>
+
+MALLOC_DECLARE(M_USB);
+MALLOC_DECLARE(M_USBDEV);
+MALLOC_DECLARE(M_USBHC);
+
+#include <sys/device.h>
+
+#endif
+
+#define USB_USE_SOFTINTR
+
+#ifdef USB_DEBUG
+#define UKBD_DEBUG 1
+#define UHIDEV_DEBUG 1
+#define UHID_DEBUG 1
+#define OHCI_DEBUG 1
+#define UGEN_DEBUG 1
+#define UHCI_DEBUG 1
+#define UHUB_DEBUG 1
+#define ULPT_DEBUG 1
+#define UCOM_DEBUG 1
+#define UPLCOM_DEBUG 1
+#define UMCT_DEBUG 1
+#define UMODEM_DEBUG 1
+#define UAUDIO_DEBUG 1
+#define AUE_DEBUG 1
+#define CUE_DEBUG 1
+#define KUE_DEBUG 1
+#define URL_DEBUG 1
+#define UMASS_DEBUG 1
+#define UVISOR_DEBUG 1
+#define UPL_DEBUG 1
+#define UZCOM_DEBUG 1
+#define URIO_DEBUG 1
+#define UFTDI_DEBUG 1
+#define USCANNER_DEBUG 1
+#define USSCANNER_DEBUG 1
+#define EHCI_DEBUG 1
+#define UIRDA_DEBUG 1
+#define USTIR_DEBUG 1
+#define UISDATA_DEBUG 1
+#define UDSBR_DEBUG 1
+#define UBT_DEBUG 1
+#define AXE_DEBUG 1
+#define UIPAQ_DEBUG 1
+#define UCYCOM_DEBUG 1
+#define Static
+#else
+#define Static static
+#endif
+
+#if defined(_KERNEL)
 #include <dev/usb/usb_port.h>
 #endif /* _KERNEL */
 
diff -r a2d3cb9fd7bd -r 574bafbca9ba sys/dev/usb/usb_port.h
--- a/sys/dev/usb/usb_port.h    Fri Sep 04 17:53:12 2009 +0000
+++ b/sys/dev/usb/usb_port.h    Fri Sep 04 17:55:48 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_port.h,v 1.85 2008/06/28 09:06:20 kent Exp $       */
+/*     $NetBSD: usb_port.h,v 1.86 2009/09/04 17:55:48 dyoung Exp $     */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,59 +37,6 @@
  * Macro's to cope with the differences between operating systems.
  */
 
-#if defined(_KERNEL)
-#include <sys/mallocvar.h>
-
-MALLOC_DECLARE(M_USB);
-MALLOC_DECLARE(M_USBDEV);
-MALLOC_DECLARE(M_USBHC);
-
-#include <sys/device.h>
-
-#endif
-
-#define USB_USE_SOFTINTR
-
-#ifdef USB_DEBUG
-#define UKBD_DEBUG 1
-#define UHIDEV_DEBUG 1
-#define UHID_DEBUG 1
-#define OHCI_DEBUG 1
-#define UGEN_DEBUG 1
-#define UHCI_DEBUG 1
-#define UHUB_DEBUG 1
-#define ULPT_DEBUG 1
-#define UCOM_DEBUG 1
-#define UPLCOM_DEBUG 1
-#define UMCT_DEBUG 1
-#define UMODEM_DEBUG 1
-#define UAUDIO_DEBUG 1
-#define AUE_DEBUG 1
-#define CUE_DEBUG 1
-#define KUE_DEBUG 1
-#define URL_DEBUG 1
-#define UMASS_DEBUG 1
-#define UVISOR_DEBUG 1
-#define UPL_DEBUG 1
-#define UZCOM_DEBUG 1
-#define URIO_DEBUG 1
-#define UFTDI_DEBUG 1
-#define USCANNER_DEBUG 1
-#define USSCANNER_DEBUG 1
-#define EHCI_DEBUG 1
-#define UIRDA_DEBUG 1
-#define USTIR_DEBUG 1
-#define UISDATA_DEBUG 1
-#define UDSBR_DEBUG 1
-#define UBT_DEBUG 1
-#define AXE_DEBUG 1
-#define UIPAQ_DEBUG 1
-#define UCYCOM_DEBUG 1
-#define Static
-#else
-#define Static static
-#endif
-
 typedef struct proc *usb_proc_ptr;
 
 typedef device_t device_ptr_t;



Home | Main Index | Thread Index | Old Index