Changeset 3005db6 in mainline for uspace/drv/uhci-rhd/port.c
- Timestamp:
- 2011-03-11T13:51:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab5a43d1
- Parents:
- 0c8562c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
r0c8562c r3005db6 123 123 124 124 /* read register value */ 125 port_status_t port_status = port_status_read(instance->address);125 port_status_t port_status = uhci_port_read_status(instance); 126 126 127 127 /* debug print mutex */ … … 131 131 usb_log_debug2("Port(%p - %d): Status: %#04x. === %u\n", 132 132 instance->address, instance->number, port_status, count++); 133 // print_port_status(port_status);133 print_port_status("Port", port_status); 134 134 fibril_mutex_unlock(&dbg_mtx); 135 135 … … 163 163 } else { 164 164 /* Write one to WC bits, to ack changes */ 165 port_status_write(instance->address, port_status);165 uhci_port_write_status(instance, port_status); 166 166 usb_log_debug("Port(%p - %d): Change status ACK.\n", 167 167 instance->address, instance->number); … … 203 203 usb_log_debug("Port(%p - %d): Reset Signal start.\n", 204 204 port->address, port->number); 205 port_status_t port_status = 206 port_status_read(port->address); 205 port_status_t port_status = uhci_port_read_status(port); 207 206 port_status |= STATUS_IN_RESET; 208 port_status_write(port->address, port_status);207 uhci_port_write_status(port, port_status); 209 208 async_usleep(10000); 210 port_status = port_status_read(port->address);209 port_status = uhci_port_read_status(port); 211 210 port_status &= ~STATUS_IN_RESET; 212 port_status_write(port->address, port_status);211 uhci_port_write_status(port, port_status); 213 212 usb_log_debug("Port(%p - %d): Reset Signal stop.\n", 214 213 port->address, port->number); … … 278 277 279 278 /* Read register value */ 280 port_status_t port_status = port_status_read(port->address);279 port_status_t port_status = uhci_port_read_status(port); 281 280 282 281 /* Set enabled bit */ … … 288 287 289 288 /* Write new value. */ 290 port_status_write(port->address, port_status);289 uhci_port_write_status(port, port_status); 291 290 292 291 usb_log_info("Port(%p-%d): %sabled port.\n",
Note:
See TracChangeset
for help on using the changeset viewer.