Changeset 6495e71 in mainline
- Timestamp:
- 2011-02-25T16:04:33Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4875e6
- Parents:
- 6cbe7dad
- Location:
- uspace/drv/uhci-hcd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/main.c
r6cbe7dad r6495e71 61 61 }; 62 62 /*----------------------------------------------------------------------------*/ 63 #ifdef USE_INTERRUPTS 63 64 static void irq_handler(ddf_dev_t *dev, ipc_callid_t iid, ipc_call_t *call) 64 65 { … … 69 70 uhci_interrupt(hc, status); 70 71 } 72 #endif 71 73 /*----------------------------------------------------------------------------*/ 72 74 #define CHECK_RET_RETURN(ret, message...) \ … … 95 97 io_reg_base, io_reg_size, irq); 96 98 99 #ifdef USE_INTERRUPTS 97 100 ret = pci_enable_interrupts(device); 98 101 CHECK_RET_RETURN(ret, "Failed(%d) to get enable interrupts:\n", ret); 102 #endif 99 103 100 104 uhci_t *uhci_hc = malloc(sizeof(uhci_t)); … … 114 118 */ 115 119 device->driver_data = uhci_hc; 116 120 #ifdef USE_INTERRUPTS 117 121 ret = register_interrupt_handler(device, irq, irq_handler, 118 122 &uhci_hc->interrupt_code); … … 123 127 return ret; 124 128 } 129 #endif 125 130 126 131 ddf_fun_t *rh; -
uspace/drv/uhci-hcd/uhci.c
r6cbe7dad r6495e71 141 141 142 142 instance->cleaner = fibril_create(uhci_interrupt_emulator, instance); 143 // fibril_add_ready(instance->cleaner); 143 #ifndef USE_INTERRUTPS 144 fibril_add_ready(instance->cleaner); 145 #endif 144 146 145 147 instance->debug_checker = fibril_create(uhci_debug_checker, instance); … … 294 296 uint16_t status = pio_read_16(&instance->registers->usbsts); 295 297 uhci_interrupt(instance, status); 298 pio_write_16(&instance->registers->usbsts, 0x1f); 296 299 async_usleep(UHCI_CLEANER_TIMEOUT); 297 300 }
Note:
See TracChangeset
for help on using the changeset viewer.