diff options
author | Antonello Dettori <dev@dettori.io> | 2016-11-08 18:44:46 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-03-23 18:51:58 +0100 |
commit | 823f7bb9622873fb40f4bdb706dcd83298386290 (patch) | |
tree | cb8cf7d636d56252be8303a7d4269c10981e1f36 /src/northbridge/via/vx900/vx900.h | |
parent | a34e70e00216b268891da76b44895d09a84d890a (diff) |
northbridge/via/vx900: transition away from device_t
Replace the use of the old device_t definition inside
northbridge/via/vx900.
Change-Id: I04292a6b698a42a5c582eddcef7cf5a235e1a464
Signed-off-by: Antonello Dettori <dev@dettori.io>
Reviewed-on: https://review.coreboot.org/17317
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/northbridge/via/vx900/vx900.h')
-rw-r--r-- | src/northbridge/via/vx900/vx900.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/northbridge/via/vx900/vx900.h b/src/northbridge/via/vx900/vx900.h index 2590ab2ca3..12e5733e61 100644 --- a/src/northbridge/via/vx900/vx900.h +++ b/src/northbridge/via/vx900/vx900.h @@ -41,6 +41,16 @@ uint64_t get_uma_memory_base(void); /* We use these throughout the code. They really belong in a generic part of * coreboot, but until bureaucracy gets them there, we still need them */ + +#ifdef __SIMPLE_DEVICE__ +void dump_pci_device(pci_devfn_t dev); +void pci_mod_config8(pci_devfn_t dev, unsigned int where, + uint8_t clr_mask, uint8_t set_mask); +void pci_mod_config16(pci_devfn_t dev, unsigned int where, + uint16_t clr_mask, uint16_t set_mask); +void pci_mod_config32(pci_devfn_t dev, unsigned int where, + uint32_t clr_mask, uint32_t set_mask); +#else void dump_pci_device(device_t dev); void pci_mod_config8(device_t dev, unsigned int where, uint8_t clr_mask, uint8_t set_mask); @@ -48,5 +58,6 @@ void pci_mod_config16(device_t dev, unsigned int where, uint16_t clr_mask, uint16_t set_mask); void pci_mod_config32(device_t dev, unsigned int where, uint32_t clr_mask, uint32_t set_mask); +#endif #endif /* __VX900_H */ |