Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
drivers
staging
usbip
userspace
libsrc
usbip_host_driver.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2011 matt mooney <
[email protected]
>
3
* 2005-2007 Takahiro Hirofuchi
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef __USBIP_HOST_DRIVER_H
20
#define __USBIP_HOST_DRIVER_H
21
22
#include <stdint.h>
23
#include "
usbip_common.h
"
24
25
struct
usbip_host_driver
{
26
int
ndevs
;
27
struct
sysfs_driver
*
sysfs_driver
;
28
/* list of exported device */
29
struct
dlist *
edev_list
;
30
};
31
32
struct
usbip_exported_device
{
33
struct
sysfs_device *
sudev
;
34
int32_t
status
;
35
struct
usbip_usb_device
udev
;
36
struct
usbip_usb_interface
uinf
[];
37
};
38
39
extern
struct
usbip_host_driver
*
host_driver
;
40
41
int
usbip_host_driver_open
(
void
);
42
void
usbip_host_driver_close
(
void
);
43
44
int
usbip_host_refresh_device_list
(
void
);
45
int
usbip_host_export_device
(
struct
usbip_exported_device
*edev,
int
sockfd);
46
struct
usbip_exported_device
*
usbip_host_get_device
(
int
num);
47
48
#endif
/* __USBIP_HOST_DRIVER_H */
Generated on Thu Jan 10 2013 14:32:14 for Linux Kernel by
1.8.2