Changeset 83a2f43 in mainline for uspace/drv/rootpc/rootpc.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/rootpc/rootpc.c
r34588a80 r83a2f43 62 62 } rootpc_fun_t; 63 63 64 static int rootpc_add_device(d evice_t *dev);64 static int rootpc_add_device(ddf_dev_t *dev); 65 65 static void root_pc_init(void); 66 66 … … 92 92 }; 93 93 94 static hw_resource_list_t *rootpc_get_resources( function_t *fnode)94 static hw_resource_list_t *rootpc_get_resources(ddf_fun_t *fnode) 95 95 { 96 96 rootpc_fun_t *fun = ROOTPC_FUN(fnode); … … 100 100 } 101 101 102 static bool rootpc_enable_interrupt( function_t *fun)102 static bool rootpc_enable_interrupt(ddf_fun_t *fun) 103 103 { 104 104 /* TODO */ … … 113 113 114 114 /* Initialized in root_pc_init() function. */ 115 static d evice_ops_t rootpc_fun_ops;115 static ddf_dev_ops_t rootpc_fun_ops; 116 116 117 117 static bool 118 rootpc_add_fun(d evice_t *dev, const char *name, const char *str_match_id,118 rootpc_add_fun(ddf_dev_t *dev, const char *name, const char *str_match_id, 119 119 rootpc_fun_t *fun) 120 120 { 121 121 printf(NAME ": adding new function '%s'.\n", name); 122 122 123 function_t *fnode = NULL;123 ddf_fun_t *fnode = NULL; 124 124 match_id_t *match_id = NULL; 125 125 … … 164 164 } 165 165 166 static bool rootpc_add_functions(d evice_t *dev)166 static bool rootpc_add_functions(ddf_dev_t *dev) 167 167 { 168 168 return rootpc_add_fun(dev, "pci0", "intel_pci", &pci_data); … … 175 175 * @return Zero on success, negative error number otherwise. 176 176 */ 177 static int rootpc_add_device(d evice_t *dev)177 static int rootpc_add_device(ddf_dev_t *dev) 178 178 { 179 179 printf(NAME ": rootpc_add_device, device handle = %d\n", … … 197 197 printf(NAME ": HelenOS PC platform driver\n"); 198 198 root_pc_init(); 199 return d river_main(&rootpc_driver);199 return ddf_driver_main(&rootpc_driver); 200 200 } 201 201
Note:
See TracChangeset
for help on using the changeset viewer.