Skip to content

Commit b9ecbca

Browse files
committed
pci: minor formatting
1 parent 729f6a6 commit b9ecbca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static int pci_program_bar(uint8_t bus, uint8_t dev, uint8_t fun,
450450
* the sizes back */
451451
pci_config_write32(bus, dev, fun, bar_off, 0xffffffff);
452452
pci_config_write32(bus, dev, fun, bar_off + 4, 0xffffffff);
453-
bar_value = pci_config_read32(bus, dev,fun, bar_off);
453+
bar_value = pci_config_read32(bus, dev, fun, bar_off);
454454
bar_align = bar_value & PCI_ENUM_MM_BAR_MASK;
455455
reg = pci_config_read32(bus, dev, fun, bar_off + 4);
456456
PCI_DEBUG_PRINTF("bar high 32bit: %d\r\n", reg);

tools/unit-tests/unit-pci.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
#define PCI_SUBCLASS_BYTE_OFFSET 0x0A
5252

5353
struct test_pci_bar_info {
54-
uint32_t size; /* power-of-2 bytes, 0 = not implemented */
55-
uint8_t is_io; /* 1=IO, 0=MMIO */
56-
uint8_t is_64bit; /* 1=64-bit MMIO (consumes next BAR slot too) */
57-
uint8_t is_prefetch;/* 1=prefetchable */
54+
uint32_t size; /* power-of-2 bytes, 0 = not implemented */
55+
uint8_t is_io; /* 1=IO, 0=MMIO */
56+
uint8_t is_64bit; /* 1=64-bit MMIO (consumes next BAR slot too) */
57+
uint8_t is_prefetch; /* 1=prefetchable */
5858
uint8_t io_hi16_zero;/* 1=IO BAR only decodes 16 bits (upper 16 of mask are 0) */
59-
uint32_t upper_mask; /* 64-bit BARs: upper half probe mask (0 = use default 0xFFFFFFFF) */
59+
uint32_t upper_mask; /* 64-bit BARs: upper half probe mask (0 = use default 0xFFFFFFFF) */
6060
};
6161

6262
struct test_pci_node {

0 commit comments

Comments
 (0)