Changeset 89ce401a in mainline for uspace/srv/drivers/pciintel/pci.h


Ignore:
Timestamp:
2010-04-08T10:20:29Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2480e19
Parents:
5e598e0
Message:

fixed some bugs, parts of pci bus enumeration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/drivers/pciintel/pci.h

    r5e598e0 r89ce401a  
    7474}
    7575
     76static inline void create_pci_dev_name(device_t *dev)
     77{
     78        pci_dev_data_t *dev_data = (pci_dev_data_t *)dev->driver_data;
     79        char *name = NULL;
     80        asprintf(&name, "%02x:%02x.%01x", dev_data->bus, dev_data->dev, dev_data->fn);
     81        dev->name = name;
     82}
     83
     84void create_pci_match_ids(device_t *dev);
     85
    7686uint8_t pci_conf_read_8(device_t *dev, int reg);
    7787uint16_t pci_conf_read_16(device_t *dev, int reg);
Note: See TracChangeset for help on using the changeset viewer.