From 1d6a0c4579e82ee537a5528615135a488e463069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 8 Sep 2005 19:58:55 +0000 Subject: [PATCH] Start of big changes in layout of USB code. Fireball and I are agreeing on these changes. Step 1: delete all useless stuff svn path=/trunk/; revision=17745 --- reactos/drivers/usb/miniport/directory.xml | 9 -- .../drivers/usb/miniport/usbehci/usbehci.c | 41 ------ .../drivers/usb/miniport/usbehci/usbehci.h | 44 ------ .../drivers/usb/miniport/usbehci/usbehci.rc | 5 - .../drivers/usb/miniport/usbehci/usbehci.xml | 9 -- .../drivers/usb/miniport/usbohci/usbohci.c | 41 ------ .../drivers/usb/miniport/usbohci/usbohci.h | 44 ------ .../drivers/usb/miniport/usbohci/usbohci.rc | 5 - .../drivers/usb/miniport/usbohci/usbohci.xml | 9 -- .../drivers/usb/miniport/usbuhci/usbuhci.c | 43 ------ .../drivers/usb/miniport/usbuhci/usbuhci.h | 38 ----- .../drivers/usb/miniport/usbuhci/usbuhci.rc | 5 - .../drivers/usb/miniport/usbuhci/usbuhci.xml | 9 -- reactos/drivers/usb/usbhub/usbhub.c | 38 ----- reactos/drivers/usb/usbhub/usbhub.def | 4 - reactos/drivers/usb/usbhub/usbhub.h | 10 -- reactos/drivers/usb/usbhub/usbhub.rc | 5 - reactos/drivers/usb/usbhub/usbhub.xml | 7 - reactos/drivers/usb/usbport/usbport.c | 86 ------------ reactos/drivers/usb/usbport/usbport.def | 8 -- reactos/drivers/usb/usbport/usbport.h | 130 ------------------ reactos/drivers/usb/usbport/usbport.rc | 5 - reactos/drivers/usb/usbport/usbport.xml | 9 -- 23 files changed, 604 deletions(-) delete mode 100644 reactos/drivers/usb/miniport/directory.xml delete mode 100644 reactos/drivers/usb/miniport/usbehci/usbehci.c delete mode 100644 reactos/drivers/usb/miniport/usbehci/usbehci.h delete mode 100644 reactos/drivers/usb/miniport/usbehci/usbehci.rc delete mode 100644 reactos/drivers/usb/miniport/usbehci/usbehci.xml delete mode 100644 reactos/drivers/usb/miniport/usbohci/usbohci.c delete mode 100644 reactos/drivers/usb/miniport/usbohci/usbohci.h delete mode 100644 reactos/drivers/usb/miniport/usbohci/usbohci.rc delete mode 100644 reactos/drivers/usb/miniport/usbohci/usbohci.xml delete mode 100644 reactos/drivers/usb/miniport/usbuhci/usbuhci.c delete mode 100644 reactos/drivers/usb/miniport/usbuhci/usbuhci.h delete mode 100644 reactos/drivers/usb/miniport/usbuhci/usbuhci.rc delete mode 100644 reactos/drivers/usb/miniport/usbuhci/usbuhci.xml delete mode 100644 reactos/drivers/usb/usbhub/usbhub.c delete mode 100644 reactos/drivers/usb/usbhub/usbhub.def delete mode 100644 reactos/drivers/usb/usbhub/usbhub.h delete mode 100644 reactos/drivers/usb/usbhub/usbhub.rc delete mode 100644 reactos/drivers/usb/usbhub/usbhub.xml delete mode 100644 reactos/drivers/usb/usbport/usbport.c delete mode 100644 reactos/drivers/usb/usbport/usbport.def delete mode 100644 reactos/drivers/usb/usbport/usbport.h delete mode 100644 reactos/drivers/usb/usbport/usbport.rc delete mode 100644 reactos/drivers/usb/usbport/usbport.xml diff --git a/reactos/drivers/usb/miniport/directory.xml b/reactos/drivers/usb/miniport/directory.xml deleted file mode 100644 index 10dfe87e55b..00000000000 --- a/reactos/drivers/usb/miniport/directory.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/reactos/drivers/usb/miniport/usbehci/usbehci.c b/reactos/drivers/usb/miniport/usbehci/usbehci.c deleted file mode 100644 index ee9d1d6c13f..00000000000 --- a/reactos/drivers/usb/miniport/usbehci/usbehci.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - * ReactOS USB EHCI miniport driver - * Copyright (C) 2004 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - */ - -/* INCLUDES *******************************************************************/ - -#include "usbehci.h" -#include "../../usbport/usbport.h" - -/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/ - -NTSTATUS STDCALL -DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) -{ - PUSB_CONTROLLER_INTERFACE ControllerInterface; - - USBPORT_AllocateUsbControllerInterface(&ControllerInterface); - - /* - * Set up the list of callbacks here. - * TODO TODO TODO - */ - - return USBPORT_RegisterUSBPortDriver(DriverObject, 0, ControllerInterface); -} diff --git a/reactos/drivers/usb/miniport/usbehci/usbehci.h b/reactos/drivers/usb/miniport/usbehci/usbehci.h deleted file mode 100644 index 9a01dfbaa74..00000000000 --- a/reactos/drivers/usb/miniport/usbehci/usbehci.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * ReactOS USB EHCI miniport driver - * - * Copyright (C) 2004 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#ifndef USBEHCI_H -#define USBEHCI_H - -/* INCLUDES *******************************************************************/ - -#include "stddef.h" -#include "windef.h" -//#include - -#ifdef DBG -#define DPRINT(arg) DbgPrint arg; -#else -#define DPRINT(arg) -#endif - -// Export funcs here -/* -BOOL FASTCALL -VBESetColorRegisters( - PVBE_DEVICE_EXTENSION DeviceExtension, - PVIDEO_CLUT ColorLookUpTable, - PSTATUS_BLOCK StatusBlock); -*/ -#endif /* USBEHCI_H */ diff --git a/reactos/drivers/usb/miniport/usbehci/usbehci.rc b/reactos/drivers/usb/miniport/usbehci/usbehci.rc deleted file mode 100644 index 241bf2b6713..00000000000 --- a/reactos/drivers/usb/miniport/usbehci/usbehci.rc +++ /dev/null @@ -1,5 +0,0 @@ -#define REACTOS_VERSION_DLL -#define REACTOS_STR_FILE_DESCRIPTION "USB EHCI miniport Device Driver\0" -#define REACTOS_STR_INTERNAL_NAME "usbehci\0" -#define REACTOS_STR_ORIGINAL_FILENAME "usbehci.sys\0" -#include diff --git a/reactos/drivers/usb/miniport/usbehci/usbehci.xml b/reactos/drivers/usb/miniport/usbehci/usbehci.xml deleted file mode 100644 index 7de9df86965..00000000000 --- a/reactos/drivers/usb/miniport/usbehci/usbehci.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - include - ntoskrnl - hal - usbport - usbehci.c - usbehci.rc - diff --git a/reactos/drivers/usb/miniport/usbohci/usbohci.c b/reactos/drivers/usb/miniport/usbohci/usbohci.c deleted file mode 100644 index d81e03cbac5..00000000000 --- a/reactos/drivers/usb/miniport/usbohci/usbohci.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - * ReactOS USB OpenHCI miniport driver - * Copyright (C) 2004 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - */ - -/* INCLUDES *******************************************************************/ - -#include "usbohci.h" -#include "../../usbport/usbport.h" - -/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/ - -NTSTATUS STDCALL -DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) -{ - PUSB_CONTROLLER_INTERFACE ControllerInterface; - - USBPORT_AllocateUsbControllerInterface(&ControllerInterface); - - /* - * Set up the list of callbacks here. - * TODO TODO TODO - */ - - return USBPORT_RegisterUSBPortDriver(DriverObject, 0, ControllerInterface); -} diff --git a/reactos/drivers/usb/miniport/usbohci/usbohci.h b/reactos/drivers/usb/miniport/usbohci/usbohci.h deleted file mode 100644 index 277c1233349..00000000000 --- a/reactos/drivers/usb/miniport/usbohci/usbohci.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * ReactOS USB OpenHCI miniport driver - * - * Copyright (C) 2004 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#ifndef USBOHCI_H -#define USBOHCI_H - -/* INCLUDES *******************************************************************/ - -#include "stddef.h" -#include "windef.h" -//#include - -#ifdef DBG -#define DPRINT(arg) DbgPrint arg; -#else -#define DPRINT(arg) -#endif - -// Export funcs here -/* -BOOL FASTCALL -VBESetColorRegisters( - PVBE_DEVICE_EXTENSION DeviceExtension, - PVIDEO_CLUT ColorLookUpTable, - PSTATUS_BLOCK StatusBlock); -*/ -#endif /* USBOHCI_H */ diff --git a/reactos/drivers/usb/miniport/usbohci/usbohci.rc b/reactos/drivers/usb/miniport/usbohci/usbohci.rc deleted file mode 100644 index 2badbbf8b5f..00000000000 --- a/reactos/drivers/usb/miniport/usbohci/usbohci.rc +++ /dev/null @@ -1,5 +0,0 @@ -#define REACTOS_VERSION_DLL -#define REACTOS_STR_FILE_DESCRIPTION "USB OpenHCI miniport Device Driver\0" -#define REACTOS_STR_INTERNAL_NAME "usbohci\0" -#define REACTOS_STR_ORIGINAL_FILENAME "usbohci.sys\0" -#include diff --git a/reactos/drivers/usb/miniport/usbohci/usbohci.xml b/reactos/drivers/usb/miniport/usbohci/usbohci.xml deleted file mode 100644 index abc63d82201..00000000000 --- a/reactos/drivers/usb/miniport/usbohci/usbohci.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - include - ntoskrnl - hal - usbport - usbohci.c - usbohci.rc - diff --git a/reactos/drivers/usb/miniport/usbuhci/usbuhci.c b/reactos/drivers/usb/miniport/usbuhci/usbuhci.c deleted file mode 100644 index 00f76fc5bdc..00000000000 --- a/reactos/drivers/usb/miniport/usbuhci/usbuhci.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * ReactOS USB UHCI miniport driver - * Copyright (C) 2004 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - */ - -/* INCLUDES *******************************************************************/ - -#include "usbuhci.h" -#include "../../usbport/usbport.h" -#include -/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/ - -NTSTATUS STDCALL -DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath) -{ - //return STATUS_SUCCESS; - //DPRINT1("USBUHCI.SYS DriverEntry\n"); - PUSB_CONTROLLER_INTERFACE ControllerInterface; - - USBPORT_AllocateUsbControllerInterface(&ControllerInterface); - - /* - * Set up the list of callbacks here. - * TODO TODO TODO - */ - - return USBPORT_RegisterUSBPortDriver(DriverObject, 0, ControllerInterface); -} diff --git a/reactos/drivers/usb/miniport/usbuhci/usbuhci.h b/reactos/drivers/usb/miniport/usbuhci/usbuhci.h deleted file mode 100644 index 3e68e0f14ba..00000000000 --- a/reactos/drivers/usb/miniport/usbuhci/usbuhci.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * ReactOS USB UHCI miniport driver - * - * Copyright (C) 2004 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#ifndef USBUHCI_H -#define USBUHCI_H - -/* INCLUDES *******************************************************************/ - -#include "stddef.h" -#include "windef.h" -//#include - -// Export funcs here -/* -BOOL FASTCALL -VBESetColorRegisters( - PVBE_DEVICE_EXTENSION DeviceExtension, - PVIDEO_CLUT ColorLookUpTable, - PSTATUS_BLOCK StatusBlock); -*/ -#endif /* USBUHCI_H */ diff --git a/reactos/drivers/usb/miniport/usbuhci/usbuhci.rc b/reactos/drivers/usb/miniport/usbuhci/usbuhci.rc deleted file mode 100644 index fbd26dd2978..00000000000 --- a/reactos/drivers/usb/miniport/usbuhci/usbuhci.rc +++ /dev/null @@ -1,5 +0,0 @@ -#define REACTOS_VERSION_DLL -#define REACTOS_STR_FILE_DESCRIPTION "USB UHCI miniport Device Driver\0" -#define REACTOS_STR_INTERNAL_NAME "usbuhci\0" -#define REACTOS_STR_ORIGINAL_FILENAME "usbuhci.sys\0" -#include diff --git a/reactos/drivers/usb/miniport/usbuhci/usbuhci.xml b/reactos/drivers/usb/miniport/usbuhci/usbuhci.xml deleted file mode 100644 index 82a7f22eaa9..00000000000 --- a/reactos/drivers/usb/miniport/usbuhci/usbuhci.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - include - ntoskrnl - hal - usbport - usbuhci.c - usbuhci.rc - diff --git a/reactos/drivers/usb/usbhub/usbhub.c b/reactos/drivers/usb/usbhub/usbhub.c deleted file mode 100644 index 0fa00dfa4a3..00000000000 --- a/reactos/drivers/usb/usbhub/usbhub.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * ReactOS USB hub driver - * Copyright (C) 2004 Aleksey Bragin - * (C) 2005 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - */ - -/* INCLUDES *******************************************************************/ -#include -#include -#include -#include "../usbport/usbport.h" - -/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/ - -/* - * Standard DriverEntry method. - */ -NTSTATUS STDCALL -DriverEntry(IN PVOID Context1, IN PVOID Context2) -{ - return STATUS_SUCCESS; -} - diff --git a/reactos/drivers/usb/usbhub/usbhub.def b/reactos/drivers/usb/usbhub/usbhub.def deleted file mode 100644 index b1a9fe457c3..00000000000 --- a/reactos/drivers/usb/usbhub/usbhub.def +++ /dev/null @@ -1,4 +0,0 @@ -; -; Exports definition file for usbhub.sys -; -EXPORTS diff --git a/reactos/drivers/usb/usbhub/usbhub.h b/reactos/drivers/usb/usbhub/usbhub.h deleted file mode 100644 index 8dbe83721ab..00000000000 --- a/reactos/drivers/usb/usbhub/usbhub.h +++ /dev/null @@ -1,10 +0,0 @@ -/* - * Declarations for undocumented usbport.sys calls - * - * Written by Mark Tempel - */ - -#ifndef _USBHUB_H -#define _USBHUB_H - -#endif /* _USBHUB_H */ diff --git a/reactos/drivers/usb/usbhub/usbhub.rc b/reactos/drivers/usb/usbhub/usbhub.rc deleted file mode 100644 index 9f253e2e890..00000000000 --- a/reactos/drivers/usb/usbhub/usbhub.rc +++ /dev/null @@ -1,5 +0,0 @@ -#define REACTOS_VERSION_DLL -#define REACTOS_STR_FILE_DESCRIPTION "USB Hub Driver\0" -#define REACTOS_STR_INTERNAL_NAME "usbhub\0" -#define REACTOS_STR_ORIGINAL_FILENAME "usbhub.sys\0" -#include diff --git a/reactos/drivers/usb/usbhub/usbhub.xml b/reactos/drivers/usb/usbhub/usbhub.xml deleted file mode 100644 index 49e482aa381..00000000000 --- a/reactos/drivers/usb/usbhub/usbhub.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - ntoskrnl - hal - usbhub.c - usbhub.rc - diff --git a/reactos/drivers/usb/usbport/usbport.c b/reactos/drivers/usb/usbport/usbport.c deleted file mode 100644 index 8023863bccf..00000000000 --- a/reactos/drivers/usb/usbport/usbport.c +++ /dev/null @@ -1,86 +0,0 @@ -/* - * ReactOS USB Port driver - * Copyright (C) 2004 Aleksey Bragin - * (C) 2005 Mark Tempel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * STATUS: - * 19-Dec-2004 - just a stub for now, but with useful info by Filip - */ - -/* INCLUDES *******************************************************************/ -#include -#include -#include -#include "usbport.h" -#include - -/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/ - -/* -** Standard DriverEntry method. -** We do nothing here. All real work is done in USBPRORT_RegisterUSBPortDriver. -*/ -NTSTATUS STDCALL -DriverEntry(IN PVOID Context1, IN PVOID Context2) -{ - DPRINT1("USBPORT.SYS DriverEntry\n"); - return STATUS_SUCCESS; -} -/* - * This method is used by miniports to connect set up - */ -NTSTATUS STDCALL -USBPORT_RegisterUSBPortDriver(PDRIVER_OBJECT DriverObject, DWORD Unknown1, - PUSB_CONTROLLER_INTERFACE Interface) -{ - DPRINT1("USBPORT_RegisterUSBPortDriver\n"); - ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL); - - return STATUS_SUCCESS; -} - -NTSTATUS STDCALL -USBPORT_GetHciMn(VOID) -{ - return 0x10000001; -} -/* - * This method is to allow miniports to create - */ -NTSTATUS STDCALL -USBPORT_AllocateUsbControllerInterface(OUT PUSB_CONTROLLER_INTERFACE *pControllerInterface) -{ - DPRINT1("USBPORT_AllocateUsbControllerInterface\n"); - ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL); - ASSERT(0 != pControllerInterface); - - *pControllerInterface = (PUSB_CONTROLLER_INTERFACE)ExAllocatePoolWithTag(PagedPool, sizeof(USB_CONTROLLER_INTERFACE),USB_CONTROLLER_INTERFACE_TAG); - RtlZeroMemory(*pControllerInterface, sizeof(USB_CONTROLLER_INTERFACE)); - - return STATUS_SUCCESS; -} - -NTSTATUS STDCALL -USBPORT_FreeUsbControllerInterface(IN PUSB_CONTROLLER_INTERFACE ControllerInterface) -{ - DPRINT1("USBPORT_FreeUsbControllerInterface\n"); - ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL); - - ExFreePool(ControllerInterface); - - return STATUS_SUCCESS; -} diff --git a/reactos/drivers/usb/usbport/usbport.def b/reactos/drivers/usb/usbport/usbport.def deleted file mode 100644 index c647cb15917..00000000000 --- a/reactos/drivers/usb/usbport/usbport.def +++ /dev/null @@ -1,8 +0,0 @@ -; -; Exports definition file for usbport.sys -; -EXPORTS -USBPORT_RegisterUSBPortDriver@12 -USBPORT_GetHciMn@0 -USBPORT_AllocateUsbControllerInterface@4 -USBPORT_FreeUsbControllerInterface@4 \ No newline at end of file diff --git a/reactos/drivers/usb/usbport/usbport.h b/reactos/drivers/usb/usbport/usbport.h deleted file mode 100644 index f62ec43098e..00000000000 --- a/reactos/drivers/usb/usbport/usbport.h +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Declarations for undocumented usbport.sys calls - * - * Written by Filip Navara - * Updates by Mark Tempel - */ - -#ifndef _USBPORT_H -#define _USBPORT_H - -#define USB_CONTROLLER_INTERFACE_TAG 0x001E1E10 - -/**** B E G I N M S I N T E R N A L P R O T O C O L ****/ -typedef DWORD (*POPEN_ENDPOINT)( - DWORD Unknown1, - DWORD Unknown2, - DWORD Unknown3 -); - -typedef NTSTATUS (*PPOKE_ENDPOINT)( - DWORD Unknown1, - DWORD Unknown2, - DWORD Unknown3 -); - -typedef DWORD (*PQUERY_ENDPOINT_REQUIREMENTS)( - DWORD Unknown1, - DWORD Unknown2, - DWORD Unknown3 -); - -typedef VOID (*PCLOSE_ENDPOINT)( - DWORD Unknown1, - DWORD Unknown2 -); - - - -typedef struct { - DWORD Unknown1; /* 2 (UHCI), 3 (EHCI) */ - DWORD Unknown2; /* 2C3 (UHCI), 95 (EHCI) */ - DWORD Unknown3; /* 2EE0 (UHCI), 61A80 (EHCI) */ - DWORD Unknown4; /* - */ - DWORD Unknown5; /* 164 (UHCI), 178 (EHCI) */ - DWORD Unknown6; /* 8C (UHCI), A0 (EHCI) */ - DWORD Unknown7; /* 1C (UHCI), 30 (EHCI) */ /* Offset: 118 */ - DWORD Unknown8; /* - */ - DWORD Unknown9; /* - */ - DWORD Unknown10; /* 2280 (UHCI), 2C800 (EHCI) */ /* Offset: 124 */ - POPEN_ENDPOINT OpenEndpoint; - PPOKE_ENDPOINT PokeEndpoint; - PQUERY_ENDPOINT_REQUIREMENTS QueryEndpointRequirements; - PCLOSE_ENDPOINT CloseEndpoint; - PVOID StartController; /* P00010A1C (2) */ /* Offset: 138 */ - PVOID StopController; /* P00010952 */ /* Offset: 13C */ - PVOID SuspendController; /* P00011584 */ /* Offset: 140 */ - PVOID ResumeController; /* P0001164C */ /* Offset: 144 */ - PVOID InterruptService; /* P00013C72 */ /* Offset: 148 */ - PVOID InterruptDpc; /* P00013D8E */ /* Offset: 14C */ - PVOID SubmitTransfer; /* P00011010 */ /* Offset: 150 */ - PVOID IsochTransfer; /* P000136E8 */ /* Offset: 154 */ - PVOID AbortTransfer; /* P00011092 */ /* Offset: 158 */ - PVOID GetEndpointState; /* P00010F48 */ /* Offset: 15C */ - PVOID SetEndpointState; /* P00010EFA */ /* Offset: 160 */ - PVOID PollEndpoint; /* P00010D32 */ /* Offset: 164 */ - PVOID CheckController; /* P00011794 */ /* Offset: 168 */ - PVOID Get32BitFrameNumber; /* P00010F86 */ /* Offset: 16C */ - PVOID InterruptNextSOF; /* P00013F56 */ /* Offset: 170 */ - PVOID EnableInterrupts; /* P00013ED0 */ /* Offset: 174 */ - PVOID DisableInterrupts; /* P00013E18 */ /* Offset: 178 */ - PVOID PollController; /* P00010FF2 */ /* Offset: 17C */ - PVOID SetEndpointDataToggle; /* P000110E6 */ /* Offset: 180 */ - PVOID GetEndpointStatus; /* P00010ECE */ /* Offset: 184 */ - PVOID SetEndpointStatus; /* P00010E52 */ /* Offset: 188 */ - DWORD Unknown36; /* - */ - PVOID RHGetRootHubData; /* P00011AC6 */ /* Offset: 190 */ - PVOID RHGetStatus; /* P00011B1A */ /* Offset: 194 */ - PVOID RHGetPortStatus; /* P00011BBA */ /* Offset: 198 */ - PVOID RHGetHubStatus; /* P00011B28 */ /* Offset: 19C */ - PVOID RHSetFeaturePortReset; /* P00011F84 */ /* Offset: 1A0 */ - PVOID RHSetFeaturePortPower; /* P00011BB4 */ /* Offset: 1A4 */ - PVOID RHSetFeaturePortEnable; /* P00011BA2 */ /* Offset: 1A8 */ - PVOID RHSetFeaturePortSuspend; /* P00011FF8 */ /* Offset: 1AC */ - PVOID RHClearFeaturePortEnable; /* P00011B90 */ /* Offset: 1B0 */ - PVOID RHClearFeaturePortPower; /* P00011BB4 */ /* Offset: 1B4 */ - PVOID RHClearFeaturePortSuspend; /* P0001210E */ /* Offset: 1B8 */ - PVOID RHClearFeaturePortEnableChange; /* P00012236 */ /* Offset: 1BC */ - PVOID RHClearFeaturePortConnectChange; /* P000121DE */ /* Offset: 1C0 */ - PVOID RHClearFeaturePortResetChange; /* P00012284 */ /* Offset: 1C4 */ - PVOID RHClearFeaturePortSuspendChange; /* P0001229C */ /* Offset: 1C8 */ - PVOID RHClearFeaturePortOvercurrentChange; /* P000122B4 */ /* Offset: 1CC */ - PVOID RHDisableIrq; /* P00013F52 */ /* Offset: 1D0 */ - PVOID RHDisableIrq2; /* P00013F52 */ /* Offset: 1D4 */ - PVOID StartSendOnePacket; /* P00011144 */ /* Offset: 1D8 */ - PVOID EndSendOnePacket; /* P000119B6 */ /* Offset: 1DC */ - PVOID PassThru; /* P000110E0 */ /* Offset: 1E0 */ - DWORD Unknown58[17]; /* - */ - PVOID FlushInterrupts; /* P00013EA0 */ /* Offset: 228 */ - /* ... */ -} USB_CONTROLLER_INTERFACE, *PUSB_CONTROLLER_INTERFACE; -/**** E N D M S I N T E R N A L P R O T O C O L ****/ - -/* - * With this call USB miniport driver registers itself with usbport.sys - * - * Unknown1 - Could be 0x64 or 0xC8. (0x9A also ?) - * Unknown2 - Pointer to structure which contains function entry points - */ -NTSTATUS STDCALL -USBPORT_RegisterUSBPortDriver(PDRIVER_OBJECT DriverObject, DWORD Unknown1, - PUSB_CONTROLLER_INTERFACE Interface); - -/* - * This function always returns 0x10000001 in Windows XP SP1 - */ -NTSTATUS STDCALL -USBPORT_GetHciMn(VOID); - -/* - * This method is provided for miniports to use to allocate their USB_CONTROLLER_INTERFACEs. - */ -NTSTATUS STDCALL -USBPORT_AllocateUsbControllerInterface(OUT PUSB_CONTROLLER_INTERFACE *pControllerInterface); - -/* - * We can't have an allocate without a free. - */ -NTSTATUS STDCALL -USBPORT_FreeUsbControllerInterface(IN PUSB_CONTROLLER_INTERFACE ControllerInterface); -#endif /* _USBPORT_H */ diff --git a/reactos/drivers/usb/usbport/usbport.rc b/reactos/drivers/usb/usbport/usbport.rc deleted file mode 100644 index e8482bb8fc0..00000000000 --- a/reactos/drivers/usb/usbport/usbport.rc +++ /dev/null @@ -1,5 +0,0 @@ -#define REACTOS_VERSION_DLL -#define REACTOS_STR_FILE_DESCRIPTION "USB Port Driver\0" -#define REACTOS_STR_INTERNAL_NAME "usbport\0" -#define REACTOS_STR_ORIGINAL_FILENAME "usbport.sys\0" -#include diff --git a/reactos/drivers/usb/usbport/usbport.xml b/reactos/drivers/usb/usbport/usbport.xml deleted file mode 100644 index 7691cdf75da..00000000000 --- a/reactos/drivers/usb/usbport/usbport.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - include - ntoskrnl - hal - usbport.c - usbport.rc -