Changeset 8986412 in mainline
- Timestamp:
- 2011-04-23T10:26:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 564a2b3, f7ccf46
- Parents:
- 302a4b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/hc.c
r302a4b6 r8986412 44 44 #include "hc.h" 45 45 46 #define UHCI_ STATUS_ALLOW_INTERRUPTS \46 #define UHCI_INTR_ALLOW_INTERRUPTS \ 47 47 (UHCI_INTR_CRC | UHCI_INTR_COMPLETE | UHCI_INTR_SHORT_PACKET) 48 #define UHCI_STATUS_USED_INTERRUPTS \ 49 (UHCI_STATUS_INTERRUPT | UHCI_STATUS_ERROR_INTERRUPT) 48 50 49 51 … … 139 141 /* Enable all interrupts, but resume interrupt */ 140 142 pio_write_16(&instance->registers->usbintr, 141 UHCI_ STATUS_ALLOW_INTERRUPTS);143 UHCI_INTR_ALLOW_INTERRUPTS); 142 144 } 143 145 … … 183 185 instance->interrupt_commands[1].cmd = CMD_BTEST; 184 186 instance->interrupt_commands[1].value = 185 UHCI_STATUS_ ALLOW_INTERRUPTS | UHCI_STATUS_NM_INTERRUPTS;187 UHCI_STATUS_USED_INTERRUPTS | UHCI_STATUS_NM_INTERRUPTS; 186 188 instance->interrupt_commands[1].srcarg = 1; 187 189 instance->interrupt_commands[1].dstarg = 2; … … 332 334 { 333 335 assert(instance); 334 usb_log_info("Got interrupt: %x.\n", status);335 336 /* Lower 2 bits are transaction error and transaction complete */ 336 337 if (status & (UHCI_STATUS_INTERRUPT | UHCI_STATUS_ERROR_INTERRUPT)) {
Note:
See TracChangeset
for help on using the changeset viewer.