http://downloads.netgear.com/files/GPL/GPL_Source_V361j_DM111PSP_series_consumer_rele...
[bcm963xx.git] / bcmdrivers / broadcom / include / bcm963xx / adsldrv.h
index 888bd09..6ae9dac 100755 (executable)
@@ -1,18 +1,22 @@
 /*
-<: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
  *
@@ -37,6 +41,10 @@ extern "C" {
 #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 \
@@ -83,7 +91,18 @@ extern "C" {
     _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
@@ -196,6 +215,22 @@ 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
@@ -215,6 +250,12 @@ typedef struct
 #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);