diff options
author | Marvin Borner | 2021-05-20 22:18:35 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-20 22:19:20 +0200 |
commit | d8d17375291f89d37cad43df36c11d9c132e23be (patch) | |
tree | ed6ba70ac6bd6b4e50dde6e1a0b2d62b7881e721 /kernel/drivers/rtl8139.c | |
parent | 298aaf63f15350e6248d5a96e8c6a63b0ec93e0f (diff) |
Added BGA driver and generic FB wrapper
Diffstat (limited to 'kernel/drivers/rtl8139.c')
-rw-r--r-- | kernel/drivers/rtl8139.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/drivers/rtl8139.c b/kernel/drivers/rtl8139.c index fdbc0c8..8e7bc88 100644 --- a/kernel/drivers/rtl8139.c +++ b/kernel/drivers/rtl8139.c @@ -2,14 +2,14 @@ // Uses parts of the ToAruOS Project, released under the terms of the NCSA // Copyright (C) 2011-2018 K. Lange -#include <drivers/cpu.h> #include <def.h> +#include <drivers/cpu.h> #include <drivers/interrupts.h> +#include <drivers/pci.h> +#include <drivers/rtl8139.h> #include <mem.h> #include <net.h> -#include <drivers/pci.h> #include <print.h> -#include <drivers/rtl8139.h> static int rtl_irq = 0; static u8 mac[6] = { 0 }; @@ -77,9 +77,8 @@ void rtl8139_send_packet(void *data, u32 len) static void rtl8139_find(u32 device, u16 vendor_id, u16 device_id, void *extra) { - if ((vendor_id == 0x10ec) && (device_id == 0x8139)) { + if ((vendor_id == 0x10ec) && (device_id == 0x8139)) *((u32 *)extra) = device; - } } static void rtl8139_irq_handler(struct regs *r) |