mirror of
https://github.com/86Box/probing-tools.git
synced 2026-02-21 17:15:34 -07:00
pcireg: Enable command and status printing on UEFI as that works again
This commit is contained in:
@@ -856,17 +856,12 @@ dump_info(uint8_t bus, uint8_t dev, uint8_t func)
|
||||
/* Read command and status. */
|
||||
reg_val.u32 = pci_readl(bus, dev, func, 0x04);
|
||||
|
||||
/* Print command and status flags... except on UEFI target,
|
||||
as something somewhere in the POSIX-UEFI pipeline mangles
|
||||
the pointers to all strings in our lookup arrays after
|
||||
command_flags[0]. Ugh. */
|
||||
#ifndef __POSIX_UEFI__
|
||||
/* Print command and status flags. */
|
||||
printf("\n\nCommand:");
|
||||
info_flags_helper(reg_val.u16[0], command_flags);
|
||||
printf("\n Status:");
|
||||
info_flags_helper(reg_val.u16[1], status_flags);
|
||||
printf(" DEVSEL[%s]", devsel[(reg_val.u16[1] >> 9) & 3]);
|
||||
#endif
|
||||
|
||||
/* Read revision and class ID. */
|
||||
reg_val.u32 = pci_readl(bus, dev, func, 0x08);
|
||||
|
||||
Reference in New Issue
Block a user