Changeset 5159ae9 in mainline for uspace/srv/drivers/isa/isa.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/isa/isa.c
r692c40cb r5159ae9 87 87 }; 88 88 89 static device_ class_t isa_child_class;89 static device_ops_t isa_child_dev_ops; 90 90 91 91 static int isa_add_device(device_t *dev); … … 449 449 } 450 450 451 // set a class (including the corresponding set of interfaces)to the device452 dev-> class = &isa_child_class;451 // set device operations to the device 452 dev->ops = &isa_child_dev_ops; 453 453 454 454 printf(NAME ": child_device_register(dev, parent); device is %s.\n", dev->name); … … 487 487 static void isa_init() 488 488 { 489 isa_child_class.id = 0; // TODO 490 isa_child_class.interfaces[HW_RES_DEV_IFACE] = &isa_child_res_iface; 489 isa_child_dev_ops.interfaces[HW_RES_DEV_IFACE] = &isa_child_res_iface; 491 490 } 492 491
Note:
See TracChangeset
for help on using the changeset viewer.