From e06cf9993b5a40abcf6c1d6c77b497ff69a9fd44 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 25 Jan 2023 21:58:18 +0100 Subject: kernel/driver: consolidate most header files into driver.h --- src/kernel/arch/amd64/driver/rtl8139.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/amd64/driver/rtl8139.c') diff --git a/src/kernel/arch/amd64/driver/rtl8139.c b/src/kernel/arch/amd64/driver/rtl8139.c index bf8a67a..8a40f28 100644 --- a/src/kernel/arch/amd64/driver/rtl8139.c +++ b/src/kernel/arch/amd64/driver/rtl8139.c @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -11,6 +11,7 @@ #define WAIT -1000 static void accept(VfsReq *req); +static void rtl8139_irq(void); static VfsReq *blocked_on = NULL; @@ -85,7 +86,7 @@ void rtl8139_init(uint32_t bdf) { vfs_root_register("/eth", accept); } -void rtl8139_irq(void) { +static void rtl8139_irq(void) { uint16_t status = port_in16(iobase + INTRSTATUS); if (!(status & 1)) { kprintf("bad rtl8139 status 0x%x\n", status); -- cgit v1.2.3