Changeset 92574f4 in mainline for uspace/drv/uhci-hcd/pci.c
- Timestamp:
- 2011-02-24T12:03:27Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e7b7ebd5
- Parents:
- 4837092 (diff), a80849c (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/uhci-hcd/pci.c
r4837092 r92574f4 34 34 * PCI related functions needed by the UHCI driver. 35 35 */ 36 #include "uhci.h"37 36 #include <errno.h> 38 37 #include <assert.h> 39 38 #include <devman.h> 40 39 #include <device/hw_res.h> 40 41 #include "pci.h" 41 42 42 43 /** Get address of registers and IRQ for given device. … … 48 49 * @return Error code. 49 50 */ 50 int pci_get_my_registers(d evice_t *dev,51 int pci_get_my_registers(ddf_dev_t *dev, 51 52 uintptr_t *io_reg_address, size_t *io_reg_size, 52 53 int *irq_no) … … 116 117 rc = EOK; 117 118 leave: 118 ipc_hangup(parent_phone);119 async_hangup(parent_phone); 119 120 120 121 return rc; 121 122 } 123 /*----------------------------------------------------------------------------*/ 124 int pci_enable_interrupts(ddf_dev_t *device) 125 { 126 int parent_phone = devman_parent_device_connect(device->handle, 127 IPC_FLAG_BLOCKING); 128 bool enabled = hw_res_enable_interrupt(parent_phone); 129 return enabled ? EOK : EIO; 130 } 131 /** 132 * @} 133 */ 122 134 123 135 /** 124 136 * @} 125 137 */ 126
Note:
See TracChangeset
for help on using the changeset viewer.