Changeset cc44f7e in mainline for uspace/drv/uhci-hcd/pci.c
- Timestamp:
- 2011-02-28T13:04:21Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b5644c, 494eaf7, 51b46f2
- Parents:
- 81c508c (diff), dced52a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/pci.c
r81c508c rcc44f7e 38 38 #include <devman.h> 39 39 #include <device/hw_res.h> 40 41 #include <usb/debug.h> 40 42 41 43 #include "pci.h" … … 83 85 irq = res->res.interrupt.irq; 84 86 irq_found = true; 87 usb_log_debug2("Found interrupt: %d.\n", irq); 85 88 break; 86 89 case IO_RANGE: 87 io_address = (uintptr_t) 88 res->res.io_range.address; 90 io_address = res->res.io_range.address; 89 91 io_size = res->res.io_range.size; 92 usb_log_debug2("Found io: %llx %zu.\n", 93 res->res.io_range.address, res->res.io_range.size); 90 94 io_found = true; 91 95 break; … … 105 109 } 106 110 107 if (io_reg_address != NULL) { 108 *io_reg_address = io_address; 109 } 110 if (io_reg_size != NULL) { 111 *io_reg_size = io_size; 112 } 113 if (irq_no != NULL) { 114 *irq_no = irq; 115 } 111 *io_reg_address = io_address; 112 *io_reg_size = io_size; 113 *irq_no = irq; 116 114 117 115 rc = EOK; … … 127 125 IPC_FLAG_BLOCKING); 128 126 bool enabled = hw_res_enable_interrupt(parent_phone); 127 async_hangup(parent_phone); 129 128 return enabled ? EOK : EIO; 130 129 }
Note:
See TracChangeset
for help on using the changeset viewer.