Changeset 5dd9209 in mainline for uspace/drv/pciintel/pci.c
- Timestamp:
- 2011-03-04T17:19:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3faf416c
- Parents:
- 21bb58d (diff), 969a6ff (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/pciintel/pci.c
r21bb58d r5dd9209 94 94 sysarg_t apic; 95 95 sysarg_t i8259; 96 96 97 int irc_phone = -1; 97 98 int irc_service = 0; … … 103 104 } 104 105 105 if (irc_service) { 106 while (irc_phone < 0) 107 irc_phone = service_connect_blocking(irc_service, 0, 0); 108 } else { 106 if (irc_service == 0) 109 107 return false; 110 } 108 109 irc_phone = service_connect_blocking(irc_service, 0, 0); 110 if (irc_phone < 0) 111 return false; 111 112 112 113 size_t i; … … 114 115 if (dev_data->hw_resources.resources[i].type == INTERRUPT) { 115 116 int irq = dev_data->hw_resources.resources[i].res.interrupt.irq; 116 async_msg_1(irc_phone, IRC_ENABLE_INTERRUPT, irq); 117 int rc = async_req_1_0(irc_phone, IRC_ENABLE_INTERRUPT, irq); 118 if (rc != EOK) { 119 async_hangup(irc_phone); 120 return false; 121 } 117 122 } 118 123 }
Note:
See TracChangeset
for help on using the changeset viewer.