Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Brent Casavant | e08e6c5 | 2006-01-26 15:55:52 -0800 | [diff] [blame] | 2 | * Copyright (c) 2002-2003,2006 Silicon Graphics, Inc. All Rights Reserved. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of version 2 of the GNU General Public License |
| 6 | * as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it would be useful, but |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 11 | * |
| 12 | * Further, this software is distributed without any warranty that it is |
| 13 | * free of the rightful claim of any third person regarding infringement |
| 14 | * or the like. Any license provided herein, whether implied or |
| 15 | * otherwise, applies only to this software file. Patent licenses, if |
| 16 | * any, provided herein do not apply to combinations of this program with |
| 17 | * other software, or any other product whatsoever. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public |
| 20 | * License along with this program; if not, write the Free Software |
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. |
| 22 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | * For further information regarding this notice, see: |
| 24 | * |
| 25 | * http://oss.sgi.com/projects/GenInfo/NoticeExplan |
| 26 | */ |
| 27 | |
| 28 | #ifndef _ASM_IA64_MACHVEC_SN2_H |
| 29 | #define _ASM_IA64_MACHVEC_SN2_H |
| 30 | |
| 31 | extern ia64_mv_setup_t sn_setup; |
| 32 | extern ia64_mv_cpu_init_t sn_cpu_init; |
| 33 | extern ia64_mv_irq_init_t sn_irq_init; |
| 34 | extern ia64_mv_send_ipi_t sn2_send_IPI; |
| 35 | extern ia64_mv_timer_interrupt_t sn_timer_interrupt; |
| 36 | extern ia64_mv_global_tlb_purge_t sn2_global_tlb_purge; |
| 37 | extern ia64_mv_tlb_migrate_finish_t sn_tlb_migrate_finish; |
Kenji Kaneshige | 1115200 | 2007-08-13 10:31:26 -0700 | [diff] [blame] | 38 | extern ia64_mv_irq_to_vector sn_irq_to_vector; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | extern ia64_mv_local_vector_to_irq sn_local_vector_to_irq; |
| 40 | extern ia64_mv_pci_get_legacy_mem_t sn_pci_get_legacy_mem; |
| 41 | extern ia64_mv_pci_legacy_read_t sn_pci_legacy_read; |
| 42 | extern ia64_mv_pci_legacy_write_t sn_pci_legacy_write; |
| 43 | extern ia64_mv_inb_t __sn_inb; |
| 44 | extern ia64_mv_inw_t __sn_inw; |
| 45 | extern ia64_mv_inl_t __sn_inl; |
| 46 | extern ia64_mv_outb_t __sn_outb; |
| 47 | extern ia64_mv_outw_t __sn_outw; |
| 48 | extern ia64_mv_outl_t __sn_outl; |
| 49 | extern ia64_mv_mmiowb_t __sn_mmiowb; |
| 50 | extern ia64_mv_readb_t __sn_readb; |
| 51 | extern ia64_mv_readw_t __sn_readw; |
| 52 | extern ia64_mv_readl_t __sn_readl; |
| 53 | extern ia64_mv_readq_t __sn_readq; |
| 54 | extern ia64_mv_readb_t __sn_readb_relaxed; |
| 55 | extern ia64_mv_readw_t __sn_readw_relaxed; |
| 56 | extern ia64_mv_readl_t __sn_readl_relaxed; |
| 57 | extern ia64_mv_readq_t __sn_readq_relaxed; |
John Keller | 175add1 | 2008-11-24 16:47:17 -0600 | [diff] [blame] | 58 | extern ia64_mv_dma_get_required_mask sn_dma_get_required_mask; |
FUJITA Tomonori | 4d9b977 | 2009-01-05 23:36:12 +0900 | [diff] [blame] | 59 | extern ia64_mv_dma_init sn_dma_init; |
Brent Casavant | e08e6c5 | 2006-01-26 15:55:52 -0800 | [diff] [blame] | 60 | extern ia64_mv_migrate_t sn_migrate; |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 61 | extern ia64_mv_kernel_launch_event_t sn_kernel_launch_event; |
Eric W. Biederman | 3b7d192 | 2006-10-04 02:16:59 -0700 | [diff] [blame] | 62 | extern ia64_mv_setup_msi_irq_t sn_setup_msi_irq; |
| 63 | extern ia64_mv_teardown_msi_irq_t sn_teardown_msi_irq; |
John Keller | 8ea6091 | 2006-10-04 16:49:25 -0500 | [diff] [blame] | 64 | extern ia64_mv_pci_fixup_bus_t sn_pci_fixup_bus; |
Mark Maule | fd58e55 | 2006-04-10 21:17:48 -0500 | [diff] [blame] | 65 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | |
| 67 | /* |
| 68 | * This stuff has dual use! |
| 69 | * |
| 70 | * For a generic kernel, the macros are used to initialize the |
| 71 | * platform's machvec structure. When compiling a non-generic kernel, |
| 72 | * the macros are used directly. |
| 73 | */ |
| 74 | #define platform_name "sn2" |
| 75 | #define platform_setup sn_setup |
| 76 | #define platform_cpu_init sn_cpu_init |
| 77 | #define platform_irq_init sn_irq_init |
| 78 | #define platform_send_ipi sn2_send_IPI |
| 79 | #define platform_timer_interrupt sn_timer_interrupt |
| 80 | #define platform_global_tlb_purge sn2_global_tlb_purge |
| 81 | #define platform_tlb_migrate_finish sn_tlb_migrate_finish |
| 82 | #define platform_pci_fixup sn_pci_fixup |
| 83 | #define platform_inb __sn_inb |
| 84 | #define platform_inw __sn_inw |
| 85 | #define platform_inl __sn_inl |
| 86 | #define platform_outb __sn_outb |
| 87 | #define platform_outw __sn_outw |
| 88 | #define platform_outl __sn_outl |
| 89 | #define platform_mmiowb __sn_mmiowb |
| 90 | #define platform_readb __sn_readb |
| 91 | #define platform_readw __sn_readw |
| 92 | #define platform_readl __sn_readl |
| 93 | #define platform_readq __sn_readq |
| 94 | #define platform_readb_relaxed __sn_readb_relaxed |
| 95 | #define platform_readw_relaxed __sn_readw_relaxed |
| 96 | #define platform_readl_relaxed __sn_readl_relaxed |
| 97 | #define platform_readq_relaxed __sn_readq_relaxed |
Kenji Kaneshige | 1115200 | 2007-08-13 10:31:26 -0700 | [diff] [blame] | 98 | #define platform_irq_to_vector sn_irq_to_vector |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 99 | #define platform_local_vector_to_irq sn_local_vector_to_irq |
| 100 | #define platform_pci_get_legacy_mem sn_pci_get_legacy_mem |
| 101 | #define platform_pci_legacy_read sn_pci_legacy_read |
| 102 | #define platform_pci_legacy_write sn_pci_legacy_write |
John Keller | 175add1 | 2008-11-24 16:47:17 -0600 | [diff] [blame] | 103 | #define platform_dma_get_required_mask sn_dma_get_required_mask |
FUJITA Tomonori | 4d9b977 | 2009-01-05 23:36:12 +0900 | [diff] [blame] | 104 | #define platform_dma_init sn_dma_init |
Brent Casavant | e08e6c5 | 2006-01-26 15:55:52 -0800 | [diff] [blame] | 105 | #define platform_migrate sn_migrate |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 106 | #define platform_kernel_launch_event sn_kernel_launch_event |
Mark Maule | fd58e55 | 2006-04-10 21:17:48 -0500 | [diff] [blame] | 107 | #ifdef CONFIG_PCI_MSI |
Eric W. Biederman | 3b7d192 | 2006-10-04 02:16:59 -0700 | [diff] [blame] | 108 | #define platform_setup_msi_irq sn_setup_msi_irq |
| 109 | #define platform_teardown_msi_irq sn_teardown_msi_irq |
Mark Maule | fd58e55 | 2006-04-10 21:17:48 -0500 | [diff] [blame] | 110 | #else |
Eric W. Biederman | 3b7d192 | 2006-10-04 02:16:59 -0700 | [diff] [blame] | 111 | #define platform_setup_msi_irq ((ia64_mv_setup_msi_irq_t*)NULL) |
| 112 | #define platform_teardown_msi_irq ((ia64_mv_teardown_msi_irq_t*)NULL) |
Mark Maule | fd58e55 | 2006-04-10 21:17:48 -0500 | [diff] [blame] | 113 | #endif |
John Keller | 8ea6091 | 2006-10-04 16:49:25 -0500 | [diff] [blame] | 114 | #define platform_pci_fixup_bus sn_pci_fixup_bus |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | |
| 116 | #include <asm/sn/io.h> |
| 117 | |
| 118 | #endif /* _ASM_IA64_MACHVEC_SN2_H */ |