Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vhci_driver.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2007 Takahiro Hirofuchi
3  */
4 
5 #ifndef __VHCI_DRIVER_H
6 #define __VHCI_DRIVER_H
7 
8 #include <sysfs/libsysfs.h>
9 #include <stdint.h>
10 
11 #include "usbip_common.h"
12 
13 #define USBIP_VHCI_BUS_TYPE "platform"
14 #define MAXNPORT 128
15 
19 };
20 
24 
26 
29 
30  /* usbip_class_device list */
31  struct dlist *cdev_list;
33 };
34 
37 
38  /* /sys/devices/platform/vhci_hcd */
39  struct sysfs_device *hc_device;
40 
41  /* usbip_class_device list */
42  struct dlist *cdev_list;
43 
44  int nports;
46 };
47 
48 
49 extern struct usbip_vhci_driver *vhci_driver;
50 
51 int usbip_vhci_driver_open(void);
52 void usbip_vhci_driver_close(void);
53 
55 
56 
57 int usbip_vhci_get_free_port(void);
59  uint32_t speed);
60 
61 /* will be removed */
63  uint8_t devnum, uint32_t speed);
64 
66 
67 #endif /* __VHCI_DRIVER_H */