aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-09-24 19:15:58 +0200
committerMarvin Borner2020-09-24 19:15:58 +0200
commit6dfddc3d7de0ec10eab5ac1a4c894e1ab48b116e (patch)
treea221c92fd22c8de2aa536f18fb55c297ad48043f /kernel/inc
parent0e31b099484eb356184841f245d7d0a47fef0b4d (diff)
IPv6 networking...
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/net.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/inc/net.h b/kernel/inc/net.h
index f3876e9..b5193ed 100644
--- a/kernel/inc/net.h
+++ b/kernel/inc/net.h
@@ -5,9 +5,14 @@
#include <def.h>
+#define RX_BUF_SIZE 0x3000
+
#define RTL8139_VENDOR_ID 0x10ec
#define RTL8139_DEVICE_ID 0x8139
+#define RTL_ROK (1 << 0)
+#define RTL_TOK (1 << 2)
+
#define RTL_PORT_MAC 0x00
#define RTL_PORT_MAR 0x08
#define RTL_PORT_TXSTAT 0x10
@@ -23,7 +28,8 @@
#define RTL_PORT_RXMISS 0x4C
#define RTL_PORT_CONFIG 0x52
-#define ETHERNET_TYPE_IP 0x0800
+#define ETHERNET_TYPE_IP4 0x0800
+#define ETHERNET_TYPE_IP6 0x86dd
#define ETHERNET_TYPE_ARP 0x0806
struct ethernet_packet {