io_noioport.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef __ASM_SH_IO_NOIOPORT_H
  2. #define __ASM_SH_IO_NOIOPORT_H
  3. static inline u8 inb(unsigned long addr)
  4. {
  5. BUG();
  6. return -1;
  7. }
  8. static inline u16 inw(unsigned long addr)
  9. {
  10. BUG();
  11. return -1;
  12. }
  13. static inline u32 inl(unsigned long addr)
  14. {
  15. BUG();
  16. return -1;
  17. }
  18. static inline void outb(unsigned char x, unsigned long port)
  19. {
  20. BUG();
  21. }
  22. static inline void outw(unsigned short x, unsigned long port)
  23. {
  24. BUG();
  25. }
  26. static inline void outl(unsigned int x, unsigned long port)
  27. {
  28. BUG();
  29. }
  30. static inline void __iomem *ioport_map(unsigned long port, unsigned int size)
  31. {
  32. BUG();
  33. return NULL;
  34. }
  35. static inline void ioport_unmap(void __iomem *addr)
  36. {
  37. BUG();
  38. }
  39. #define inb_p(addr) inb(addr)
  40. #define inw_p(addr) inw(addr)
  41. #define inl_p(addr) inl(addr)
  42. #define outb_p(x, addr) outb((x), (addr))
  43. #define outw_p(x, addr) outw((x), (addr))
  44. #define outl_p(x, addr) outl((x), (addr))
  45. #define insb(a, b, c) BUG()
  46. #define insw(a, b, c) BUG()
  47. #define insl(a, b, c) BUG()
  48. #define outsb(a, b, c) BUG()
  49. #define outsw(a, b, c) BUG()
  50. #define outsl(a, b, c) BUG()
  51. #endif /* __ASM_SH_IO_NOIOPORT_H */