diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-11 20:33:01 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-13 04:42:05 +0000 |
commit | b603fdc462871cea7224d3489ceb1e83fbb12e74 (patch) | |
tree | d1f58bccaa725408f703a2c2683ea29372bca64b /src/include/device/pci.h | |
parent | 5517246a0d254b3628ee435ac00b47eaefa569f6 (diff) |
device/pci_ops: Rename 'where' to 'reg'
One could understand 'where' as bus, device, function
or register. Make it clear it is register.
Change-Id: I95d0330ba40510e48be70ca1d8f58aca66c8f695
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31846
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/include/device/pci.h')
-rw-r--r-- | src/include/device/pci.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/device/pci.h b/src/include/device/pci.h index aa2dd99685..2cfcb60244 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -35,12 +35,12 @@ struct pci_operations { /* Common pci bus operations */ struct pci_bus_operations { - uint8_t (*read8)(const struct device *dev, uint16_t where); - uint16_t (*read16)(const struct device *dev, uint16_t where); - uint32_t (*read32)(const struct device *dev, uint16_t where); - void (*write8)(const struct device *dev, uint16_t where, uint8_t val); - void (*write16)(const struct device *dev, uint16_t where, uint16_t val); - void (*write32)(const struct device *dev, uint16_t where, uint32_t val); + uint8_t (*read8)(const struct device *dev, uint16_t reg); + uint16_t (*read16)(const struct device *dev, uint16_t reg); + uint32_t (*read32)(const struct device *dev, uint16_t reg); + void (*write8)(const struct device *dev, uint16_t reg, uint8_t val); + void (*write16)(const struct device *dev, uint16_t reg, uint16_t val); + void (*write32)(const struct device *dev, uint16_t reg, uint32_t val); }; struct pci_driver { |