pci_64.c (57190708f1f52d732d94fa21a8e576302d384d33) pci_64.c (a8bda5dd4f99d6469f3c0dc362db3cce8a4d6416)
1/*
2 * Port for PPC64 David Engebretsen, IBM Corp.
3 * Contains common pci routines for ppc64 platform, pSeries and iSeries brands.
4 *
5 * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM
6 * Rework, based on alpha PCI code.
7 *
8 * This program is free software; you can redistribute it and/or

--- 943 unchanged lines hidden (view full) ---

952 struct device_node *dev, int prim)
953{
954 const unsigned int *ranges;
955 unsigned int pci_space;
956 unsigned long size;
957 int rlen = 0;
958 int memno = 0;
959 struct resource *res;
1/*
2 * Port for PPC64 David Engebretsen, IBM Corp.
3 * Contains common pci routines for ppc64 platform, pSeries and iSeries brands.
4 *
5 * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM
6 * Rework, based on alpha PCI code.
7 *
8 * This program is free software; you can redistribute it and/or

--- 943 unchanged lines hidden (view full) ---

952 struct device_node *dev, int prim)
953{
954 const unsigned int *ranges;
955 unsigned int pci_space;
956 unsigned long size;
957 int rlen = 0;
958 int memno = 0;
959 struct resource *res;
960 int np, na = prom_n_addr_cells(dev);
960 int np, na = of_n_addr_cells(dev);
961 unsigned long pci_addr, cpu_phys_addr;
962
963 np = na + 5;
964
965 /* From "PCI Binding to 1275"
966 * The ranges property is laid out as an array of elements,
967 * each of which comprises:
968 * cells 0 - 2: a PCI address

--- 505 unchanged lines hidden ---
961 unsigned long pci_addr, cpu_phys_addr;
962
963 np = na + 5;
964
965 /* From "PCI Binding to 1275"
966 * The ranges property is laid out as an array of elements,
967 * each of which comprises:
968 * cells 0 - 2: a PCI address

--- 505 unchanged lines hidden ---