mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
This patch fixes whitespace so that my next patch is easier to read.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> Thanks, Myles git-svn-id: svn://coreboot.org/repository/coreboot-v3@952 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
9b90a6f22b
commit
7e654ac7a0
2 changed files with 101 additions and 99 deletions
|
@ -76,6 +76,7 @@ void debug_fx_devs(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void get_fx_devs(void)
|
void get_fx_devs(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -126,18 +126,18 @@ static void k8_pci_domain_read_resources(struct device * dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef CONFIG_PCI_64BIT_PREF_MEM
|
#ifndef CONFIG_PCI_64BIT_PREF_MEM
|
||||||
/* Initialize the system wide io space constraints */
|
/* Initialize the system-wide io space constraints */
|
||||||
resource = new_resource(dev, IOINDEX_SUBTRACTIVE(0, 0));
|
resource = new_resource(dev, IOINDEX_SUBTRACTIVE(0, 0));
|
||||||
resource->base = 0x400;
|
resource->base = 0x400;
|
||||||
resource->limit = 0xffffUL;
|
resource->limit = 0xffffUL;
|
||||||
resource->flags = IORESOURCE_IO | IORESOURCE_SUBTRACTIVE | IORESOURCE_ASSIGNED;
|
resource->flags = IORESOURCE_IO | IORESOURCE_SUBTRACTIVE | IORESOURCE_ASSIGNED;
|
||||||
|
|
||||||
/* Initialize the system wide memory resources constraints */
|
/* Initialize the system-wide memory resource constraints */
|
||||||
resource = new_resource(dev, IOINDEX_SUBTRACTIVE(1, 0));
|
resource = new_resource(dev, IOINDEX_SUBTRACTIVE(1, 0));
|
||||||
resource->limit = 0xfcffffffffULL;
|
resource->limit = 0xfcffffffffULL;
|
||||||
resource->flags = IORESOURCE_MEM | IORESOURCE_SUBTRACTIVE | IORESOURCE_ASSIGNED;
|
resource->flags = IORESOURCE_MEM | IORESOURCE_SUBTRACTIVE | IORESOURCE_ASSIGNED;
|
||||||
#else
|
#else
|
||||||
/* Initialize the system wide io space constraints */
|
/* Initialize the system-wide io space constraints */
|
||||||
resource = new_resource(dev, 0);
|
resource = new_resource(dev, 0);
|
||||||
resource->base = 0x400;
|
resource->base = 0x400;
|
||||||
resource->limit = 0xffffUL;
|
resource->limit = 0xffffUL;
|
||||||
|
@ -145,7 +145,7 @@ static void k8_pci_domain_read_resources(struct device * dev)
|
||||||
compute_allocate_resource(&dev->link[0], resource,
|
compute_allocate_resource(&dev->link[0], resource,
|
||||||
IORESOURCE_IO, IORESOURCE_IO);
|
IORESOURCE_IO, IORESOURCE_IO);
|
||||||
|
|
||||||
/* Initialize the system wide prefetchable memory resources constraints */
|
/* Initialize the system-wide prefetchable memory resource constraints */
|
||||||
resource = new_resource(dev, 1);
|
resource = new_resource(dev, 1);
|
||||||
resource->limit = 0xfcffffffffULL;
|
resource->limit = 0xfcffffffffULL;
|
||||||
resource->flags = IORESOURCE_MEM | IORESOURCE_PREFETCH;
|
resource->flags = IORESOURCE_MEM | IORESOURCE_PREFETCH;
|
||||||
|
@ -153,7 +153,7 @@ static void k8_pci_domain_read_resources(struct device * dev)
|
||||||
IORESOURCE_MEM | IORESOURCE_PREFETCH,
|
IORESOURCE_MEM | IORESOURCE_PREFETCH,
|
||||||
IORESOURCE_MEM | IORESOURCE_PREFETCH);
|
IORESOURCE_MEM | IORESOURCE_PREFETCH);
|
||||||
|
|
||||||
/* Initialize the system wide memory resources constraints */
|
/* Initialize the system-wide memory resource constraints */
|
||||||
resource = new_resource(dev, 2);
|
resource = new_resource(dev, 2);
|
||||||
resource->limit = 0xfcffffffffULL;
|
resource->limit = 0xfcffffffffULL;
|
||||||
resource->flags = IORESOURCE_MEM;
|
resource->flags = IORESOURCE_MEM;
|
||||||
|
@ -264,9 +264,10 @@ static void k8_pci_domain_set_resources(struct device * dev)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_HW_MEM_HOLE_SIZEK != 0
|
#if CONFIG_HW_MEM_HOLE_SIZEK != 0
|
||||||
/* if the hw mem hole is already set in raminit stage, here we will compare mmio_basek and hole_basek
|
/* If the hw mem hole is already set in raminit stage, here we will
|
||||||
* if mmio_basek is bigger that hole_basek and will use hole_basek as mmio_basek and we don't need to reset hole.
|
* compare mmio_basek and hole_basek. If mmio_basek is bigger than
|
||||||
* otherwise We reset the hole to the mmio_basek
|
* hole_basek, we use hole_basek as mmio_basek and we don't need
|
||||||
|
* to reset hole. Otherwise, we reset the hole to the mmio_basek.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mem_hole = get_hw_mem_hole_info();
|
mem_hole = get_hw_mem_hole_info();
|
||||||
|
|
Loading…
Add table
Reference in a new issue