aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/net/rtl8139.c
diff options
context:
space:
mode:
authorMarvin Borner2019-12-21 22:22:03 +0100
committerMarvin Borner2019-12-21 22:22:03 +0100
commit499784a824c541001c2fd52ae95eba88dcfc952b (patch)
treec3c26d7c8a3b9291d909f4655b7d27a5ae2369bc /src/kernel/net/rtl8139.c
parent38610cd06dc0b5a3a4ee46f5fe7c341191aa2bc1 (diff)
Many debugging/serial improvements
Sorry for the little information, but I did many things :)
Diffstat (limited to 'src/kernel/net/rtl8139.c')
-rw-r--r--src/kernel/net/rtl8139.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/net/rtl8139.c b/src/kernel/net/rtl8139.c
index de68700..cfddebc 100644
--- a/src/kernel/net/rtl8139.c
+++ b/src/kernel/net/rtl8139.c
@@ -3,6 +3,7 @@
#include <kernel/system.h>
#include <kernel/interrupts/interrupts.h>
#include <kernel/lib/stdlib/liballoc.h>
+#include <kernel/lib/stdio.h>
int rtl_irq = 0;
uint8_t mac[6];
@@ -19,14 +20,14 @@ void find_rtl(uint32_t device, uint16_t vendor_id, uint16_t device_id, void *ext
void rtl8139_irq_handler(struct regs *r)
{
- serial_write("RTL INT!\n");
+ serial_printf("RTL INT!");
uint16_t status = inw(rtl_iobase + 0x3E);
if (!status) return;
outw(rtl_iobase + 0x3E, status);
if (status & 0x01 || status & 0x02) {
while ((inw(rtl_iobase + 0x37) & 0x01) == 0) {
- serial_write("RECEIVE\n");
+ serial_printf("RECEIVE");
// RECEIVE
}
}