mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +00:00
[USBOHCI_NEW][USBUHCI_NEW] Avoid unnecessary/incorrect status defines.
This commit is contained in:
parent
7e95aebfda
commit
d6d6b329be
4 changed files with 2 additions and 5 deletions
|
@ -49,8 +49,6 @@
|
||||||
#define OHCI_TD_CONDITION_BUFFER_UNDERRUN 0x0D
|
#define OHCI_TD_CONDITION_BUFFER_UNDERRUN 0x0D
|
||||||
#define OHCI_TD_CONDITION_NOT_ACCESSED 0x0E
|
#define OHCI_TD_CONDITION_NOT_ACCESSED 0x0E
|
||||||
|
|
||||||
#define OHCI_RH_STATUS_GOOD 1
|
|
||||||
|
|
||||||
typedef union _OHCI_TRANSFER_CONTROL {
|
typedef union _OHCI_TRANSFER_CONTROL {
|
||||||
struct {
|
struct {
|
||||||
ULONG Reserved : 18;
|
ULONG Reserved : 18;
|
||||||
|
|
|
@ -97,7 +97,7 @@ OHCI_RH_GetStatus(IN PVOID ohciExtension,
|
||||||
IN PUSHORT Status)
|
IN PUSHORT Status)
|
||||||
{
|
{
|
||||||
DPRINT("OHCI_RH_GetStatus: \n");
|
DPRINT("OHCI_RH_GetStatus: \n");
|
||||||
*Status = OHCI_RH_STATUS_GOOD;
|
*Status = USB_GETSTATUS_SELF_POWERED;
|
||||||
return MP_STATUS_SUCCESS;
|
return MP_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ UhciRHGetStatus(IN PVOID uhciExtension,
|
||||||
IN PUSHORT Status)
|
IN PUSHORT Status)
|
||||||
{
|
{
|
||||||
DPRINT("UhciRHGetStatus: ...\n");
|
DPRINT("UhciRHGetStatus: ...\n");
|
||||||
*Status = UHCI_RH_STATUS_SUCCESS;
|
*Status = USB_GETSTATUS_SELF_POWERED;
|
||||||
return MP_STATUS_SUCCESS;
|
return MP_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
extern USBPORT_REGISTRATION_PACKET RegPacket;
|
extern USBPORT_REGISTRATION_PACKET RegPacket;
|
||||||
|
|
||||||
#define UHCI_MAX_HC_SCHEDULE_ERRORS 16
|
#define UHCI_MAX_HC_SCHEDULE_ERRORS 16
|
||||||
#define UHCI_RH_STATUS_SUCCESS 1
|
|
||||||
|
|
||||||
#define UHCI_MAX_ISO_TRANSFER_SIZE 0x10000
|
#define UHCI_MAX_ISO_TRANSFER_SIZE 0x10000
|
||||||
#define UHCI_MAX_BULK_TRANSFER_SIZE 0x1000
|
#define UHCI_MAX_BULK_TRANSFER_SIZE 0x1000
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue