Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174809
b: refs/heads/master
c: d215a9c
h: refs/heads/master
i:
  174807: 67ac210
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Nov 24, 2009
1 parent 2e17697 commit f9aaaec
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df5eb1d67e8074dfbc23cf396c556116728187b3
refs/heads/master: d215a9c8b46e55a1d3bc1cd907c943ef95938a0e
9 changes: 8 additions & 1 deletion trunk/arch/x86/include/asm/pci_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,17 @@ extern int __init pcibios_init(void);

/* pci-mmconfig.c */

struct pci_mmcfg_region {
u64 address;
u16 pci_segment;
u8 start_bus_number;
u8 end_bus_number;
};

extern int __init pci_mmcfg_arch_init(void);
extern void __init pci_mmcfg_arch_free(void);

extern struct acpi_mcfg_allocation *pci_mmcfg_config;
extern struct pci_mmcfg_region *pci_mmcfg_config;
extern int pci_mmcfg_config_num;

#define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20)
Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/x86/pci/mmconfig-shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ static __init void free_all_mmcfg(void)
pci_mmcfg_config = NULL;
}

static __init struct acpi_mcfg_allocation *pci_mmconfig_add(int segment,
int start, int end, u64 addr)
static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start,
int end, u64 addr)
{
struct acpi_mcfg_allocation *new;
struct pci_mmcfg_region *new;
int new_num = pci_mmcfg_config_num + 1;
int i = pci_mmcfg_config_num;

Expand Down Expand Up @@ -349,7 +349,7 @@ static void __init pci_mmcfg_insert_resources(void)

names = (void *)&res[pci_mmcfg_config_num];
for (i = 0; i < pci_mmcfg_config_num; i++, res++) {
struct acpi_mcfg_allocation *cfg = &pci_mmcfg_config[i];
struct pci_mmcfg_region *cfg = &pci_mmcfg_config[i];
num_buses = cfg->end_bus_number - cfg->start_bus_number + 1;
res->name = names;
snprintf(names, PCI_MMCFG_RESOURCE_NAME_LEN,
Expand Down Expand Up @@ -523,7 +523,7 @@ static void __init pci_mmcfg_reject_broken(int early)
static int __initdata known_bridge;

/* The physical address of the MMCONFIG aperture. Set from ACPI tables. */
struct acpi_mcfg_allocation *pci_mmcfg_config;
struct pci_mmcfg_region *pci_mmcfg_config;
int pci_mmcfg_config_num;

static int __init acpi_mcfg_check_entry(struct acpi_table_mcfg *mcfg,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/pci/mmconfig_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static int mmcfg_last_accessed_cpu;
*/
static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn)
{
struct acpi_mcfg_allocation *cfg;
struct pci_mmcfg_region *cfg;
int cfg_num;

for (cfg_num = 0; cfg_num < pci_mmcfg_config_num; cfg_num++) {
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/x86/pci/mmconfig_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

/* Static virtual mapping of the MMCONFIG aperture */
struct mmcfg_virt {
struct acpi_mcfg_allocation *cfg;
struct pci_mmcfg_region *cfg;
char __iomem *virt;
};
static struct mmcfg_virt *pci_mmcfg_virt;

static char __iomem *get_virt(unsigned int seg, unsigned bus)
{
struct acpi_mcfg_allocation *cfg;
struct pci_mmcfg_region *cfg;
int cfg_num;

for (cfg_num = 0; cfg_num < pci_mmcfg_config_num; cfg_num++) {
Expand Down Expand Up @@ -109,7 +109,7 @@ static struct pci_raw_ops pci_mmcfg = {
.write = pci_mmcfg_write,
};

static void __iomem * __init mcfg_ioremap(struct acpi_mcfg_allocation *cfg)
static void __iomem * __init mcfg_ioremap(struct pci_mmcfg_region *cfg)
{
void __iomem *addr;
u64 start, size;
Expand Down

0 comments on commit f9aaaec

Please sign in to comment.