Changeset 83a2f43 in mainline for uspace/drv/test1/test1.c
- Timestamp:
- 2011-02-15T19:43:50Z (13 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/test1/test1.c
r34588a80 r83a2f43 36 36 #include "test1.h" 37 37 38 static int test1_add_device(d evice_t *dev);38 static int test1_add_device(ddf_dev_t *dev); 39 39 40 40 static driver_ops_t driver_ops = { … … 55 55 * @param score Device match score. 56 56 */ 57 static int register_fun_verbose(d evice_t *parent, const char *message,57 static int register_fun_verbose(ddf_dev_t *parent, const char *message, 58 58 const char *name, const char *match_id, int match_score) 59 59 { 60 function_t *fun;60 ddf_fun_t *fun; 61 61 int rc; 62 62 … … 105 105 * @return Error code reporting success of the operation. 106 106 */ 107 static int test1_add_device(d evice_t *dev)107 static int test1_add_device(ddf_dev_t *dev) 108 108 { 109 function_t *fun_a;109 ddf_fun_t *fun_a; 110 110 int rc; 111 111 … … 125 125 } 126 126 127 add_function_to_class(fun_a, "virtual");127 ddf_fun_add_to_class(fun_a, "virtual"); 128 128 129 129 if (str_cmp(dev->name, "null") == 0) { 130 130 fun_a->ops = &char_device_ops; 131 add_function_to_class(fun_a, "virt-null");131 ddf_fun_add_to_class(fun_a, "virt-null"); 132 132 } else if (str_cmp(dev->name, "test1") == 0) { 133 133 (void) register_fun_verbose(dev, "cloning myself ;-)", "clone", … … 146 146 { 147 147 printf(NAME ": HelenOS test1 virtual device driver\n"); 148 return d river_main(&test1_driver);148 return ddf_driver_main(&test1_driver); 149 149 } 150 150
Note:
See TracChangeset
for help on using the changeset viewer.