io_noioport.h 765 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #define outb(x, y) BUG()
  19. #define outw(x, y) BUG()
  20. #define outl(x, y) BUG()
  21. #define inb_p(addr) inb(addr)
  22. #define inw_p(addr) inw(addr)
  23. #define inl_p(addr) inl(addr)
  24. #define outb_p(x, addr) outb((x), (addr))
  25. #define outw_p(x, addr) outw((x), (addr))
  26. #define outl_p(x, addr) outl((x), (addr))
  27. #define insb(a, b, c) BUG()
  28. #define insw(a, b, c) BUG()
  29. #define insl(a, b, c) BUG()
  30. #define outsb(a, b, c) BUG()
  31. #define outsw(a, b, c) BUG()
  32. #define outsl(a, b, c) BUG()
  33. #endif /* __ASM_SH_IO_NOIOPORT_H */