mirror of
https://github.com/ipxe/ipxe
synced 2026-01-08 05:01:44 +03:00
[sky2] Use 32-bit read to read Y2_VAUX_AVAIL
B0_CTST is a 24bit register according to the vendor driver (sk98lin). A 16bit read on B0_CTST will always return 0 for Y2_VAUX_AVAIL (1<<16), so use a 32bit read when testing Y2_VAUX_AVAIL. [This patch is copied directly from the Linux kernel tree.] Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
19d3e966d9
commit
a317e9a310
@@ -294,7 +294,7 @@ enum csr_regs {
|
||||
Y2_CFG_AER = 0x1d00, /* PCI Advanced Error Report region */
|
||||
};
|
||||
|
||||
/* B0_CTST 16 bit Control/Status register */
|
||||
/* B0_CTST 24 bit Control/Status register */
|
||||
enum {
|
||||
Y2_VMAIN_AVAIL = 1<<17,/* VMAIN available (YUKON-2 only) */
|
||||
Y2_VAUX_AVAIL = 1<<16,/* VAUX available (YUKON-2 only) */
|
||||
|
||||
Reference in New Issue
Block a user