Changes in uspace/drv/platform/icp/icp.c [b446b02:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/icp/icp.c
rb446b02 rb7fd2a0 62 62 } icp_fun_t; 63 63 64 static int icp_dev_add(ddf_dev_t *dev);64 static errno_t icp_dev_add(ddf_dev_t *dev); 65 65 66 66 static driver_ops_t icp_ops = { … … 178 178 } 179 179 180 static int icp_fun_enable_interrupt(ddf_fun_t *fnode, int irq)180 static errno_t icp_fun_enable_interrupt(ddf_fun_t *fnode, int irq) 181 181 { 182 182 icp_fun_t *fun = icp_fun(fnode); … … 188 188 } 189 189 190 static int icp_fun_disable_interrupt(ddf_fun_t *fnode, int irq)190 static errno_t icp_fun_disable_interrupt(ddf_fun_t *fnode, int irq) 191 191 { 192 192 icp_fun_t *fun = icp_fun(fnode); … … 198 198 } 199 199 200 static int icp_fun_clear_interrupt(ddf_fun_t *fnode, int irq)200 static errno_t icp_fun_clear_interrupt(ddf_fun_t *fnode, int irq) 201 201 { 202 202 icp_fun_t *fun = icp_fun(fnode); … … 231 231 }; 232 232 233 static int icp_add_fun(ddf_dev_t *dev, const char *name, const char *str_match_id,233 static errno_t icp_add_fun(ddf_dev_t *dev, const char *name, const char *str_match_id, 234 234 icp_fun_t *fun_proto) 235 235 { … … 237 237 238 238 ddf_fun_t *fnode = NULL; 239 int rc;239 errno_t rc; 240 240 241 241 /* Create new device. */ … … 275 275 } 276 276 277 static int icp_add_functions(ddf_dev_t *dev)278 { 279 int rc;277 static errno_t icp_add_functions(ddf_dev_t *dev) 278 { 279 errno_t rc; 280 280 281 281 rc = icp_add_fun(dev, "intctl", "integratorcp/intctl", … … 296 296 297 297 /** Add device. */ 298 static int icp_dev_add(ddf_dev_t *dev)298 static errno_t icp_dev_add(ddf_dev_t *dev) 299 299 { 300 300 ddf_msg(LVL_NOTE, "icp_dev_add, device handle = %d", … … 311 311 int main(int argc, char *argv[]) 312 312 { 313 int rc;313 errno_t rc; 314 314 315 315 printf(NAME ": HelenOS IntegratorCP platform driver\n");
Note:
See TracChangeset
for help on using the changeset viewer.