io.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2003 Silicon Graphics, Inc. All rights reserved.
  7. *
  8. * The generic kernel requires function pointers to these routines, so
  9. * we wrap the inlines from asm/ia64/sn/sn2/io.h here.
  10. */
  11. #include <asm/sn/io.h>
  12. #ifdef CONFIG_IA64_GENERIC
  13. #undef __sn_inb
  14. #undef __sn_inw
  15. #undef __sn_inl
  16. #undef __sn_outb
  17. #undef __sn_outw
  18. #undef __sn_outl
  19. #undef __sn_readb
  20. #undef __sn_readw
  21. #undef __sn_readl
  22. #undef __sn_readq
  23. #undef __sn_readb_relaxed
  24. #undef __sn_readw_relaxed
  25. #undef __sn_readl_relaxed
  26. #undef __sn_readq_relaxed
  27. unsigned int __sn_inb(unsigned long port)
  28. {
  29. return ___sn_inb(port);
  30. }
  31. unsigned int __sn_inw(unsigned long port)
  32. {
  33. return ___sn_inw(port);
  34. }
  35. unsigned int __sn_inl(unsigned long port)
  36. {
  37. return ___sn_inl(port);
  38. }
  39. void __sn_outb(unsigned char val, unsigned long port)
  40. {
  41. ___sn_outb(val, port);
  42. }
  43. void __sn_outw(unsigned short val, unsigned long port)
  44. {
  45. ___sn_outw(val, port);
  46. }
  47. void __sn_outl(unsigned int val, unsigned long port)
  48. {
  49. ___sn_outl(val, port);
  50. }
  51. unsigned char __sn_readb(void __iomem *addr)
  52. {
  53. return ___sn_readb(addr);
  54. }
  55. unsigned short __sn_readw(void __iomem *addr)
  56. {
  57. return ___sn_readw(addr);
  58. }
  59. unsigned int __sn_readl(void __iomem *addr)
  60. {
  61. return ___sn_readl(addr);
  62. }
  63. unsigned long __sn_readq(void __iomem *addr)
  64. {
  65. return ___sn_readq(addr);
  66. }
  67. unsigned char __sn_readb_relaxed(void __iomem *addr)
  68. {
  69. return ___sn_readb_relaxed(addr);
  70. }
  71. unsigned short __sn_readw_relaxed(void __iomem *addr)
  72. {
  73. return ___sn_readw_relaxed(addr);
  74. }
  75. unsigned int __sn_readl_relaxed(void __iomem *addr)
  76. {
  77. return ___sn_readl_relaxed(addr);
  78. }
  79. unsigned long __sn_readq_relaxed(void __iomem *addr)
  80. {
  81. return ___sn_readq_relaxed(addr);
  82. }
  83. #endif