summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/rtl8139.c
diff options
context:
space:
mode:
authordzwdz2023-01-25 21:58:18 +0100
committerdzwdz2023-01-25 21:58:18 +0100
commite06cf9993b5a40abcf6c1d6c77b497ff69a9fd44 (patch)
tree923f70a2285c878118fb2eee66446d948b35ec1f /src/kernel/arch/amd64/driver/rtl8139.c
parentf9ce893e143a7c2356a0f2204afac1f37d3e54d2 (diff)
kernel/driver: consolidate most header files into driver.h
Diffstat (limited to 'src/kernel/arch/amd64/driver/rtl8139.c')
-rw-r--r--src/kernel/arch/amd64/driver/rtl8139.c5
1 files changed, 3 insertions, 2 deletions
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 <kernel/arch/amd64/driver/rtl8139.h>
+#include <kernel/arch/amd64/driver/driver.h>
#include <kernel/arch/amd64/driver/util.h>
#include <kernel/arch/amd64/interrupts.h>
#include <kernel/arch/amd64/pci.h>
@@ -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);