Commit 647fb47d authored by Len Brown's avatar Len Brown

ACPICA: reduce conflicts with Altix patch series

Syntax only -- no functional changes.
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent defad230
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "xtalk/xwidgetdev.h" #include "xtalk/xwidgetdev.h"
#include <linux/acpi.h> #include <linux/acpi.h>
#include <asm/sn/sn2/sn_hwperf.h> #include <asm/sn/sn2/sn_hwperf.h>
#include <asm/sn/acpi.h>
extern void sn_init_cpei_timer(void); extern void sn_init_cpei_timer(void);
extern void register_sn_procfs(void); extern void register_sn_procfs(void);
...@@ -36,6 +37,7 @@ extern void sn_legacy_pci_window_fixup(struct pci_controller *, u64, u64); ...@@ -36,6 +37,7 @@ extern void sn_legacy_pci_window_fixup(struct pci_controller *, u64, u64);
extern void sn_io_acpi_init(void); extern void sn_io_acpi_init(void);
extern void sn_io_init(void); extern void sn_io_init(void);
static struct list_head sn_sysdata_list; static struct list_head sn_sysdata_list;
/* sysdata list struct */ /* sysdata list struct */
...@@ -48,7 +50,7 @@ int sn_ioif_inited; /* SN I/O infrastructure initialized? */ ...@@ -48,7 +50,7 @@ int sn_ioif_inited; /* SN I/O infrastructure initialized? */
struct sn_pcibus_provider *sn_pci_provider[PCIIO_ASIC_MAX_TYPES]; /* indexed by asic type */ struct sn_pcibus_provider *sn_pci_provider[PCIIO_ASIC_MAX_TYPES]; /* indexed by asic type */
int sn_acpi_base_support() int sn_acpi_base_support(void)
{ {
struct acpi_table_header *header; struct acpi_table_header *header;
(void)acpi_get_table_by_index(ACPI_TABLE_INDEX_DSDT, &header); (void)acpi_get_table_by_index(ACPI_TABLE_INDEX_DSDT, &header);
...@@ -293,7 +295,7 @@ void sn_pci_fixup_slot(struct pci_dev *dev) ...@@ -293,7 +295,7 @@ void sn_pci_fixup_slot(struct pci_dev *dev)
list_add_tail(&pcidev_info->pdi_list, list_add_tail(&pcidev_info->pdi_list,
&(SN_PLATFORM_DATA(dev->bus)->pcidev_info)); &(SN_PLATFORM_DATA(dev->bus)->pcidev_info));
if (sn_acpi_base_support()) if (SN_ACPI_BASE_SUPPORT())
sn_acpi_slot_fixup(dev, pcidev_info); sn_acpi_slot_fixup(dev, pcidev_info);
else else
sn_more_slot_fixup(dev, pcidev_info); sn_more_slot_fixup(dev, pcidev_info);
...@@ -505,7 +507,7 @@ void __devinit ...@@ -505,7 +507,7 @@ void __devinit
sn_pci_fixup_bus(struct pci_bus *bus) sn_pci_fixup_bus(struct pci_bus *bus)
{ {
if (sn_acpi_base_support()) if (SN_ACPI_BASE_SUPPORT())
sn_acpi_bus_fixup(bus); sn_acpi_bus_fixup(bus);
else else
sn_bus_fixup(bus); sn_bus_fixup(bus);
...@@ -551,9 +553,13 @@ sn_io_early_init(void) ...@@ -551,9 +553,13 @@ sn_io_early_init(void)
register_sn_procfs(); register_sn_procfs();
#endif #endif
{
struct acpi_table_header *header;
(void)acpi_get_table_by_index(ACPI_TABLE_INDEX_DSDT, &header);
printk(KERN_INFO "ACPI DSDT OEM Rev 0x%x\n", printk(KERN_INFO "ACPI DSDT OEM Rev 0x%x\n",
acpi_gbl_DSDT->oem_revision); header->oem_revision);
if (sn_acpi_base_support()) }
if (SN_ACPI_BASE_SUPPORT())
sn_io_acpi_init(); sn_io_acpi_init();
else else
sn_io_init(); sn_io_init();
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <asm/sn/pda.h> #include <asm/sn/pda.h>
#include <asm/sn/sn_cpuid.h> #include <asm/sn/sn_cpuid.h>
#include <asm/sn/shub_mmr.h> #include <asm/sn/shub_mmr.h>
#include <asm/sn/acpi.h>
#define IS_LEGACY_VGA_IOPORT(p) \ #define IS_LEGACY_VGA_IOPORT(p) \
(((p) >= 0x3b0 && (p) <= 0x3bb) || ((p) >= 0x3c0 && (p) <= 0x3df)) (((p) >= 0x3b0 && (p) <= 0x3bb) || ((p) >= 0x3c0 && (p) <= 0x3df))
...@@ -29,8 +30,6 @@ ...@@ -29,8 +30,6 @@
* SN i/o address. Used by sn_in*() and sn_out*(). * SN i/o address. Used by sn_in*() and sn_out*().
*/ */
extern int sn_acpi_base_support();
void *sn_io_addr(unsigned long port) void *sn_io_addr(unsigned long port)
{ {
if (!IS_RUNNING_ON_SIMULATOR()) { if (!IS_RUNNING_ON_SIMULATOR()) {
...@@ -39,7 +38,7 @@ void *sn_io_addr(unsigned long port) ...@@ -39,7 +38,7 @@ void *sn_io_addr(unsigned long port)
/* On sn2, legacy I/O ports don't point at anything */ /* On sn2, legacy I/O ports don't point at anything */
if (port < (64 * 1024)) if (port < (64 * 1024))
return NULL; return NULL;
if (sn_acpi_base_support()) if (SN_ACPI_BASE_SUPPORT())
return (__ia64_mk_io_addr(port)); return (__ia64_mk_io_addr(port));
else else
return ((void *)(port | __IA64_UNCACHED_OFFSET)); return ((void *)(port | __IA64_UNCACHED_OFFSET));
......
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2006 Silicon Graphics, Inc. All rights reserved.
*/
#ifndef _ASM_IA64_SN_ACPI_H
#define _ASM_IA64_SN_ACPI_H
#include "acpi/acglobal.h"
#define SN_ACPI_BASE_SUPPORT() sn_acpi_base_support()
extern int sn_acpi_base_support(void);
#endif /* _ASM_IA64_SN_ACPI_H */
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