machvec_sn2.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * Copyright (c) 2002-2003 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_SN2_H
  33. #define _ASM_IA64_MACHVEC_SN2_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_send_ipi_t sn2_send_IPI;
  38. extern ia64_mv_timer_interrupt_t sn_timer_interrupt;
  39. extern ia64_mv_global_tlb_purge_t sn2_global_tlb_purge;
  40. extern ia64_mv_tlb_migrate_finish_t sn_tlb_migrate_finish;
  41. extern ia64_mv_local_vector_to_irq sn_local_vector_to_irq;
  42. extern ia64_mv_pci_get_legacy_mem_t sn_pci_get_legacy_mem;
  43. extern ia64_mv_pci_legacy_read_t sn_pci_legacy_read;
  44. extern ia64_mv_pci_legacy_write_t sn_pci_legacy_write;
  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_mmiowb_t __sn_mmiowb;
  52. extern ia64_mv_readb_t __sn_readb;
  53. extern ia64_mv_readw_t __sn_readw;
  54. extern ia64_mv_readl_t __sn_readl;
  55. extern ia64_mv_readq_t __sn_readq;
  56. extern ia64_mv_readb_t __sn_readb_relaxed;
  57. extern ia64_mv_readw_t __sn_readw_relaxed;
  58. extern ia64_mv_readl_t __sn_readl_relaxed;
  59. extern ia64_mv_readq_t __sn_readq_relaxed;
  60. extern ia64_mv_dma_alloc_coherent sn_dma_alloc_coherent;
  61. extern ia64_mv_dma_free_coherent sn_dma_free_coherent;
  62. extern ia64_mv_dma_map_single sn_dma_map_single;
  63. extern ia64_mv_dma_unmap_single sn_dma_unmap_single;
  64. extern ia64_mv_dma_map_sg sn_dma_map_sg;
  65. extern ia64_mv_dma_unmap_sg sn_dma_unmap_sg;
  66. extern ia64_mv_dma_sync_single_for_cpu sn_dma_sync_single_for_cpu;
  67. extern ia64_mv_dma_sync_sg_for_cpu sn_dma_sync_sg_for_cpu;
  68. extern ia64_mv_dma_sync_single_for_device sn_dma_sync_single_for_device;
  69. extern ia64_mv_dma_sync_sg_for_device sn_dma_sync_sg_for_device;
  70. extern ia64_mv_dma_mapping_error sn_dma_mapping_error;
  71. extern ia64_mv_dma_supported sn_dma_supported;
  72. /*
  73. * This stuff has dual use!
  74. *
  75. * For a generic kernel, the macros are used to initialize the
  76. * platform's machvec structure. When compiling a non-generic kernel,
  77. * the macros are used directly.
  78. */
  79. #define platform_name "sn2"
  80. #define platform_setup sn_setup
  81. #define platform_cpu_init sn_cpu_init
  82. #define platform_irq_init sn_irq_init
  83. #define platform_send_ipi sn2_send_IPI
  84. #define platform_timer_interrupt sn_timer_interrupt
  85. #define platform_global_tlb_purge sn2_global_tlb_purge
  86. #define platform_tlb_migrate_finish sn_tlb_migrate_finish
  87. #define platform_pci_fixup sn_pci_fixup
  88. #define platform_inb __sn_inb
  89. #define platform_inw __sn_inw
  90. #define platform_inl __sn_inl
  91. #define platform_outb __sn_outb
  92. #define platform_outw __sn_outw
  93. #define platform_outl __sn_outl
  94. #define platform_mmiowb __sn_mmiowb
  95. #define platform_readb __sn_readb
  96. #define platform_readw __sn_readw
  97. #define platform_readl __sn_readl
  98. #define platform_readq __sn_readq
  99. #define platform_readb_relaxed __sn_readb_relaxed
  100. #define platform_readw_relaxed __sn_readw_relaxed
  101. #define platform_readl_relaxed __sn_readl_relaxed
  102. #define platform_readq_relaxed __sn_readq_relaxed
  103. #define platform_local_vector_to_irq sn_local_vector_to_irq
  104. #define platform_pci_get_legacy_mem sn_pci_get_legacy_mem
  105. #define platform_pci_legacy_read sn_pci_legacy_read
  106. #define platform_pci_legacy_write sn_pci_legacy_write
  107. #define platform_dma_init machvec_noop
  108. #define platform_dma_alloc_coherent sn_dma_alloc_coherent
  109. #define platform_dma_free_coherent sn_dma_free_coherent
  110. #define platform_dma_map_single sn_dma_map_single
  111. #define platform_dma_unmap_single sn_dma_unmap_single
  112. #define platform_dma_map_sg sn_dma_map_sg
  113. #define platform_dma_unmap_sg sn_dma_unmap_sg
  114. #define platform_dma_sync_single_for_cpu sn_dma_sync_single_for_cpu
  115. #define platform_dma_sync_sg_for_cpu sn_dma_sync_sg_for_cpu
  116. #define platform_dma_sync_single_for_device sn_dma_sync_single_for_device
  117. #define platform_dma_sync_sg_for_device sn_dma_sync_sg_for_device
  118. #define platform_dma_mapping_error sn_dma_mapping_error
  119. #define platform_dma_supported sn_dma_supported
  120. #include <asm/sn/io.h>
  121. #endif /* _ASM_IA64_MACHVEC_SN2_H */