From: John Hodge Date: Thu, 19 Jul 2012 14:37:26 +0000 (+0800) Subject: Kernel - Adding flags for network adapters X-Git-Tag: rel0.15~611^2~15 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=54daad4eb1efb7abf9f6c6f0290ba7a0e5fcd07a;p=tpg%2Facess2.git Kernel - Adding flags for network adapters --- diff --git a/KernelLand/Modules/IPStack/include/adapters_api.h b/KernelLand/Modules/IPStack/include/adapters_api.h index 0ecd8473..78729986 100644 --- a/KernelLand/Modules/IPStack/include/adapters_api.h +++ b/KernelLand/Modules/IPStack/include/adapters_api.h @@ -10,6 +10,20 @@ #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 index 00000000..00a6e2ce --- /dev/null +++ b/KernelLand/Modules/Network/E1000/Makefile @@ -0,0 +1,9 @@ +# +# Acess2 Intel E1000 driver +# + +OBJ = e1000.o +NAME = E1000 + +-include ../Makefile.tpl +