Remove inb and outb, since they have counterparts in ReadPort and WritePort.
This commit is contained in:
parent
f524eee6ff
commit
cdd8b7933f
|
@ -24,27 +24,6 @@ size_t strlen(const char* string) {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
Read data from a port. Effectively communicates with hardware.
|
|
||||||
* @param port: The port number to read, as a hex short.
|
|
||||||
*/
|
|
||||||
uint8_t inb(uint16_t port) {
|
|
||||||
uint8_t ptr;
|
|
||||||
asm volatile("inb %1, %0" : "=a" (ptr) : "dN" (port));
|
|
||||||
return ptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Write data to a port. Effectively communicates with hardware.
|
|
||||||
* @param port: The port to read
|
|
||||||
* @param data: A pointer to which the data will be stored.
|
|
||||||
|
|
||||||
*/
|
|
||||||
void outb(uint16_t port, uint8_t data) {
|
|
||||||
asm volatile("outb %1, %0" : : "dN" (port), "a" (data));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Memory Copy. Required by GCC.
|
Memory Copy. Required by GCC.
|
||||||
* @param dest: The destination in memory, to which the data will be copied.
|
* @param dest: The destination in memory, to which the data will be copied.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user