Changeset 5159ae9 in mainline for uspace/srv/drivers/isa/isa.c


Ignore:
Timestamp:
2010-05-29T08:37:38Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce89036b
Parents:
692c40cb
Message:

Rename 'device_class' structure to a more appropriate 'device_ops'. The device_class structure has nothing in common with the device classes introduced by the previous commit and it evolved to just a set of callback functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/drivers/isa/isa.c

    r692c40cb r5159ae9  
    8787};
    8888
    89 static device_class_t isa_child_class;
     89static device_ops_t isa_child_dev_ops;
    9090
    9191static int isa_add_device(device_t *dev);
     
    449449        }
    450450       
    451         // set a class (including the corresponding set of interfaces) to the device
    452         dev->class = &isa_child_class;
     451        // set device operations to the device
     452        dev->ops = &isa_child_dev_ops;
    453453       
    454454        printf(NAME ": child_device_register(dev, parent); device is %s.\n", dev->name);
     
    487487static void isa_init()
    488488{
    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;
    491490}
    492491
Note: See TracChangeset for help on using the changeset viewer.