Commit df625579 authored by Tony Luck's avatar Tony Luck

[IA64] reorder functions to define ia64_pci_get_legacy_mem() before using it

Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent d75f1c61
...@@ -550,6 +550,23 @@ pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma, ...@@ -550,6 +550,23 @@ pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma,
return 0; return 0;
} }
/**
* ia64_pci_get_legacy_mem - generic legacy mem routine
* @bus: bus to get legacy memory base address for
*
* Find the base of legacy memory for @bus. This is typically the first
* megabyte of bus address space for @bus or is simply 0 on platforms whose
* chipsets support legacy I/O and memory routing. Returns the base address
* or an error pointer if an error occurred.
*
* This is the ia64 generic version of this routine. Other platforms
* are free to override it with a machine vector.
*/
char *ia64_pci_get_legacy_mem(struct pci_bus *bus)
{
return (char *)__IA64_UNCACHED_OFFSET;
}
/** /**
* pci_mmap_legacy_page_range - map legacy memory space to userland * pci_mmap_legacy_page_range - map legacy memory space to userland
* @bus: bus whose legacy space we're mapping * @bus: bus whose legacy space we're mapping
...@@ -578,23 +595,6 @@ pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma) ...@@ -578,23 +595,6 @@ pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma)
return 0; return 0;
} }
/**
* ia64_pci_get_legacy_mem - generic legacy mem routine
* @bus: bus to get legacy memory base address for
*
* Find the base of legacy memory for @bus. This is typically the first
* megabyte of bus address space for @bus or is simply 0 on platforms whose
* chipsets support legacy I/O and memory routing. Returns the base address
* or an error pointer if an error occurred.
*
* This is the ia64 generic version of this routine. Other platforms
* are free to override it with a machine vector.
*/
char *ia64_pci_get_legacy_mem(struct pci_bus *bus)
{
return (char *)__IA64_UNCACHED_OFFSET;
}
/** /**
* ia64_pci_legacy_read - read from legacy I/O space * ia64_pci_legacy_read - read from legacy I/O space
* @bus: bus to read * @bus: bus to read
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment