hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/sh/include/asm/io_noioport.h
....@@ -53,12 +53,34 @@
5353 #define outw_p(x, addr) outw((x), (addr))
5454 #define outl_p(x, addr) outl((x), (addr))
5555
56
-#define insb(a, b, c) BUG()
57
-#define insw(a, b, c) BUG()
58
-#define insl(a, b, c) BUG()
56
+static inline void insb(unsigned long port, void *dst, unsigned long count)
57
+{
58
+ BUG();
59
+}
5960
60
-#define outsb(a, b, c) BUG()
61
-#define outsw(a, b, c) BUG()
62
-#define outsl(a, b, c) BUG()
61
+static inline void insw(unsigned long port, void *dst, unsigned long count)
62
+{
63
+ BUG();
64
+}
65
+
66
+static inline void insl(unsigned long port, void *dst, unsigned long count)
67
+{
68
+ BUG();
69
+}
70
+
71
+static inline void outsb(unsigned long port, const void *src, unsigned long count)
72
+{
73
+ BUG();
74
+}
75
+
76
+static inline void outsw(unsigned long port, const void *src, unsigned long count)
77
+{
78
+ BUG();
79
+}
80
+
81
+static inline void outsl(unsigned long port, const void *src, unsigned long count)
82
+{
83
+ BUG();
84
+}
6385
6486 #endif /* __ASM_SH_IO_NOIOPORT_H */