Home | History | Annotate | Download | only in igb
      1 /*
      2  * CDDL HEADER START
      3  *
      4  * Copyright(c) 2007-2009 Intel Corporation. All rights reserved.
      5  * The contents of this file are subject to the terms of the
      6  * Common Development and Distribution License (the "License").
      7  * You may not use this file except in compliance with the License.
      8  *
      9  * You can obtain a copy of the license at:
     10  *	http://www.opensolaris.org/os/licensing.
     11  * See the License for the specific language governing permissions
     12  * and limitations under the License.
     13  *
     14  * When using or redistributing this file, you may do so under the
     15  * License only. No other modification of this header is permitted.
     16  *
     17  * If applicable, add the following below this CDDL HEADER, with the
     18  * fields enclosed by brackets "[]" replaced with your own identifying
     19  * information: Portions Copyright [yyyy] [name of copyright owner]
     20  *
     21  * CDDL HEADER END
     22  */
     23 
     24 /*
     25  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     26  * Use is subject to license terms of the CDDL.
     27  */
     28 
     29 /* IntelVersion: 1.18 v2-9-8_2009-6-12 */
     30 
     31 #ifndef _IGB_NVM_H
     32 #define	_IGB_NVM_H
     33 
     34 #ifdef __cplusplus
     35 extern "C" {
     36 #endif
     37 
     38 void e1000_init_nvm_ops_generic(struct e1000_hw *hw);
     39 s32  e1000_null_read_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
     40 void e1000_null_nvm_generic(struct e1000_hw *hw);
     41 s32  e1000_null_led_default(struct e1000_hw *hw, u16 *data);
     42 s32  e1000_null_write_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
     43 s32 e1000_acquire_nvm_generic(struct e1000_hw *hw);
     44 
     45 s32 e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg);
     46 s32 e1000_read_mac_addr_generic(struct e1000_hw *hw);
     47 s32 e1000_read_pba_num_generic(struct e1000_hw *hw, u32 *pba_num);
     48 s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset,
     49     u16 words, u16 *data);
     50 s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words,
     51     u16 *data);
     52 s32 e1000_valid_led_default_generic(struct e1000_hw *hw, u16 *data);
     53 s32 e1000_validate_nvm_checksum_generic(struct e1000_hw *hw);
     54 s32 e1000_write_nvm_eewr(struct e1000_hw *hw, u16 offset,
     55     u16 words, u16 *data);
     56 s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset,
     57     u16 words, u16 *data);
     58 s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words,
     59     u16 *data);
     60 s32 e1000_update_nvm_checksum_generic(struct e1000_hw *hw);
     61 void e1000_release_nvm_generic(struct e1000_hw *hw);
     62 
     63 #define	E1000_STM_OPCODE	0xDB00
     64 
     65 #ifdef __cplusplus
     66 }
     67 #endif
     68 
     69 #endif	/* _IGB_NVM_H */
     70