mmconfig-shared.c (69c42d493db452ea87c1ac56e83c978512f4e6ec) | mmconfig-shared.c (6fa4a94e150be25d02547d51f03b4bc34aaec32f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * mmconfig-shared.c - Low-level direct PCI config space access via 4 * MMCONFIG - common code between i386 and x86-64. 5 * 6 * This code does: 7 * - known chipset handling 8 * - ACPI decoding and validation --- 80 unchanged lines hidden (view full) --- 89 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; 90 snprintf(new->name, PCI_MMCFG_RESOURCE_NAME_LEN, 91 "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end); 92 res->name = new->name; 93 94 return new; 95} 96 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * mmconfig-shared.c - Low-level direct PCI config space access via 4 * MMCONFIG - common code between i386 and x86-64. 5 * 6 * This code does: 7 * - known chipset handling 8 * - ACPI decoding and validation --- 80 unchanged lines hidden (view full) --- 89 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; 90 snprintf(new->name, PCI_MMCFG_RESOURCE_NAME_LEN, 91 "PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end); 92 res->name = new->name; 93 94 return new; 95} 96 |
97static struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start, 98 int end, u64 addr) | 97struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start, 98 int end, u64 addr) |
99{ 100 struct pci_mmcfg_region *new; 101 102 new = pci_mmconfig_alloc(segment, start, end, addr); 103 if (new) { 104 mutex_lock(&pci_mmcfg_lock); 105 list_add_sorted(new); 106 mutex_unlock(&pci_mmcfg_lock); --- 708 unchanged lines hidden --- | 99{ 100 struct pci_mmcfg_region *new; 101 102 new = pci_mmconfig_alloc(segment, start, end, addr); 103 if (new) { 104 mutex_lock(&pci_mmcfg_lock); 105 list_add_sorted(new); 106 mutex_unlock(&pci_mmcfg_lock); --- 708 unchanged lines hidden --- |