Changeset 5159ae9 in mainline for uspace/srv/drivers/rootia32/rootia32.c
- Timestamp:
- 2010-05-29T08:37:38Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce89036b
- Parents:
- 692c40cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/drivers/rootia32/rootia32.c
r692c40cb r5159ae9 113 113 114 114 // initialized in root_ia32_init() function 115 static device_ class_t rootia32_child_class;115 static device_ops_t rootia32_child_ops; 116 116 117 117 static bool rootia32_add_child( … … 140 140 add_match_id(&child->match_ids, match_id); 141 141 142 // set class to the device143 child-> class = &rootia32_child_class;142 // set provided operations to the device 143 child->ops = &rootia32_child_ops; 144 144 145 145 // register child device … … 188 188 189 189 static void root_ia32_init() { 190 // initialize child device class 191 rootia32_child_class.id = 0; // TODO 192 rootia32_child_class.interfaces[HW_RES_DEV_IFACE] = &child_res_iface; 190 rootia32_child_ops.interfaces[HW_RES_DEV_IFACE] = &child_res_iface; 193 191 } 194 192
Note:
See TracChangeset
for help on using the changeset viewer.