~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/usb/usbip/libsrc/vhci_driver.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Copyright (C) 2005-2007 Takahiro Hirofuchi
  4  */
  5 
  6 #ifndef __VHCI_DRIVER_H
  7 #define __VHCI_DRIVER_H
  8 
  9 #include <libudev.h>
 10 #include <stdint.h>
 11 
 12 #include "usbip_common.h"
 13 
 14 #define USBIP_VHCI_BUS_TYPE "platform"
 15 #define USBIP_VHCI_DEVICE_NAME "vhci_hcd.0"
 16 
 17 enum hub_speed {
 18         HUB_SPEED_HIGH = 0,
 19         HUB_SPEED_SUPER,
 20 };
 21 
 22 struct usbip_imported_device {
 23         enum hub_speed hub;
 24         uint8_t port;
 25         uint32_t status;
 26 
 27         uint32_t devid;
 28 
 29         uint8_t busnum;
 30         uint8_t devnum;
 31 
 32         /* usbip_class_device list */
 33         struct usbip_usb_device udev;
 34 };
 35 
 36 struct usbip_vhci_driver {
 37 
 38         /* /sys/devices/platform/vhci_hcd */
 39         struct udev_device *hc_device;
 40 
 41         int ncontrollers;
 42         int nports;
 43         struct usbip_imported_device idev[];
 44 };
 45 
 46 
 47 extern struct usbip_vhci_driver *vhci_driver;
 48 
 49 int usbip_vhci_driver_open(void);
 50 void usbip_vhci_driver_close(void);
 51 
 52 int  usbip_vhci_refresh_device_list(void);
 53 
 54 
 55 int usbip_vhci_get_free_port(uint32_t speed);
 56 int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
 57                 uint32_t speed);
 58 
 59 /* will be removed */
 60 int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum,
 61                 uint8_t devnum, uint32_t speed);
 62 
 63 int usbip_vhci_detach_device(uint8_t port);
 64 
 65 int usbip_vhci_imported_device_dump(struct usbip_imported_device *idev);
 66 
 67 #endif /* __VHCI_DRIVER_H */
 68 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php