io_noioport.h 1.1 KB

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