From b05d19b4144917d2ae6568041da28713850b9dec Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 24 Apr 2005 01:09:50 +0000 Subject: [PATCH] needed for compiling et source SVN-Revision: 707 --- .../linux/kernel-source/include/epivers.h | 69 +++++++++++++++++++ .../linux/kernel-source/include/etsockio.h | 58 ++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 openwrt/package/linux/kernel-source/include/epivers.h create mode 100644 openwrt/package/linux/kernel-source/include/etsockio.h diff --git a/openwrt/package/linux/kernel-source/include/epivers.h b/openwrt/package/linux/kernel-source/include/epivers.h new file mode 100644 index 0000000000..e174fb50d8 --- /dev/null +++ b/openwrt/package/linux/kernel-source/include/epivers.h @@ -0,0 +1,69 @@ +/* + * Copyright 2004, Broadcom Corporation + * All Rights Reserved. + * + * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY + * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM + * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. + * + * $Id$ + * +*/ + +#ifndef _epivers_h_ +#define _epivers_h_ + +#ifdef linux +#include +#endif + +/* Vendor Name, ASCII, 32 chars max */ +#ifdef COMPANYNAME +#define HPNA_VENDOR COMPANYNAME +#else +#define HPNA_VENDOR "Broadcom Corporation" +#endif + +/* Driver Date, ASCII, 32 chars max */ +#define HPNA_DRV_BUILD_DATE __DATE__ + +/* Hardware Manufacture Date, ASCII, 32 chars max */ +#define HPNA_HW_MFG_DATE "Not Specified" + +/* See documentation for Device Type values, 32 values max */ +#ifndef HPNA_DEV_TYPE + +#if defined(CONFIG_BRCM_VJ) +#define HPNA_DEV_TYPE { CDCF_V0_DEVICE_DISPLAY } + +#elif defined(CONFIG_BCRM_93725) +#define HPNA_DEV_TYPE { CDCF_V0_DEVICE_CM_BRIDGE, CDCF_V0_DEVICE_DISPLAY } + +#else +#define HPNA_DEV_TYPE { CDCF_V0_DEVICE_PCINIC } + +#endif + +#endif /* !HPNA_DEV_TYPE */ + + +#define EPI_MAJOR_VERSION 3 + +#define EPI_MINOR_VERSION 60 + +#define EPI_RC_NUMBER 13 + +#define EPI_INCREMENTAL_NUMBER 0 + +#define EPI_BUILD_NUMBER 0 + +#define EPI_VERSION 3,60,13,0 + +#define EPI_VERSION_NUM 0x033c0d00 + +/* Driver Version String, ASCII, 32 chars max */ +#define EPI_VERSION_STR "3.60.13.0" +#define EPI_ROUTER_VERSION_STR "3.61.13.0" + +#endif /* _epivers_h_ */ diff --git a/openwrt/package/linux/kernel-source/include/etsockio.h b/openwrt/package/linux/kernel-source/include/etsockio.h new file mode 100644 index 0000000000..59b6af1f81 --- /dev/null +++ b/openwrt/package/linux/kernel-source/include/etsockio.h @@ -0,0 +1,58 @@ +/* + * Driver-specific socket ioctls + * used by BSD, Linux, and PSOS + * Broadcom BCM44XX 10/100Mbps Ethernet Device Driver + * + * Copyright 2004, Broadcom Corporation + * All Rights Reserved. + * + * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY + * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM + * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. + * + * $Id$ + */ + +#ifndef _etsockio_h_ +#define _etsockio_h_ + +/* THESE MUST BE CONTIGUOUS AND CONSISTENT WITH VALUES IN ETC.H */ + + +#if defined(linux) +#define SIOCSETCUP (SIOCDEVPRIVATE + 0) +#define SIOCSETCDOWN (SIOCDEVPRIVATE + 1) +#define SIOCSETCLOOP (SIOCDEVPRIVATE + 2) +#define SIOCGETCDUMP (SIOCDEVPRIVATE + 3) +#define SIOCSETCSETMSGLEVEL (SIOCDEVPRIVATE + 4) +#define SIOCSETCPROMISC (SIOCDEVPRIVATE + 5) +#define SIOCSETCTXDOWN (SIOCDEVPRIVATE + 6) /* obsolete */ +#define SIOCSETCSPEED (SIOCDEVPRIVATE + 7) +#define SIOCTXGEN (SIOCDEVPRIVATE + 8) +#define SIOCGETCPHYRD (SIOCDEVPRIVATE + 9) +#define SIOCSETCPHYWR (SIOCDEVPRIVATE + 10) + +#else /* !linux */ + +#define SIOCSETCUP _IOWR('e', 130 + 0, struct ifreq) +#define SIOCSETCDOWN _IOWR('e', 130 + 1, struct ifreq) +#define SIOCSETCLOOP _IOWR('e', 130 + 2, struct ifreq) +#define SIOCGETCDUMP _IOWR('e', 130 + 3, struct ifreq) +#define SIOCSETCSETMSGLEVEL _IOWR('e', 130 + 4, struct ifreq) +#define SIOCSETCPROMISC _IOWR('e', 130 + 5, struct ifreq) +#define SIOCSETCTXDOWN _IOWR('e', 130 + 6, struct ifreq) /* obsolete */ +#define SIOCSETCSPEED _IOWR('e', 130 + 7, struct ifreq) +#define SIOCTXGEN _IOWR('e', 130 + 8, struct ifreq) + +#endif + +/* arg to SIOCTXGEN */ +struct txg { + uint32 num; /* number of frames to send */ + uint32 delay; /* delay in microseconds between sending each */ + uint32 size; /* size of ether frame to send */ + uchar buf[1514]; /* starting ether frame data */ +}; + +#endif