Changeset b7fd2a0 in mainline for uspace/drv/intctl/apic
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/drv/intctl/apic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/apic/apic.c
r36f0738 rb7fd2a0 140 140 } 141 141 142 static int apic_enable_irq(apic_t *apic, sysarg_t irq)142 static errno_t apic_enable_irq(apic_t *apic, sysarg_t irq) 143 143 { 144 144 io_redirection_reg_t reg; … … 207 207 208 208 /** Add APIC device. */ 209 int apic_add(apic_t *apic, apic_res_t *res)209 errno_t apic_add(apic_t *apic, apic_res_t *res) 210 210 { 211 211 sysarg_t have_apic; 212 212 ddf_fun_t *fun_a = NULL; 213 213 void *regs; 214 int rc;214 errno_t rc; 215 215 216 216 if ((sysinfo_get_value("apic", &have_apic) != EOK) || (!have_apic)) { … … 254 254 255 255 /** Remove APIC device */ 256 int apic_remove(apic_t *apic)256 errno_t apic_remove(apic_t *apic) 257 257 { 258 258 return ENOTSUP; … … 260 260 261 261 /** APIC device gone */ 262 int apic_gone(apic_t *apic)262 errno_t apic_gone(apic_t *apic) 263 263 { 264 264 return ENOTSUP; -
uspace/drv/intctl/apic/apic.h
r36f0738 rb7fd2a0 52 52 } apic_t; 53 53 54 extern int apic_add(apic_t *, apic_res_t *);55 extern int apic_remove(apic_t *);56 extern int apic_gone(apic_t *);54 extern errno_t apic_add(apic_t *, apic_res_t *); 55 extern errno_t apic_remove(apic_t *); 56 extern errno_t apic_gone(apic_t *); 57 57 58 58 #endif -
uspace/drv/intctl/apic/main.c
r36f0738 rb7fd2a0 43 43 #define NAME "apic" 44 44 45 static int apic_dev_add(ddf_dev_t *dev);46 static int apic_dev_remove(ddf_dev_t *dev);47 static int apic_dev_gone(ddf_dev_t *dev);48 static int apic_fun_online(ddf_fun_t *fun);49 static int apic_fun_offline(ddf_fun_t *fun);45 static errno_t apic_dev_add(ddf_dev_t *dev); 46 static errno_t apic_dev_remove(ddf_dev_t *dev); 47 static errno_t apic_dev_gone(ddf_dev_t *dev); 48 static errno_t apic_fun_online(ddf_fun_t *fun); 49 static errno_t apic_fun_offline(ddf_fun_t *fun); 50 50 51 51 static driver_ops_t driver_ops = { … … 62 62 }; 63 63 64 static int apic_get_res(ddf_dev_t *dev, apic_res_t *res)64 static errno_t apic_get_res(ddf_dev_t *dev, apic_res_t *res) 65 65 { 66 66 async_sess_t *parent_sess; 67 67 hw_res_list_parsed_t hw_res; 68 int rc;68 errno_t rc; 69 69 70 70 parent_sess = ddf_dev_parent_sess_get(dev); … … 90 90 } 91 91 92 static int apic_dev_add(ddf_dev_t *dev)92 static errno_t apic_dev_add(ddf_dev_t *dev) 93 93 { 94 94 apic_t *apic; 95 95 apic_res_t apic_res; 96 int rc;96 errno_t rc; 97 97 98 98 ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev); … … 114 114 } 115 115 116 static int apic_dev_remove(ddf_dev_t *dev)116 static errno_t apic_dev_remove(ddf_dev_t *dev) 117 117 { 118 118 apic_t *apic = (apic_t *)ddf_dev_data_get(dev); … … 123 123 } 124 124 125 static int apic_dev_gone(ddf_dev_t *dev)125 static errno_t apic_dev_gone(ddf_dev_t *dev) 126 126 { 127 127 apic_t *apic = (apic_t *)ddf_dev_data_get(dev); … … 132 132 } 133 133 134 static int apic_fun_online(ddf_fun_t *fun)134 static errno_t apic_fun_online(ddf_fun_t *fun) 135 135 { 136 136 ddf_msg(LVL_DEBUG, "apic_fun_online()"); … … 138 138 } 139 139 140 static int apic_fun_offline(ddf_fun_t *fun)140 static errno_t apic_fun_offline(ddf_fun_t *fun) 141 141 { 142 142 ddf_msg(LVL_DEBUG, "apic_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.