Changeset 46577995 in mainline for uspace/drv/bus/adb/cuda_adb/main.c
- Timestamp:
- 2018-01-04T20:50:52Z (8 years ago)
- Children:
- e211ea04
- Parents:
- facacc71
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
- File:
-
- 1 edited
-
uspace/drv/bus/adb/cuda_adb/main.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/adb/cuda_adb/main.c
rfacacc71 r46577995 43 43 #define NAME "cuda_adb" 44 44 45 static int cuda_dev_add(ddf_dev_t *dev);46 static int cuda_dev_remove(ddf_dev_t *dev);47 static int cuda_dev_gone(ddf_dev_t *dev);48 static int cuda_fun_online(ddf_fun_t *fun);49 static int cuda_fun_offline(ddf_fun_t *fun);45 static errno_t cuda_dev_add(ddf_dev_t *dev); 46 static errno_t cuda_dev_remove(ddf_dev_t *dev); 47 static errno_t cuda_dev_gone(ddf_dev_t *dev); 48 static errno_t cuda_fun_online(ddf_fun_t *fun); 49 static errno_t cuda_fun_offline(ddf_fun_t *fun); 50 50 51 51 static driver_ops_t driver_ops = { … … 62 62 }; 63 63 64 static int cuda_get_res(ddf_dev_t *dev, cuda_res_t *res)64 static errno_t cuda_get_res(ddf_dev_t *dev, cuda_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); … … 97 97 } 98 98 99 static int cuda_dev_add(ddf_dev_t *dev)99 static errno_t cuda_dev_add(ddf_dev_t *dev) 100 100 { 101 101 cuda_t *cuda; 102 102 cuda_res_t cuda_res; 103 int rc;103 errno_t rc; 104 104 105 105 ddf_msg(LVL_DEBUG, "cuda_dev_add(%p)", dev); … … 122 122 } 123 123 124 static int cuda_dev_remove(ddf_dev_t *dev)124 static errno_t cuda_dev_remove(ddf_dev_t *dev) 125 125 { 126 126 cuda_t *cuda = (cuda_t *)ddf_dev_data_get(dev); … … 131 131 } 132 132 133 static int cuda_dev_gone(ddf_dev_t *dev)133 static errno_t cuda_dev_gone(ddf_dev_t *dev) 134 134 { 135 135 cuda_t *cuda = (cuda_t *)ddf_dev_data_get(dev); … … 140 140 } 141 141 142 static int cuda_fun_online(ddf_fun_t *fun)142 static errno_t cuda_fun_online(ddf_fun_t *fun) 143 143 { 144 144 ddf_msg(LVL_DEBUG, "cuda_fun_online()"); … … 146 146 } 147 147 148 static int cuda_fun_offline(ddf_fun_t *fun)148 static errno_t cuda_fun_offline(ddf_fun_t *fun) 149 149 { 150 150 ddf_msg(LVL_DEBUG, "cuda_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.
