xref: /onnv-gate/usr/src/uts/common/io/e1000g/e1000_82571.h (revision 11020:e0feef27b61a)
14919Sxy150489 /*
24919Sxy150489  * This file is provided under a CDDLv1 license.  When using or
34919Sxy150489  * redistributing this file, you may do so under this license.
44919Sxy150489  * In redistributing this file this license must be included
54919Sxy150489  * and no other modification of this header file is permitted.
64919Sxy150489  *
74919Sxy150489  * CDDL LICENSE SUMMARY
84919Sxy150489  *
98479SChenlu.Chen@Sun.COM  * Copyright(c) 1999 - 2009 Intel Corporation. All rights reserved.
104919Sxy150489  *
114919Sxy150489  * The contents of this file are subject to the terms of Version
124919Sxy150489  * 1.0 of the Common Development and Distribution License (the "License").
134919Sxy150489  *
144919Sxy150489  * You should have received a copy of the License with this software.
154919Sxy150489  * You can obtain a copy of the License at
164919Sxy150489  *	http://www.opensolaris.org/os/licensing.
174919Sxy150489  * See the License for the specific language governing permissions
184919Sxy150489  * and limitations under the License.
194919Sxy150489  */
204919Sxy150489 
214919Sxy150489 /*
228479SChenlu.Chen@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
234919Sxy150489  * Use is subject to license terms of the CDDLv1.
244919Sxy150489  */
254919Sxy150489 
264919Sxy150489 /*
27*11020SMin.Xu@Sun.COM  * IntelVersion: 1.16 v3-1-10-1_2009-9-18_Release14-6
284919Sxy150489  */
294919Sxy150489 #ifndef _E1000_82571_H_
304919Sxy150489 #define	_E1000_82571_H_
314919Sxy150489 
324919Sxy150489 #ifdef __cplusplus
334919Sxy150489 extern "C" {
344919Sxy150489 #endif
354919Sxy150489 
364919Sxy150489 #define	ID_LED_RESERVED_F746	0xF746
374919Sxy150489 #define	ID_LED_DEFAULT_82573	((ID_LED_DEF1_DEF2 << 12) | \
384919Sxy150489 				(ID_LED_OFF1_ON2  <<  8) | \
394919Sxy150489 				(ID_LED_DEF1_DEF2 <<  4) | \
404919Sxy150489 				(ID_LED_DEF1_DEF2))
414919Sxy150489 
424919Sxy150489 #define	E1000_GCR_L1_ACT_WITHOUT_L0S_RX	0x08000000
434919Sxy150489 
447607STed.You@Sun.COM /* Intr Throttling - RW */
457607STed.You@Sun.COM #define	E1000_EITR_82574(_n)	(0x000E8 + (0x4 * (_n)))
467607STed.You@Sun.COM 
477607STed.You@Sun.COM #define	E1000_EIAC_82574	0x000DC /* Ext. Interrupt Auto Clear - RW */
487607STed.You@Sun.COM #define	E1000_EIAC_MASK_82574	0x01F00000
497607STed.You@Sun.COM 
507607STed.You@Sun.COM #define	E1000_NVM_INIT_CTRL2_MNGM 0x6000 /* Manageability Operation Mode mask */
517607STed.You@Sun.COM 
527607STed.You@Sun.COM #define	E1000_RXCFGL	0x0B634 /* TimeSync Rx EtherType & Msg Type Reg - RW */
537607STed.You@Sun.COM 
547607STed.You@Sun.COM bool e1000_get_laa_state_82571(struct e1000_hw *hw);
557607STed.You@Sun.COM void e1000_set_laa_state_82571(struct e1000_hw *hw, bool state);
567607STed.You@Sun.COM 
574919Sxy150489 #ifdef __cplusplus
584919Sxy150489 }
594919Sxy150489 #endif
604919Sxy150489 
614919Sxy150489 #endif	/* _E1000_82571_H_ */
62