soc/intel/*: Update data types for variables holding PCH_DEVFN_* macros

The usage of `pci_devfn_t` here is misleading, as these intentionally
store the `PCH_DEVFN_*` macros so they can be used across `smm` and
`ramstage` without requiring the device model. Update to `unsigned int`
instead, as `pci_devfn_t` implies the data is an MMCONF-compatible PCI
devfn offset.

Change-Id: Ic8880de984e6eceda4cbe141e118f3a5fdd672a2
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52808
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Tim Wawrzynczak 2021-04-30 13:47:04 -06:00
parent 93982c3a6e
commit b1623f23c0
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
#include <types.h> #include <types.h>
struct pme_map { struct pme_map {
pci_devfn_t devfn; unsigned int devfn;
unsigned int wake_source; unsigned int wake_source;
}; };

View File

@ -12,7 +12,7 @@
#include <types.h> #include <types.h>
struct pme_map { struct pme_map {
pci_devfn_t devfn; unsigned int devfn;
unsigned int wake_source; unsigned int wake_source;
}; };

View File

@ -26,7 +26,7 @@ static void pch_log_gpio_gpe(u32 gpe0_sts, u32 gpe0_en, int start)
} }
struct pme_status_info { struct pme_status_info {
pci_devfn_t devfn; unsigned int devfn;
uint8_t reg_offset; uint8_t reg_offset;
uint32_t elog_event; uint32_t elog_event;
}; };

View File

@ -12,7 +12,7 @@
#include <types.h> #include <types.h>
struct pme_map { struct pme_map {
pci_devfn_t devfn; unsigned int devfn;
unsigned int wake_source; unsigned int wake_source;
}; };