2 * Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
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.
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.
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.
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.
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
28 * For further information regarding this notice, see:
30 * http://oss.sgi.com/projects/GenInfo/NoticeExplan
33 #ifndef _ASM_IA64_MACHVEC_SN1_h
34 #define _ASM_IA64_MACHVEC_SN1_h
36 extern ia64_mv_setup_t sn1_setup;
37 extern ia64_mv_cpu_init_t sn_cpu_init;
38 extern ia64_mv_irq_init_t sn1_irq_init;
39 extern ia64_mv_send_ipi_t sn1_send_IPI;
40 extern ia64_mv_global_tlb_purge_t sn1_global_tlb_purge;
41 extern ia64_mv_inb_t sn1_inb;
42 extern ia64_mv_inw_t sn1_inw;
43 extern ia64_mv_inl_t sn1_inl;
44 extern ia64_mv_outb_t sn1_outb;
45 extern ia64_mv_outw_t sn1_outw;
46 extern ia64_mv_outl_t sn1_outl;
47 extern ia64_mv_dma_alloc_coherent sn1_dma_alloc_coherent;
48 extern ia64_mv_dma_free_coherent sn1_dma_free_coherent;
49 extern ia64_mv_dma_map_single sn1_dma_map_single;
50 extern ia64_mv_dma_unmap_single sn1_dma_unmap_single;
51 extern ia64_mv_dma_map_sg sn1_dma_map_sg;
52 extern ia64_mv_dma_unmap_sg sn1_dma_unmap_sg;
53 extern ia64_mv_dma_sync_single sn1_dma_sync_single;
54 extern ia64_mv_dma_sync_sg sn1_dma_sync_sg;
57 * This stuff has dual use!
59 * For a generic kernel, the macros are used to initialize the
60 * platform's machvec structure. When compiling a non-generic kernel,
61 * the macros are used directly.
63 #define platform_name "sn1"
64 #define platform_setup sn1_setup
65 #define platform_cpu_init sn_cpu_init
66 #define platform_irq_init sn1_irq_init
67 #define platform_send_ipi sn1_send_IPI
68 #define platform_global_tlb_purge sn1_global_tlb_purge
69 #define platform_inb sn1_inb
70 #define platform_inw sn1_inw
71 #define platform_inl sn1_inl
72 #define platform_outb sn1_outb
73 #define platform_outw sn1_outw
74 #define platform_outl sn1_outl
75 #define platform_dma_init machvec_noop
76 #define platform_dma_alloc_coherent sn1_dma_alloc_coherent
77 #define platform_dma_free_coherent sn1_dma_free_coherent
78 #define platform_dma_map_single sn1_dma_map_single
79 #define platform_dma_unmap_single sn1_dma_unmap_single
80 #define platform_dma_map_sg sn1_dma_map_sg
81 #define platform_dma_unmap_sg sn1_dma_unmap_sg
82 #define platform_dma_sync_single sn1_dma_sync_single
83 #define platform_dma_sync_sg sn1_dma_sync_sg
85 #endif /* _ASM_IA64_MACHVEC_SN1_h */