Changeset 83a2f43 in mainline for uspace/drv/test2/test2.c
- Timestamp:
- 2011-02-15T19:43:50Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af6b5157
- Parents:
- 34588a80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test2/test2.c
r34588a80 r83a2f43 38 38 #define NAME "test2" 39 39 40 static int test2_add_device(d evice_t *dev);40 static int test2_add_device(ddf_dev_t *dev); 41 41 42 42 static driver_ops_t driver_ops = { … … 57 57 * @param score Device match score. 58 58 */ 59 static int register_fun_verbose(d evice_t *parent, const char *message,59 static int register_fun_verbose(ddf_dev_t *parent, const char *message, 60 60 const char *name, const char *match_id, int match_score) 61 61 { 62 function_t *fun;62 ddf_fun_t *fun; 63 63 int rc; 64 64 … … 92 92 /** Add child devices after some sleep. 93 93 * 94 * @param arg Parent device structure (d evice_t *).94 * @param arg Parent device structure (ddf_dev_t *). 95 95 * @return Always EOK. 96 96 */ 97 97 static int postponed_birth(void *arg) 98 98 { 99 d evice_t *dev = (device_t *) arg;100 function_t *fun_a;99 ddf_dev_t *dev = (ddf_dev_t *) arg; 100 ddf_fun_t *fun_a; 101 101 int rc; 102 102 … … 120 120 } 121 121 122 add_function_to_class(fun_a, "virtual");122 ddf_fun_add_to_class(fun_a, "virtual"); 123 123 124 124 return EOK; 125 125 } 126 126 127 static int test2_add_device(d evice_t *dev)127 static int test2_add_device(ddf_dev_t *dev) 128 128 { 129 129 printf(NAME ": test2_add_device(name=\"%s\", handle=%d)\n", … … 148 148 { 149 149 printf(NAME ": HelenOS test2 virtual device driver\n"); 150 return d river_main(&test2_driver);150 return ddf_driver_main(&test2_driver); 151 151 } 152 152
Note:
See TracChangeset
for help on using the changeset viewer.