/*
-<:copyright-broadcom
+<:copyright-gpl
+ Copyright 2004 Broadcom Corp. All Rights Reserved.
- Copyright (c) 2002 Broadcom Corporation
- All Rights Reserved
- No portions of this material may be reproduced in any form without the
- written permission of:
- Broadcom Corporation
- 16215 Alton Parkway
- Irvine, California 92619
- All information contained in this document is Broadcom Corporation
- company private, proprietary, and trade secret.
+ This program is free software; you can distribute it and/or modify it
+ under the terms of the GNU General Public License (Version 2) as
+ published by the Free Software Foundation.
+ This program is distributed in the hope it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
:>
*/
+
/***************************************************************************
* File Name : AdslDrv.h
*
#define DSL_IFNAME "dsl0"
#define ADSLDRV_MAJOR 208 /* arbitrary unused value */
+#ifdef HMI_QA_SUPPORT
+#include "HmiDef.h"
+#endif
+
#define ADSLIOCTL_CHECK \
_IOR(ADSLDRV_MAJOR, 0, ADSLDRV_STATUS_ONLY)
#define ADSLIOCTL_INITIALIZE \
_IOR(ADSLDRV_MAJOR, 21, ADSLDRV_STATUS_ONLY)
#define ADSLIOCTL_SET_OBJ_VALUE \
_IOR(ADSLDRV_MAJOR, 22, ADSLDRV_GET_OBJ)
-#define MAX_ADSLDRV_IOCTL_COMMANDS 23
+//swda.030507
+#define ADSLIOCTL_GET_ADSL_CONNECTION_COUNTER \
+ _IOR(ADSLDRV_MAJOR, 23, ADSLDRV_GET_ADSL_CONNECTION_COUNTER)
+#define ADSLIOCTL_EOC_PROCESS \
+ _IOR(ADSLDRV_MAJOR, 24, ADSLDRV_EOC_PROCESS)
+#ifdef HMI_QA_SUPPORT
+#define ADSLIOCTL_HMI_COMMAND \
+ _IOR(ADSLDRV_MAJOR, 25, ADSLDRV_HMI)
+#define MAX_ADSLDRV_IOCTL_COMMANDS 26
+#else
+#define MAX_ADSLDRV_IOCTL_COMMANDS 25
+#endif
/* Typedefs. */
typedef struct
BCMADSL_STATUS bvStatus;
} ADSLDRV_SET_OEM_PARAM, *PADSLDRV_SET_OEM_PARAM;
+//swda add start
+typedef struct
+{
+ adslConnectionCounter *pAdslConnectCnt;
+ BCMADSL_STATUS bvStatus;
+} ADSLDRV_GET_ADSL_CONNECTION_COUNTER, *PADSLDRV_GET_ADSL_CONNECTION_COUNTER;
+
+typedef struct
+{
+ int eoc_cmd;
+ char *eoc_message;
+ char eoc_len;
+ BCMADSL_STATUS bvStatus;
+} ADSLDRV_EOC_PROCESS, *PADSLDRV_EOC_PROCESS;
+//swda add end
+
#if defined(__cplusplus)
}
#endif
#define ADSL_2P_EOC_HDR_LEN 2
#define ADSL_EOC_ENABLE {0xff, 0x03, 0x00, 0x57}
+//swda add,08/07/2006
+//#define ADSL_EOC_POLL 0
+#define ADSL_EOC_READ 1
+#define ADSL_EOC_WRITE 2
+//swda add end
+
void AdslCheckLinkupMsg(void);
void snmp_adsl_eoc_event(void);