xref: /onnv-gate/usr/src/uts/common/io/e1000g/e1000_82543.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.8 v3-1-10-1_2009-9-18_Release14-6
284919Sxy150489  */
294919Sxy150489 #ifndef _E1000_82543_H_
304919Sxy150489 #define	_E1000_82543_H_
314919Sxy150489 
324919Sxy150489 #ifdef __cplusplus
334919Sxy150489 extern "C" {
344919Sxy150489 #endif
354919Sxy150489 
364919Sxy150489 #define	PHY_PREAMBLE		0xFFFFFFFF
374919Sxy150489 #define	PHY_PREAMBLE_SIZE	32
384919Sxy150489 #define	PHY_SOF			0x1
394919Sxy150489 #define	PHY_OP_READ		0x2
404919Sxy150489 #define	PHY_OP_WRITE		0x1
414919Sxy150489 #define	PHY_TURNAROUND		0x2
424919Sxy150489 
434919Sxy150489 #define	TBI_COMPAT_ENABLED	0x1	/* Global "knob" for the workaround */
444919Sxy150489 /* If TBI_COMPAT_ENABLED, then this is the current state (on/off) */
454919Sxy150489 #define	TBI_SBP_ENABLED		0x2
464919Sxy150489 
477607STed.You@Sun.COM void e1000_tbi_adjust_stats_82543(struct e1000_hw *hw,
487607STed.You@Sun.COM     struct e1000_hw_stats *stats,
497607STed.You@Sun.COM     u32 frame_len, u8 *mac_addr,
507607STed.You@Sun.COM     u32 max_frame_size);
517607STed.You@Sun.COM void e1000_set_tbi_compatibility_82543(struct e1000_hw *hw, bool state);
527607STed.You@Sun.COM bool e1000_tbi_sbp_enabled_82543(struct e1000_hw *hw);
537607STed.You@Sun.COM 
544919Sxy150489 #ifdef __cplusplus
554919Sxy150489 }
564919Sxy150489 #endif
574919Sxy150489 
584919Sxy150489 #endif	/* _E1000_82543_H_ */
59