From 4370aee2db0cacfde63527b50090453554f0dbb1 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 16 Jul 2005 19:05:37 +0000 Subject: move headers and remove some FreeBSD specific stuff. --- sys/dev/pci/if_em.c | 43 +------------------------------------------ sys/dev/pci/if_em.h | 51 ++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 43 insertions(+), 51 deletions(-) diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index d4f81a3b932..f8dcde9880a 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,50 +31,9 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.65 2005/07/16 17:08:02 brad Exp $ */ +/* $OpenBSD: if_em.c,v 1.66 2005/07/16 19:05:36 brad Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ -#include "bpfilter.h" -#include "vlan.h" - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#ifdef INET -#include -#include -#include -#include -#include -#include -#include -#endif - -#if NVLAN > 0 -#include -#include -#endif - -#if NBPFILTER > 0 -#include -#endif - -#include - -#include -#include -#include - #include /********************************************************************* diff --git a/sys/dev/pci/if_em.h b/sys/dev/pci/if_em.h index 72a22948613..894c75adee5 100644 --- a/sys/dev/pci/if_em.h +++ b/sys/dev/pci/if_em.h @@ -32,11 +32,52 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ /* $FreeBSD: if_em.h,v 1.26 2004/09/01 23:22:41 pdeuskar Exp $ */ -/* $OpenBSD: if_em.h,v 1.13 2005/07/16 17:08:02 brad Exp $ */ +/* $OpenBSD: if_em.h,v 1.14 2005/07/16 19:05:36 brad Exp $ */ #ifndef _EM_H_DEFINED_ #define _EM_H_DEFINED_ +#include "bpfilter.h" +#include "vlan.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#ifdef INET +#include +#include +#include +#include +#include +#include +#include +#endif + +#if NVLAN > 0 +#include +#include +#endif + +#if NBPFILTER > 0 +#include +#endif + +#include + +#include +#include +#include + #include /* Tunables */ @@ -126,7 +167,6 @@ POSSIBILITY OF SUCH DAMAGE. */ #define EM_RADV 64 - /* * This parameter controls the maximum no of times the driver will loop * in the isr. @@ -134,11 +174,6 @@ POSSIBILITY OF SUCH DAMAGE. */ #define EM_MAX_INTR 3 -/* - * Inform the stack about transmit checksum offload capabilities. - */ -#define EM_CHECKSUM_FEATURES (CSUM_TCP | CSUM_UDP) - /* * This parameter controls the duration of transmit watchdog timer. */ @@ -183,7 +218,6 @@ POSSIBILITY OF SUCH DAMAGE. ADVERTISE_100_HALF | ADVERTISE_100_FULL | \ ADVERTISE_1000_FULL) -#define EM_VENDOR_ID 0x8086 #define EM_MMBA 0x0010 /* Mem base address */ #define EM_ROUNDUP(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) @@ -193,7 +227,6 @@ POSSIBILITY OF SUCH DAMAGE. #define EM_SMARTSPEED_MAX 15 #define MAX_NUM_MULTICAST_ADDRESSES 128 -#define PCI_ANY_ID (~0U) /* Defines for printing debug information */ #define DEBUG_INIT 0 -- cgit v1.2.3