mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
Kernel: Remove repeated_{in,out}16()
These were some wrappers around x86 "insw/outsw" that are no longer used for anything, so let's remove them.
This commit is contained in:
parent
2e5d5eb3d8
commit
aae91dda66
1 changed files with 0 additions and 15 deletions
15
Kernel/IO.h
15
Kernel/IO.h
|
@ -61,14 +61,6 @@ inline u32 in32(u16 port)
|
|||
return value;
|
||||
}
|
||||
|
||||
inline void repeated_in16(u16 port, u16* buffer, int buffer_size)
|
||||
{
|
||||
asm volatile("rep insw"
|
||||
: "+D"(buffer), "+c"(buffer_size)
|
||||
: "d"(port)
|
||||
: "memory");
|
||||
}
|
||||
|
||||
inline void out8(u16 port, u8 value)
|
||||
{
|
||||
asm volatile("outb %0, %1" ::"a"(value), "Nd"(port));
|
||||
|
@ -84,13 +76,6 @@ inline void out32(u16 port, u32 value)
|
|||
asm volatile("outl %0, %1" ::"a"(value), "Nd"(port));
|
||||
}
|
||||
|
||||
inline void repeated_out16(u16 port, const u16* data, int data_size)
|
||||
{
|
||||
asm volatile("rep outsw"
|
||||
: "+S"(data), "+c"(data_size)
|
||||
: "d"(port));
|
||||
}
|
||||
|
||||
inline void delay(size_t microseconds)
|
||||
{
|
||||
for (size_t i = 0; i < microseconds; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue