Changes in uspace/drv/pciintel/pci.c [dc75234:99e6bfb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/pciintel/pci.c
rdc75234 r99e6bfb 94 94 sysarg_t apic; 95 95 sysarg_t i8259; 96 97 96 int irc_phone = -1; 98 97 int irc_service = 0; … … 104 103 } 105 104 106 if (irc_service == 0) 105 if (irc_service) { 106 while (irc_phone < 0) 107 irc_phone = service_connect_blocking(irc_service, 0, 0); 108 } else { 107 109 return false; 108 109 irc_phone = service_connect_blocking(irc_service, 0, 0); 110 if (irc_phone < 0) 111 return false; 110 } 112 111 113 112 size_t i; … … 115 114 if (dev_data->hw_resources.resources[i].type == INTERRUPT) { 116 115 int irq = dev_data->hw_resources.resources[i].res.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 } 116 async_msg_1(irc_phone, IRC_ENABLE_INTERRUPT, irq); 122 117 } 123 118 }
Note:
See TracChangeset
for help on using the changeset viewer.