Kernel - Adding flags for network adapters
authorJohn Hodge <[email protected]>
Thu, 19 Jul 2012 14:37:26 +0000 (22:37 +0800)
committerJohn Hodge <[email protected]>
Thu, 19 Jul 2012 14:37:26 +0000 (22:37 +0800)
KernelLand/Modules/IPStack/include/adapters_api.h
KernelLand/Modules/Network/E1000/Makefile [new file with mode: 0644]

index 0ecd847..7872998 100644 (file)
 
 #include "buffer.h"
 
+enum eIPStack_AdapterTypes
+{
+       ADAPTERTYPE_ETHERNET_10M,
+       ADAPTERTYPE_ETHERNET_100M,
+       ADAPTERTYPE_ETHERNET_1G
+};
+
+// Checksum offloading
+#define ADAPTERFLAG_OFFLOAD_MAC        (1 <<  0)
+#define ADAPTERFLAG_OFFLOAD_IP4        (1 <<  1)
+#define ADAPTERFLAG_OFFLOAD_IP6        (1 <<  2)
+#define ADAPTERFLAG_OFFLOAD_TCP        (1 <<  3)
+#define ADAPTERFLAG_OFFLOAD_UDP        (1 <<  4)
+
 typedef struct sIPStack_AdapterType tIPStack_AdapterType;
 
 struct sIPStack_AdapterType
diff --git a/KernelLand/Modules/Network/E1000/Makefile b/KernelLand/Modules/Network/E1000/Makefile
new file mode 100644 (file)
index 0000000..00a6e2c
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# Acess2 Intel E1000 driver
+#
+
+OBJ = e1000.o
+NAME = E1000
+
+-include ../Makefile.tpl
+

UCC git Repository :: git.ucc.asn.au