Changeset 692c40cb in mainline for uspace/srv/drivers/ns8250/ns8250.c


Ignore:
Timestamp:
2010-05-28T09:04:37Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5159ae9
Parents:
c9f3b45c
Message:

Introduce device classes.Device class specifies functional type of the device. Device classes are identified by their string names (actually device class is just a string value). Device classes can be dynamically added. A device can be added to any number of classes.

File:
1 edited

Legend:

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

    rc9f3b45c r692c40cb  
    760760        dev->class = &ns8250_dev_class;
    761761       
     762        add_device_to_class(dev, "serial");
     763       
    762764        printf(NAME ": the %s device has been successfully initialized.\n", dev->name);
    763765       
Note: See TracChangeset for help on using the changeset viewer.