arch/acpi.h: Use of typedef for acpi_vfct_image_hdr
Use of typedef and modify the usage accordingly. Change-Id: I65581702a60dbd286cb3910c6eeef5f9e1853cf1 Signed-off-by: Himanshu Sahdev <himanshusah@hcl.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36184 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
This commit is contained in:
committed by
Patrick Georgi
parent
bc36e298f9
commit
afd0505033
@@ -251,7 +251,7 @@ typedef struct acpi_madt {
|
|||||||
} __packed acpi_madt_t;
|
} __packed acpi_madt_t;
|
||||||
|
|
||||||
/* VFCT image header */
|
/* VFCT image header */
|
||||||
struct acpi_vfct_image_hdr {
|
typedef struct acpi_vfct_image_hdr {
|
||||||
u32 PCIBus;
|
u32 PCIBus;
|
||||||
u32 PCIDevice;
|
u32 PCIDevice;
|
||||||
u32 PCIFunction;
|
u32 PCIFunction;
|
||||||
@@ -262,7 +262,7 @@ struct acpi_vfct_image_hdr {
|
|||||||
u32 Revision;
|
u32 Revision;
|
||||||
u32 ImageLength;
|
u32 ImageLength;
|
||||||
u8 VbiosContent; // dummy - copy VBIOS here
|
u8 VbiosContent; // dummy - copy VBIOS here
|
||||||
} __packed;
|
} __packed acpi_vfct_image_hdr_t;
|
||||||
|
|
||||||
/* VFCT (VBIOS Fetch Table) */
|
/* VFCT (VBIOS Fetch Table) */
|
||||||
struct acpi_vfct {
|
struct acpi_vfct {
|
||||||
@@ -271,7 +271,7 @@ struct acpi_vfct {
|
|||||||
u32 VBIOSImageOffset;
|
u32 VBIOSImageOffset;
|
||||||
u32 Lib1ImageOffset;
|
u32 Lib1ImageOffset;
|
||||||
u32 Reserved[4];
|
u32 Reserved[4];
|
||||||
struct acpi_vfct_image_hdr image_hdr;
|
acpi_vfct_image_hdr_t image_hdr;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
typedef struct acpi_ivrs_info {
|
typedef struct acpi_ivrs_info {
|
||||||
|
@@ -200,7 +200,7 @@ static unsigned long
|
|||||||
pci_rom_acpi_fill_vfct(struct device *device, struct acpi_vfct *vfct_struct,
|
pci_rom_acpi_fill_vfct(struct device *device, struct acpi_vfct *vfct_struct,
|
||||||
unsigned long current)
|
unsigned long current)
|
||||||
{
|
{
|
||||||
struct acpi_vfct_image_hdr *header = &vfct_struct->image_hdr;
|
acpi_vfct_image_hdr_t *header = &vfct_struct->image_hdr;
|
||||||
struct rom_header *rom;
|
struct rom_header *rom;
|
||||||
|
|
||||||
rom = check_initialized(device);
|
rom = check_initialized(device);
|
||||||
|
Reference in New Issue
Block a user