http://downloads.netgear.com/files/GPL/GPL_Source_V361j_DM111PSP_series_consumer_rele...
[bcm963xx.git] / bcmdrivers / broadcom / include / bcm963xx / bcmadsl.h
index 80ad104..4b30f02 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  : Adsl.h
 //
@@ -91,12 +95,22 @@ typedef struct AdslChannelAddr
 typedef struct AdslConnectionInfo
 {
        ADSL_LINK_STATE LinkState; 
+//LGD_FOR_TR098
+    unsigned long ShowtimeStart;
     UINT32 ulFastUpStreamRate;
     UINT32 ulFastDnStreamRate;
     UINT32 ulInterleavedUpStreamRate;
     UINT32 ulInterleavedDnStreamRate;
 } ADSL_CONNECTION_INFO, *PADSL_CONNECTION_INFO;
 
+//swda.030507
+typedef struct _adslConnectionCounter {
+    char            link_state[16];
+       int                     line_up_count;
+       char                system_up_time_duration[13];
+    char                   line_up_time_duration[13];
+} adslConnectionCounter;
+
 /* OEM parameter definition */
 #define ADSL_OEM_G994_VENDOR_ID       1    /* Vendor ID used during G.994 handshake */
 #define ADSL_OEM_G994_XMT_NS_INFO     2    /* G.994 non-standard info field to send */
@@ -160,6 +174,8 @@ BCMADSL_STATUS BcmAdsl_SendDyingGasp(int powerCtl);
 BCMADSL_STATUS BcmAdsl_Configure(adslCfgProfile *pAdslCfg);
 BCMADSL_STATUS BcmAdsl_GetVersion(adslVersionInfo *pAdslVer);
 BCMADSL_STATUS BcmAdsl_SetSDRAMBaseAddr(void *pAddr);
+//swda.030528
+BCMADSL_STATUS BcmAdsl_GetAdslConnectionCnt(adslConnectionCounter *padslconncnt);
 BCMADSL_STATUS BcmAdsl_SetVcEntry (int gfc, int port, int vpi, int vci);
 BCMADSL_STATUS BcmAdsl_SetVcEntryEx (int gfc, int port, int vpi, int vci, int pti_clp);
 
@@ -196,6 +212,7 @@ void BcmAdsl_AtmClearVcTable(void);
 void BcmAdsl_AtmAddVc(int vpi, int vci);
 void BcmAdsl_AtmDeleteVc(int vpi, int vci);
 void BcmAdsl_AtmSetMaxSdu(unsigned short maxsdu);
+void BcmAdsl_AtmSetPortId(int path, int portId) ;
 
 #if defined(__cplusplus)
 }