aboutsummaryrefslogtreecommitdiff
path: root/musl/bits/io.h
diff options
context:
space:
mode:
authorpk33 <pk33@email.com>2024-11-03 03:46:13 +0100
committerpk33 <pk33@email.com>2024-11-03 03:46:13 +0100
commit69058973a9f5073184b9f0b98dbcbbd63da40514 (patch)
tree67d9dcda3c8a67f1b22a0752a25839a2266327e7 /musl/bits/io.h
parent0f23d50c8291b23799e55c8653c15f16c0d752d0 (diff)
downloadengine33-69058973a9f5073184b9f0b98dbcbbd63da40514.tar.gz
ignore
Diffstat (limited to 'musl/bits/io.h')
-rw-r--r--musl/bits/io.h77
1 files changed, 0 insertions, 77 deletions
diff --git a/musl/bits/io.h b/musl/bits/io.h
deleted file mode 100644
index dd5bddc..0000000
--- a/musl/bits/io.h
+++ /dev/null
@@ -1,77 +0,0 @@
-static __inline void outb(unsigned char __val, unsigned short __port)
-{
- __asm__ volatile ("outb %0,%1" : : "a" (__val), "dN" (__port));
-}
-
-static __inline void outw(unsigned short __val, unsigned short __port)
-{
- __asm__ volatile ("outw %0,%1" : : "a" (__val), "dN" (__port));
-}
-
-static __inline void outl(unsigned int __val, unsigned short __port)
-{
- __asm__ volatile ("outl %0,%1" : : "a" (__val), "dN" (__port));
-}
-
-static __inline unsigned char inb(unsigned short __port)
-{
- unsigned char __val;
- __asm__ volatile ("inb %1,%0" : "=a" (__val) : "dN" (__port));
- return __val;
-}
-
-static __inline unsigned short inw(unsigned short __port)
-{
- unsigned short __val;
- __asm__ volatile ("inw %1,%0" : "=a" (__val) : "dN" (__port));
- return __val;
-}
-
-static __inline unsigned int inl(unsigned short __port)
-{
- unsigned int __val;
- __asm__ volatile ("inl %1,%0" : "=a" (__val) : "dN" (__port));
- return __val;
-}
-
-static __inline void outsb(unsigned short __port, const void *__buf, unsigned long __n)
-{
- __asm__ volatile ("cld; rep; outsb"
- : "+S" (__buf), "+c" (__n)
- : "d" (__port));
-}
-
-static __inline void outsw(unsigned short __port, const void *__buf, unsigned long __n)
-{
- __asm__ volatile ("cld; rep; outsw"
- : "+S" (__buf), "+c" (__n)
- : "d" (__port));
-}
-
-static __inline void outsl(unsigned short __port, const void *__buf, unsigned long __n)
-{
- __asm__ volatile ("cld; rep; outsl"
- : "+S" (__buf), "+c"(__n)
- : "d" (__port));
-}
-
-static __inline void insb(unsigned short __port, void *__buf, unsigned long __n)
-{
- __asm__ volatile ("cld; rep; insb"
- : "+D" (__buf), "+c" (__n)
- : "d" (__port));
-}
-
-static __inline void insw(unsigned short __port, void *__buf, unsigned long __n)
-{
- __asm__ volatile ("cld; rep; insw"
- : "+D" (__buf), "+c" (__n)
- : "d" (__port));
-}
-
-static __inline void insl(unsigned short __port, void *__buf, unsigned long __n)
-{
- __asm__ volatile ("cld; rep; insl"
- : "+D" (__buf), "+c" (__n)
- : "d" (__port));
-}