Changes in uspace/lib/drv/include/ddf/driver.h [2fd26bb:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/ddf/driver.h
r2fd26bb rb7fd2a0 56 56 * device. 57 57 */ 58 int (*open)(ddf_fun_t *);58 errno_t (*open)(ddf_fun_t *); 59 59 60 60 /** … … 88 88 typedef struct driver_ops { 89 89 /** Callback method for passing a new device to the device driver */ 90 int (*dev_add)(ddf_dev_t *);90 errno_t (*dev_add)(ddf_dev_t *); 91 91 92 92 /** Ask driver to remove a device */ 93 int (*dev_remove)(ddf_dev_t *);93 errno_t (*dev_remove)(ddf_dev_t *); 94 94 95 95 /** Inform driver a device disappeared */ 96 int (*dev_gone)(ddf_dev_t *);96 errno_t (*dev_gone)(ddf_dev_t *); 97 97 98 98 /** Ask driver to online a specific function */ 99 int (*fun_online)(ddf_fun_t *);99 errno_t (*fun_online)(ddf_fun_t *); 100 100 101 101 /** Ask driver to offline a specific function */ 102 int (*fun_offline)(ddf_fun_t *);102 errno_t (*fun_offline)(ddf_fun_t *); 103 103 } driver_ops_t; 104 104 … … 124 124 extern void *ddf_fun_data_get(ddf_fun_t *); 125 125 extern const char *ddf_fun_get_name(ddf_fun_t *); 126 extern int ddf_fun_set_name(ddf_fun_t *, const char *);126 extern errno_t ddf_fun_set_name(ddf_fun_t *, const char *); 127 127 extern ddf_dev_t *ddf_fun_get_dev(ddf_fun_t *); 128 extern int ddf_fun_bind(ddf_fun_t *);129 extern int ddf_fun_unbind(ddf_fun_t *);130 extern int ddf_fun_online(ddf_fun_t *);131 extern int ddf_fun_offline(ddf_fun_t *);132 extern int ddf_fun_add_match_id(ddf_fun_t *, const char *, int);128 extern errno_t ddf_fun_bind(ddf_fun_t *); 129 extern errno_t ddf_fun_unbind(ddf_fun_t *); 130 extern errno_t ddf_fun_online(ddf_fun_t *); 131 extern errno_t ddf_fun_offline(ddf_fun_t *); 132 extern errno_t ddf_fun_add_match_id(ddf_fun_t *, const char *, int); 133 133 extern void ddf_fun_set_ops(ddf_fun_t *, const ddf_dev_ops_t *); 134 134 extern void ddf_fun_set_conn_handler(ddf_fun_t *, async_port_handler_t); 135 extern int ddf_fun_add_to_category(ddf_fun_t *, const char *);135 extern errno_t ddf_fun_add_to_category(ddf_fun_t *, const char *); 136 136 137 137 #endif
Note:
See TracChangeset
for help on using the changeset viewer.