Changeset 26e7d6d in mainline for uspace/drv/bus/usb/ohci/pci.c
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/pci.c
r3842a955 r26e7d6d 70 70 if (!parent_sess) 71 71 return ENOMEM; 72 72 73 73 hw_resource_list_t hw_resources; 74 74 int rc = hw_res_get_resource_list(parent_sess, &hw_resources); 75 async_hangup(parent_sess); 75 76 if (rc != EOK) { 76 async_hangup(parent_sess);77 77 return rc; 78 78 } 79 79 80 80 uintptr_t mem_address = 0; 81 81 size_t mem_size = 0; 82 82 bool mem_found = false; 83 83 84 84 int irq = 0; 85 85 bool irq_found = false; 86 86 87 87 size_t i; 88 88 for (i = 0; i < hw_resources.count; i++) { … … 107 107 } 108 108 } 109 109 free(hw_resources.resources); 110 110 111 if (mem_found && irq_found) { 111 112 *mem_reg_address = mem_address; 112 113 *mem_reg_size = mem_size; 113 114 *irq_no = irq; 114 rc = EOK; 115 } else 116 rc = ENOENT; 117 118 async_hangup(parent_sess); 119 return rc; 115 return EOK; 116 } 117 return ENOENT; 120 118 } 121 119
Note:
See TracChangeset
for help on using the changeset viewer.