Remove inb and outb, since they have counterparts in ReadPort and WritePort.

This commit is contained in:
Curle 2019-07-24 01:38:00 +01:00
parent f524eee6ff
commit cdd8b7933f

View File

@ -24,27 +24,6 @@ size_t strlen(const char* string) {
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.
* @param dest: The destination in memory, to which the data will be copied.