diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-07 11:13:29 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-13 04:39:49 +0000 |
commit | 5517246a0d254b3628ee435ac00b47eaefa569f6 (patch) | |
tree | a040a8cc44100acf080ee0ad458977ca7842517d /src/include/device/pci.h | |
parent | e5869f8ae058fce9baf95d05621f29192402439f (diff) | |
download | coreboot-5517246a0d254b3628ee435ac00b47eaefa569f6.tar.xz |
device/pci_ops: Unify signatures
Use fixed width types and const pointers for dev.
Change-Id: Ide3b70238479ad3e1869ed22aa4fa0f1ff8aa766
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31845
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 2fefb39a92..aa2dd99685 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)(struct device *dev, int where); - uint16_t (*read16)(struct device *dev, int where); - uint32_t (*read32)(struct device *dev, int where); - void (*write8)(struct device *dev, int where, uint8_t val); - void (*write16)(struct device *dev, int where, uint16_t val); - void (*write32)(struct device *dev, int where, uint32_t val); + 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); }; struct pci_driver { |