Changeset a1347a7 in mainline for uspace/drv/bus/isa/isa.c
- Timestamp:
- 2012-01-15T13:51:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd79281
- Parents:
- 03e0a244 (diff), f302586 (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/bus/isa/isa.c
r03e0a244 ra1347a7 52 52 #include <dirent.h> 53 53 #include <fcntl.h> 54 #include <ipc/irc.h> 55 #include <ipc/services.h> 56 #include <sysinfo.h> 57 #include <ns.h> 54 58 #include <sys/stat.h> 55 59 #include <ipc/irc.h> … … 109 113 sysarg_t apic; 110 114 sysarg_t i8259; 111 115 112 116 async_sess_t *irc_sess = NULL; 113 117 114 118 if (((sysinfo_get_value("apic", &apic) == EOK) && (apic)) 115 119 || ((sysinfo_get_value("i8259", &i8259) == EOK) && (i8259))) { … … 117 121 SERVICE_IRC, 0, 0); 118 122 } 119 123 120 124 if (!irc_sess) 121 125 return false; 122 126 123 127 assert(isa_fun); 124 128 const hw_resource_list_t *res = &isa_fun->hw_resources; … … 127 131 if (res->resources[i].type == INTERRUPT) { 128 132 const int irq = res->resources[i].res.interrupt.irq; 129 133 130 134 async_exch_t *exch = async_exchange_begin(irc_sess); 131 135 const int rc = 132 136 async_req_1_0(exch, IRC_ENABLE_INTERRUPT, irq); 133 137 async_exchange_end(exch); 134 138 135 139 if (rc != EOK) { 136 140 async_hangup(irc_sess); … … 139 143 } 140 144 } 141 145 142 146 async_hangup(irc_sess); 143 147 return true; … … 397 401 398 402 val = skip_spaces(val); 399 irq = (int)strtol(val, &end, 0x10);403 irq = (int)strtol(val, &end, 10); 400 404 401 405 if (val != end)
Note:
See TracChangeset
for help on using the changeset viewer.