pci: minor formatting

pull/695/head
Marco Oliverio 2026-02-25 18:30:26 +01:00
parent 729f6a6e9e
commit b9ecbca141
2 changed files with 6 additions and 6 deletions

View File

@ -450,7 +450,7 @@ static int pci_program_bar(uint8_t bus, uint8_t dev, uint8_t fun,
* the sizes back */
pci_config_write32(bus, dev, fun, bar_off, 0xffffffff);
pci_config_write32(bus, dev, fun, bar_off + 4, 0xffffffff);
bar_value = pci_config_read32(bus, dev,fun, bar_off);
bar_value = pci_config_read32(bus, dev, fun, bar_off);
bar_align = bar_value & PCI_ENUM_MM_BAR_MASK;
reg = pci_config_read32(bus, dev, fun, bar_off + 4);
PCI_DEBUG_PRINTF("bar high 32bit: %d\r\n", reg);

View File

@ -51,12 +51,12 @@
#define PCI_SUBCLASS_BYTE_OFFSET 0x0A
struct test_pci_bar_info {
uint32_t size; /* power-of-2 bytes, 0 = not implemented */
uint8_t is_io; /* 1=IO, 0=MMIO */
uint8_t is_64bit; /* 1=64-bit MMIO (consumes next BAR slot too) */
uint8_t is_prefetch;/* 1=prefetchable */
uint32_t size; /* power-of-2 bytes, 0 = not implemented */
uint8_t is_io; /* 1=IO, 0=MMIO */
uint8_t is_64bit; /* 1=64-bit MMIO (consumes next BAR slot too) */
uint8_t is_prefetch; /* 1=prefetchable */
uint8_t io_hi16_zero;/* 1=IO BAR only decodes 16 bits (upper 16 of mask are 0) */
uint32_t upper_mask; /* 64-bit BARs: upper half probe mask (0 = use default 0xFFFFFFFF) */
uint32_t upper_mask; /* 64-bit BARs: upper half probe mask (0 = use default 0xFFFFFFFF) */
};
struct test_pci_node {