Changeset f20f9e2 in mainline
- Timestamp:
- 2011-02-25T16:38:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d37c42
- Parents:
- b4875e6
- Location:
- uspace/drv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/main.c
rb4875e6 rf20f9e2 91 91 int ret = 92 92 pci_get_my_registers(device, &io_reg_base, &io_reg_size, &irq); 93 io_reg_size = sizeof(regs_t); 93 94 94 95 CHECK_RET_RETURN(ret, -
uspace/drv/uhci-rhd/port.c
rb4875e6 rf20f9e2 91 91 assert(port_instance); 92 92 93 /* disable port, to avoid device confusion */ 94 uhci_port_set_enabled(port, false); 95 93 96 while (1) { 94 97 /* read register value */ … … 109 112 } 110 113 114 /* remove any old device */ 115 if (port_instance->attached_device) { 116 uhci_port_remove_device(port_instance); 117 } 118 111 119 if (port_status & STATUS_CONNECTED) { 112 120 /* new device */ 113 121 uhci_port_new_device(port_instance); 114 } else {115 uhci_port_remove_device(port_instance);116 122 } 117 123
Note:
See TracChangeset
for help on using the changeset viewer.