Changeset b7fd2a0 in mainline for uspace/drv/intctl/icp-ic
- 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/icp-ic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/icp-ic/icp-ic.c
r36f0738 rb7fd2a0 52 52 }; 53 53 54 static int icpic_enable_irq(icpic_t *icpic, sysarg_t irq)54 static errno_t icpic_enable_irq(icpic_t *icpic, sysarg_t irq) 55 55 { 56 56 if (irq > icpic_max_irq) … … 112 112 113 113 /** Add icp-ic device. */ 114 int icpic_add(icpic_t *icpic, icpic_res_t *res)114 errno_t icpic_add(icpic_t *icpic, icpic_res_t *res) 115 115 { 116 116 ddf_fun_t *fun_a = NULL; 117 117 void *regs; 118 int rc;118 errno_t rc; 119 119 120 120 rc = pio_enable((void *)res->base, sizeof(icpic_regs_t), ®s); … … 153 153 154 154 /** Remove icp-ic device */ 155 int icpic_remove(icpic_t *icpic)155 errno_t icpic_remove(icpic_t *icpic) 156 156 { 157 157 return ENOTSUP; … … 159 159 160 160 /** icp-ic device gone */ 161 int icpic_gone(icpic_t *icpic)161 errno_t icpic_gone(icpic_t *icpic) 162 162 { 163 163 return ENOTSUP; -
uspace/drv/intctl/icp-ic/icp-ic.h
r36f0738 rb7fd2a0 53 53 } icpic_t; 54 54 55 extern int icpic_add(icpic_t *, icpic_res_t *);56 extern int icpic_remove(icpic_t *);57 extern int icpic_gone(icpic_t *);55 extern errno_t icpic_add(icpic_t *, icpic_res_t *); 56 extern errno_t icpic_remove(icpic_t *); 57 extern errno_t icpic_gone(icpic_t *); 58 58 59 59 #endif -
uspace/drv/intctl/icp-ic/main.c
r36f0738 rb7fd2a0 43 43 #define NAME "icp-ic" 44 44 45 static int icpic_dev_add(ddf_dev_t *dev);46 static int icpic_dev_remove(ddf_dev_t *dev);47 static int icpic_dev_gone(ddf_dev_t *dev);48 static int icpic_fun_online(ddf_fun_t *fun);49 static int icpic_fun_offline(ddf_fun_t *fun);45 static errno_t icpic_dev_add(ddf_dev_t *dev); 46 static errno_t icpic_dev_remove(ddf_dev_t *dev); 47 static errno_t icpic_dev_gone(ddf_dev_t *dev); 48 static errno_t icpic_fun_online(ddf_fun_t *fun); 49 static errno_t icpic_fun_offline(ddf_fun_t *fun); 50 50 51 51 static driver_ops_t driver_ops = { … … 62 62 }; 63 63 64 static int icpic_get_res(ddf_dev_t *dev, icpic_res_t *res)64 static errno_t icpic_get_res(ddf_dev_t *dev, icpic_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 icpic_dev_add(ddf_dev_t *dev)92 static errno_t icpic_dev_add(ddf_dev_t *dev) 93 93 { 94 94 icpic_t *icpic; 95 95 icpic_res_t icpic_res; 96 int rc;96 errno_t rc; 97 97 98 98 ddf_msg(LVL_DEBUG, "icpic_dev_add(%p)", dev); … … 114 114 } 115 115 116 static int icpic_dev_remove(ddf_dev_t *dev)116 static errno_t icpic_dev_remove(ddf_dev_t *dev) 117 117 { 118 118 icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev); … … 123 123 } 124 124 125 static int icpic_dev_gone(ddf_dev_t *dev)125 static errno_t icpic_dev_gone(ddf_dev_t *dev) 126 126 { 127 127 icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev); … … 132 132 } 133 133 134 static int icpic_fun_online(ddf_fun_t *fun)134 static errno_t icpic_fun_online(ddf_fun_t *fun) 135 135 { 136 136 ddf_msg(LVL_DEBUG, "icpic_fun_online()"); … … 138 138 } 139 139 140 static int icpic_fun_offline(ddf_fun_t *fun)140 static errno_t icpic_fun_offline(ddf_fun_t *fun) 141 141 { 142 142 ddf_msg(LVL_DEBUG, "icpic_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.
