summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_port.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r--sys/dev/usb/usb_port.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 3045615..52313a1 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -38,6 +38,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _USB_PORT_H
+#define _USB_PORT_H
/*
* Macro's to cope with the differences between operating systems.
@@ -62,6 +64,8 @@
#define Static static
+typedef struct proc *usb_proc_ptr;
+
typedef struct device *device_ptr_t;
#define USBBASEDEVICE struct device
#define USBDEV(bdev) (&(bdev))
@@ -165,6 +169,8 @@ __CONCAT(dname,_detach)(self, flags) \
#define Static static
+typedef struct proc *usb_proc_ptr;
+
#define memcpy(d, s, l) bcopy((s),(d),(l))
#define memset(d, v, l) bzero((d),(l))
#define bswap32(x) swap32(x)
@@ -286,6 +292,8 @@ __CONCAT(dname,_detach)(self, flags) \
#define DECLARE_USB_DMA_T typedef char * usb_dma_t
+typedef struct thread *usb_proc_ptr;
+
/* XXX Change this when FreeBSD has memset */
#define memcpy(d, s, l) bcopy((s),(d),(l))
#define memset(d, v, l) bzero((d),(l))
@@ -396,3 +404,6 @@ __CONCAT(dname,_detach)(device_t self)
#define logprintf printf
#endif /* __FreeBSD__ */
+
+#endif /* _USB_PORT_H */
+
OpenPOWER on IntegriCloud