From 251279c537397835a4504165e7582cb29c19891c Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sun, 8 Jul 2018 12:41:56 +0200 Subject: src/southbridge: Use "foo *bar" instead of "foo* bar" Change-Id: I72d50615d77b91529810e8f590fa56f3c6f7546c Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/27409 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/southbridge/amd/sr5650/sr5650.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/southbridge/amd/sr5650/sr5650.c') diff --git a/src/southbridge/amd/sr5650/sr5650.c b/src/southbridge/amd/sr5650/sr5650.c index fae26899ec..1c2fe48407 100644 --- a/src/southbridge/amd/sr5650/sr5650.c +++ b/src/southbridge/amd/sr5650/sr5650.c @@ -32,7 +32,8 @@ /* * extern function declaration */ -struct resource * sr5650_retrieve_cpu_mmio_resource() { +struct resource *sr5650_retrieve_cpu_mmio_resource() +{ struct device *domain; struct resource *res; @@ -321,7 +322,7 @@ void detect_and_enable_iommu(struct device *iommu_dev) { uint32_t dword; uint8_t l1_target; unsigned char iommu; - void * mmio_base; + void *mmio_base; iommu = 1; get_option(&iommu, "iommu"); @@ -336,7 +337,8 @@ void detect_and_enable_iommu(struct device *iommu_dev) { return; } - mmio_base = (void*)(pci_read_config32(iommu_dev, 0x44) & 0xffffc000); + mmio_base = (void *)(pci_read_config32(iommu_dev, 0x44) & + 0xffffc000); // if (get_nb_rev(nb_dev) == REV_SR5650_A11) { // dword = pci_read_config32(iommu_dev, 0x6c); @@ -352,11 +354,11 @@ void detect_and_enable_iommu(struct device *iommu_dev) { dword |= 0x1; pci_write_config32(iommu_dev, 0x44, dword); - write32((void*)(mmio_base + 0x8), 0x0); - write32((void*)(mmio_base + 0xc), 0x08000000); - write32((void*)(mmio_base + 0x10), 0x0); - write32((void*)(mmio_base + 0x2008), 0x0); - write32((void*)(mmio_base + 0x2010), 0x0); + write32((void *)(mmio_base + 0x8), 0x0); + write32((void *)(mmio_base + 0xc), 0x08000000); + write32((void *)(mmio_base + 0x10), 0x0); + write32((void *)(mmio_base + 0x2008), 0x0); + write32((void *)(mmio_base + 0x2010), 0x0); /* IOMMU L1 initialization */ for (l1_target = 0; l1_target < 6; l1_target++) { @@ -816,7 +818,7 @@ unsigned long acpi_fill_mcfg(unsigned long current) return current; } -static unsigned long acpi_fill_ivrs(acpi_ivrs_t* ivrs, unsigned long current) +static unsigned long acpi_fill_ivrs(acpi_ivrs_t *ivrs, unsigned long current) { uint8_t *p; -- cgit v1.2.3