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.18 v3-1-10-1_2009-9-18_Release14-6 284919Sxy150489 */ 294919Sxy150489 #ifndef _E1000_NVM_H_ 304919Sxy150489 #define _E1000_NVM_H_ 314919Sxy150489 324919Sxy150489 #ifdef __cplusplus 334919Sxy150489 extern "C" { 344919Sxy150489 #endif 354919Sxy150489 366735Scc210113 void e1000_init_nvm_ops_generic(struct e1000_hw *hw); 376735Scc210113 s32 e1000_null_read_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c); 386735Scc210113 void e1000_null_nvm_generic(struct e1000_hw *hw); 396735Scc210113 s32 e1000_null_led_default(struct e1000_hw *hw, u16 *data); 406735Scc210113 s32 e1000_null_write_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c); 414919Sxy150489 s32 e1000_acquire_nvm_generic(struct e1000_hw *hw); 424919Sxy150489 434919Sxy150489 s32 e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg); 444919Sxy150489 s32 e1000_read_mac_addr_generic(struct e1000_hw *hw); 456735Scc210113 s32 e1000_read_pba_num_generic(struct e1000_hw *hw, u32 *pba_num); 464919Sxy150489 s32 e1000_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data); 474919Sxy150489 s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset, 484919Sxy150489 u16 words, u16 *data); 494919Sxy150489 s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data); 504919Sxy150489 s32 e1000_valid_led_default_generic(struct e1000_hw *hw, u16 *data); 514919Sxy150489 s32 e1000_validate_nvm_checksum_generic(struct e1000_hw *hw); 524919Sxy150489 s32 e1000_write_nvm_eewr(struct e1000_hw *hw, u16 offset, 534919Sxy150489 u16 words, u16 *data); 544919Sxy150489 s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset, 554919Sxy150489 u16 words, u16 *data); 564919Sxy150489 s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data); 574919Sxy150489 s32 e1000_update_nvm_checksum_generic(struct e1000_hw *hw); 584919Sxy150489 void e1000_stop_nvm(struct e1000_hw *hw); 594919Sxy150489 void e1000_release_nvm_generic(struct e1000_hw *hw); 604919Sxy150489 614919Sxy150489 #define E1000_STM_OPCODE 0xDB00 624919Sxy150489 634919Sxy150489 #ifdef __cplusplus 644919Sxy150489 } 654919Sxy150489 #endif 664919Sxy150489 674919Sxy150489 #endif /* _E1000_NVM_H_ */ 68