Commit 712a270d authored by Helge Deller's avatar Helge Deller

parisc: Fix pdc_toc_pim_11 and pdc_toc_pim_20 definitions

The definitions for pdc_toc_pim_11 and pdc_toc_pim_20 are wrong since they
include an entry for a hversion field which doesn't exist in the specification.

Fix this and clean up some whitespaces so that the whole file will be in
sync with it's copy in the SeaBIOS-hppa sources.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v5.16
parent 72c3dd82
...@@ -403,7 +403,7 @@ struct zeropage { ...@@ -403,7 +403,7 @@ struct zeropage {
int vec_pad1[6]; int vec_pad1[6];
/* [0x040] reserved processor dependent */ /* [0x040] reserved processor dependent */
int pad0[112]; int pad0[112]; /* in QEMU pad0[0] holds "SeaBIOS\0" */
/* [0x200] reserved */ /* [0x200] reserved */
int pad1[84]; int pad1[84];
...@@ -691,6 +691,22 @@ struct pdc_hpmc_pim_20 { /* PDC_PIM */ ...@@ -691,6 +691,22 @@ struct pdc_hpmc_pim_20 { /* PDC_PIM */
unsigned long long fr[32]; unsigned long long fr[32];
}; };
struct pim_cpu_state_cf {
union {
unsigned int
iqv : 1, /* IIA queue Valid */
iqf : 1, /* IIA queue Failure */
ipv : 1, /* IPRs Valid */
grv : 1, /* GRs Valid */
crv : 1, /* CRs Valid */
srv : 1, /* SRs Valid */
trv : 1, /* CR24 through CR31 valid */
pad : 24, /* reserved */
td : 1; /* TOC did not cause any damage to the system state */
unsigned int val;
};
};
struct pdc_toc_pim_11 { struct pdc_toc_pim_11 {
unsigned int gr[32]; unsigned int gr[32];
unsigned int cr[32]; unsigned int cr[32];
...@@ -698,8 +714,7 @@ struct pdc_toc_pim_11 { ...@@ -698,8 +714,7 @@ struct pdc_toc_pim_11 {
unsigned int iasq_back; unsigned int iasq_back;
unsigned int iaoq_back; unsigned int iaoq_back;
unsigned int check_type; unsigned int check_type;
unsigned int hversion; struct pim_cpu_state_cf cpu_state;
unsigned int cpu_state;
}; };
struct pdc_toc_pim_20 { struct pdc_toc_pim_20 {
...@@ -709,8 +724,7 @@ struct pdc_toc_pim_20 { ...@@ -709,8 +724,7 @@ struct pdc_toc_pim_20 {
unsigned long long iasq_back; unsigned long long iasq_back;
unsigned long long iaoq_back; unsigned long long iaoq_back;
unsigned int check_type; unsigned int check_type;
unsigned int hversion; struct pim_cpu_state_cf cpu_state;
unsigned int cpu_state;
}; };
#endif /* !defined(__ASSEMBLY__) */ #endif /* !defined(__ASSEMBLY__) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment