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


Ignore:
Timestamp:
2010-05-29T08:37:38Z (14 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/pciintel/pci.c

    r692c40cb r5159ae9  
    8282};
    8383
    84 static device_class_t pci_child_class;
     84static device_ops_t pci_child_ops;
    8585
    8686
     
    398398                        pci_read_interrupt(dev);
    399399                       
    400                         dev->class = &pci_child_class;                 
     400                        dev->ops = &pci_child_ops;                     
    401401                       
    402402                        printf(NAME ": adding new child device %s.\n", dev->name);
     
    491491static void pciintel_init()
    492492{
    493         pci_child_class.id = 0; // TODO
    494         pci_child_class.interfaces[HW_RES_DEV_IFACE] = &pciintel_child_res_iface;
     493        pci_child_ops.interfaces[HW_RES_DEV_IFACE] = &pciintel_child_res_iface;
    495494}
    496495
Note: See TracChangeset for help on using the changeset viewer.