io_noioport.h 911 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #define inb_p(addr) inb(addr)
  31. #define inw_p(addr) inw(addr)
  32. #define inl_p(addr) inl(addr)
  33. #define outb_p(x, addr) outb((x), (addr))
  34. #define outw_p(x, addr) outw((x), (addr))
  35. #define outl_p(x, addr) outl((x), (addr))
  36. #define insb(a, b, c) BUG()
  37. #define insw(a, b, c) BUG()
  38. #define insl(a, b, c) BUG()
  39. #define outsb(a, b, c) BUG()
  40. #define outsw(a, b, c) BUG()
  41. #define outsl(a, b, c) BUG()
  42. #endif /* __ASM_SH_IO_NOIOPORT_H */