Changeset 5a6cc679 in mainline for uspace/drv/intctl/obio
- Timestamp:
- 2018-01-31T02:21:24Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- Location:
- uspace/drv/intctl/obio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/obio/main.c
r132ab5d1 r5a6cc679 43 43 #define NAME "obio" 44 44 45 static int obio_dev_add(ddf_dev_t *dev);46 static int obio_dev_remove(ddf_dev_t *dev);47 static int obio_dev_gone(ddf_dev_t *dev);48 static int obio_fun_online(ddf_fun_t *fun);49 static int obio_fun_offline(ddf_fun_t *fun);45 static errno_t obio_dev_add(ddf_dev_t *dev); 46 static errno_t obio_dev_remove(ddf_dev_t *dev); 47 static errno_t obio_dev_gone(ddf_dev_t *dev); 48 static errno_t obio_fun_online(ddf_fun_t *fun); 49 static errno_t obio_fun_offline(ddf_fun_t *fun); 50 50 51 51 static driver_ops_t driver_ops = { … … 62 62 }; 63 63 64 static int obio_get_res(ddf_dev_t *dev, obio_res_t *res)64 static errno_t obio_get_res(ddf_dev_t *dev, obio_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 obio_dev_add(ddf_dev_t *dev)92 static errno_t obio_dev_add(ddf_dev_t *dev) 93 93 { 94 94 obio_t *obio; 95 95 obio_res_t obio_res; 96 int rc;96 errno_t rc; 97 97 98 98 ddf_msg(LVL_DEBUG, "obio_dev_add(%p)", dev); … … 114 114 } 115 115 116 static int obio_dev_remove(ddf_dev_t *dev)116 static errno_t obio_dev_remove(ddf_dev_t *dev) 117 117 { 118 118 obio_t *obio = (obio_t *)ddf_dev_data_get(dev); … … 123 123 } 124 124 125 static int obio_dev_gone(ddf_dev_t *dev)125 static errno_t obio_dev_gone(ddf_dev_t *dev) 126 126 { 127 127 obio_t *obio = (obio_t *)ddf_dev_data_get(dev); … … 132 132 } 133 133 134 static int obio_fun_online(ddf_fun_t *fun)134 static errno_t obio_fun_online(ddf_fun_t *fun) 135 135 { 136 136 ddf_msg(LVL_DEBUG, "obio_fun_online()"); … … 138 138 } 139 139 140 static int obio_fun_offline(ddf_fun_t *fun)140 static errno_t obio_fun_offline(ddf_fun_t *fun) 141 141 { 142 142 ddf_msg(LVL_DEBUG, "obio_fun_offline()"); -
uspace/drv/intctl/obio/obio.c
r132ab5d1 r5a6cc679 114 114 115 115 /** Add OBIO device. */ 116 int obio_add(obio_t *obio, obio_res_t *res)116 errno_t obio_add(obio_t *obio, obio_res_t *res) 117 117 { 118 118 ddf_fun_t *fun_a = NULL; 119 int rc;119 errno_t rc; 120 120 121 121 rc = pio_enable((void *)res->base, OBIO_SIZE, (void **) &obio->regs); … … 155 155 156 156 /** Remove OBIO device */ 157 int obio_remove(obio_t *obio)157 errno_t obio_remove(obio_t *obio) 158 158 { 159 159 return ENOTSUP; … … 161 161 162 162 /** OBIO device gone */ 163 int obio_gone(obio_t *obio)163 errno_t obio_gone(obio_t *obio) 164 164 { 165 165 return ENOTSUP; -
uspace/drv/intctl/obio/obio.h
r132ab5d1 r5a6cc679 52 52 } obio_t; 53 53 54 extern int obio_add(obio_t *, obio_res_t *);55 extern int obio_remove(obio_t *);56 extern int obio_gone(obio_t *);54 extern errno_t obio_add(obio_t *, obio_res_t *); 55 extern errno_t obio_remove(obio_t *); 56 extern errno_t obio_gone(obio_t *); 57 57 58 58 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
