Changeset f20f9e2 in mainline for uspace/drv/uhci-rhd/port.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.