VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbRt.h@ 59743

Last change on this file since 59743 was 56293, checked in by vboxsync, 10 years ago

HostDrivers: Updated (C) year.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/* $Id: VBoxUsbRt.h 56293 2015-06-09 14:23:56Z vboxsync $ */
2/** @file
3 * VBox USB R0 runtime
4 */
5/*
6 * Copyright (C) 2011-2015 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16#ifndef ___VBoxUsbRt_h___
17#define ___VBoxUsbRt_h___
18
19#include "VBoxUsbCmn.h"
20#include "../cmn/VBoxUsbIdc.h"
21
22#define VBOXUSBRT_MAX_CFGS 4
23
24typedef struct VBOXUSB_PIPE_INFO {
25 UCHAR EndpointAddress;
26 ULONG NextScheduledFrame;
27} VBOXUSB_PIPE_INFO;
28
29typedef struct VBOXUSB_IFACE_INFO {
30 USBD_INTERFACE_INFORMATION *pInterfaceInfo;
31 VBOXUSB_PIPE_INFO *pPipeInfo;
32} VBOXUSB_IFACE_INFO;
33
34typedef struct VBOXUSB_RT
35{
36 UNICODE_STRING IfName;
37
38 HANDLE hConfiguration;
39 uint32_t uConfigValue;
40
41 uint32_t uNumInterfaces;
42 USB_DEVICE_DESCRIPTOR *devdescr;
43 USB_CONFIGURATION_DESCRIPTOR *cfgdescr[VBOXUSBRT_MAX_CFGS];
44
45 VBOXUSB_IFACE_INFO *pVBIfaceInfo;
46
47 uint16_t idVendor, idProduct, bcdDevice;
48 char szSerial[MAX_USB_SERIAL_STRING];
49 BOOLEAN fIsHighSpeed;
50
51 HVBOXUSBIDCDEV hMonDev;
52 PFILE_OBJECT pOwner;
53} VBOXUSB_RT, *PVBOXUSB_RT;
54
55typedef struct VBOXUSBRT_IDC
56{
57 PDEVICE_OBJECT pDevice;
58 PFILE_OBJECT pFile;
59} VBOXUSBRT_IDC, *PVBOXUSBRT_IDC;
60
61DECLHIDDEN(NTSTATUS) vboxUsbRtGlobalsInit();
62DECLHIDDEN(VOID) vboxUsbRtGlobalsTerm();
63
64DECLHIDDEN(NTSTATUS) vboxUsbRtInit(PVBOXUSBDEV_EXT pDevExt);
65DECLHIDDEN(VOID) vboxUsbRtClear(PVBOXUSBDEV_EXT pDevExt);
66DECLHIDDEN(NTSTATUS) vboxUsbRtRm(PVBOXUSBDEV_EXT pDevExt);
67DECLHIDDEN(NTSTATUS) vboxUsbRtStart(PVBOXUSBDEV_EXT pDevExt);
68
69DECLHIDDEN(NTSTATUS) vboxUsbRtDispatch(PVBOXUSBDEV_EXT pDevExt, PIRP pIrp);
70DECLHIDDEN(NTSTATUS) vboxUsbRtCreate(PVBOXUSBDEV_EXT pDevExt, PIRP pIrp);
71DECLHIDDEN(NTSTATUS) vboxUsbRtClose(PVBOXUSBDEV_EXT pDevExt, PIRP pIrp);
72
73#endif /* #ifndef ___VBoxUsbRt_h___ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette