Merge pull request #3286 from Cacodemon345/usb-work
OHCI: HcHCCA's lower 8 bits are always zero
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* USB Host Controller device struct */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
uint8_t uhci_io[32], ohci_mmio[4096];
|
uint8_t uhci_io[32], ohci_mmio[4096];
|
||||||
@@ -31,6 +32,13 @@ typedef struct
|
|||||||
mem_mapping_t ohci_mmio_mapping;
|
mem_mapping_t ohci_mmio_mapping;
|
||||||
} usb_t;
|
} usb_t;
|
||||||
|
|
||||||
|
/* USB endpoint device struct. Incomplete and unused. */
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
uint16_t vendor_id;
|
||||||
|
uint16_t device_id;
|
||||||
|
} usb_device_t;
|
||||||
|
|
||||||
/* Global variables. */
|
/* Global variables. */
|
||||||
extern const device_t usb_device;
|
extern const device_t usb_device;
|
||||||
|
|
||||||
|
@@ -208,6 +208,8 @@ ohci_mmio_write(uint32_t addr, uint8_t val, void *p)
|
|||||||
val &= ~0x01;
|
val &= ~0x01;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case OHCI_HcHCCA:
|
||||||
|
return;
|
||||||
case OHCI_HcInterruptStatus:
|
case OHCI_HcInterruptStatus:
|
||||||
dev->ohci_mmio[addr] &= ~(val & 0x7f);
|
dev->ohci_mmio[addr] &= ~(val & 0x7f);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user