Changeset 89ce401a in mainline for uspace/srv/drivers/pciintel/pci.h
- Timestamp:
- 2010-04-08T10:20:29Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2480e19
- Parents:
- 5e598e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/drivers/pciintel/pci.h
r5e598e0 r89ce401a 74 74 } 75 75 76 static 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 84 void create_pci_match_ids(device_t *dev); 85 76 86 uint8_t pci_conf_read_8(device_t *dev, int reg); 77 87 uint16_t pci_conf_read_16(device_t *dev, int reg);
Note:
See TracChangeset
for help on using the changeset viewer.