machvec_sn1.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:4k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * Copyright (c) 2002 Silicon Graphics, Inc.  All Rights Reserved.
  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.  * 
  23.  * Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, 
  24.  * Mountain View, CA  94043, or:
  25.  * 
  26.  * http://www.sgi.com 
  27.  * 
  28.  * For further information regarding this notice, see: 
  29.  * 
  30.  * http://oss.sgi.com/projects/GenInfo/NoticeExplan
  31.  */
  32. #ifndef _ASM_IA64_MACHVEC_SN1_h
  33. #define _ASM_IA64_MACHVEC_SN1_h
  34. extern ia64_mv_setup_t sn_setup;
  35. extern ia64_mv_cpu_init_t sn_cpu_init;
  36. extern ia64_mv_irq_init_t sn_irq_init;
  37. extern ia64_mv_map_nr_t sn1_map_nr;
  38. extern ia64_mv_send_ipi_t sn1_send_IPI;
  39. extern ia64_mv_global_tlb_purge_t sn1_global_tlb_purge;
  40. extern ia64_mv_irq_desc sn_irq_desc;
  41. extern ia64_mv_irq_to_vector sn_irq_to_vector;
  42. extern ia64_mv_local_vector_to_irq sn_local_vector_to_irq;
  43. extern ia64_mv_valid_irq sn_valid_irq;
  44. extern ia64_mv_pci_fixup_t sn_pci_fixup;
  45. extern ia64_mv_inb_t sn_inb;
  46. extern ia64_mv_inw_t sn_inw;
  47. extern ia64_mv_inl_t sn_inl;
  48. extern ia64_mv_outb_t sn_outb;
  49. extern ia64_mv_outw_t sn_outw;
  50. extern ia64_mv_outl_t sn_outl;
  51. extern ia64_mv_pci_alloc_consistent sn_pci_alloc_consistent;
  52. extern ia64_mv_pci_free_consistent sn_pci_free_consistent;
  53. extern ia64_mv_pci_map_single sn_pci_map_single;
  54. extern ia64_mv_pci_unmap_single sn_pci_unmap_single;
  55. extern ia64_mv_pci_map_sg sn_pci_map_sg;
  56. extern ia64_mv_pci_unmap_sg sn_pci_unmap_sg;
  57. extern ia64_mv_pci_dma_sync_single sn_pci_dma_sync_single;
  58. extern ia64_mv_pci_dma_sync_sg sn_pci_dma_sync_sg;
  59. extern ia64_mv_pci_dma_address sn_dma_address;
  60. extern ia64_mv_pci_dma_supported sn_pci_dma_supported;
  61. /*
  62.  * This stuff has dual use!
  63.  *
  64.  * For a generic kernel, the macros are used to initialize the
  65.  * platform's machvec structure.  When compiling a non-generic kernel,
  66.  * the macros are used directly.
  67.  */
  68. #define platform_name "sn1"
  69. #define platform_setup sn_setup
  70. #define platform_cpu_init sn_cpu_init
  71. #define platform_irq_init sn_irq_init
  72. #define platform_map_nr sn_map_nr
  73. #define platform_send_ipi sn1_send_IPI
  74. #define platform_global_tlb_purge       sn1_global_tlb_purge
  75. #define platform_pci_fixup sn_pci_fixup
  76. #define platform_inb sn_inb
  77. #define platform_inw sn_inw
  78. #define platform_inl sn_inl
  79. #define platform_outb sn_outb
  80. #define platform_outw sn_outw
  81. #define platform_oul sn_outl
  82. #define platform_irq_desc sn_irq_desc
  83. #define platform_irq_to_vector sn_irq_to_vector
  84. #define platform_local_vector_to_irq sn_local_vector_to_irq
  85. #define platform_valid_irq sn_valid_irq
  86. #define platform_pci_dma_init machvec_noop
  87. #define platform_pci_alloc_consistent sn_pci_alloc_consistent
  88. #define platform_pci_free_consistent sn_pci_free_consistent
  89. #define platform_pci_map_single sn_pci_map_single
  90. #define platform_pci_unmap_single sn_pci_unmap_single
  91. #define platform_pci_map_sg sn_pci_map_sg
  92. #define platform_pci_unmap_sg sn_pci_unmap_sg
  93. #define platform_pci_dma_sync_single sn_pci_dma_sync_single
  94. #define platform_pci_dma_sync_sg sn_pci_dma_sync_sg
  95. #define platform_pci_dma_address sn_dma_address
  96. #define platform_pci_dma_supported sn_pci_dma_supported
  97. #endif /* _ASM_IA64_MACHVEC_SN1_h */