Changeset 97a62fe in mainline for uspace/lib/drv/include/driver.h
- Timestamp:
- 2011-02-14T21:41:50Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cd0684d
- Parents:
- 7df0477e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/driver.h
r7df0477e r97a62fe 115 115 /** Function structure */ 116 116 struct function { 117 /** True if bound to the device manager */ 118 bool bound; 117 119 /** Function indentifier (asigned by device manager) */ 118 120 devman_handle_t handle; … … 157 159 int driver_main(driver_t *); 158 160 159 /** Create new device structure. 160 * 161 * @return The device structure. 162 */ 163 extern function_t *create_function(void); 164 extern void delete_function(function_t *); 161 extern function_t *ddf_fun_create(device_t *, fun_type_t, const char *); 162 extern void ddf_fun_destroy(function_t *); 163 extern int ddf_fun_bind(function_t *); 164 165 165 extern void *function_get_ops(function_t *, dev_inferface_idx_t); 166 166 167 extern int register_function(function_t *, device_t *);168 167 extern int register_function_wrapper(device_t *, const char *, const char *, 169 168 int);
Note:
See TracChangeset
for help on using the changeset viewer.