15779Sxy150489 /* 25779Sxy150489 * CDDL HEADER START 35779Sxy150489 * 45779Sxy150489 * The contents of this file are subject to the terms of the 55779Sxy150489 * Common Development and Distribution License (the "License"). 65779Sxy150489 * You may not use this file except in compliance with the License. 75779Sxy150489 * 8*12111SGuoqing.Zhu@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*12111SGuoqing.Zhu@Sun.COM * or http://www.opensolaris.org/os/licensing. 105779Sxy150489 * See the License for the specific language governing permissions 115779Sxy150489 * and limitations under the License. 125779Sxy150489 * 13*12111SGuoqing.Zhu@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*12111SGuoqing.Zhu@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155779Sxy150489 * If applicable, add the following below this CDDL HEADER, with the 165779Sxy150489 * fields enclosed by brackets "[]" replaced with your own identifying 175779Sxy150489 * information: Portions Copyright [yyyy] [name of copyright owner] 185779Sxy150489 * 195779Sxy150489 * CDDL HEADER END 205779Sxy150489 */ 215779Sxy150489 225779Sxy150489 /* 23*12111SGuoqing.Zhu@Sun.COM * Copyright(c) 2007-2010 Intel Corporation. All rights reserved. 245779Sxy150489 */ 255779Sxy150489 26*12111SGuoqing.Zhu@Sun.COM /* 27*12111SGuoqing.Zhu@Sun.COM * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 28*12111SGuoqing.Zhu@Sun.COM */ 29*12111SGuoqing.Zhu@Sun.COM 30*12111SGuoqing.Zhu@Sun.COM /* IntelVersion: 1.18 v3_3_14_3_BHSW1 */ 315812Sxy150489 325779Sxy150489 #ifndef _IGB_NVM_H 335779Sxy150489 #define _IGB_NVM_H 345779Sxy150489 355779Sxy150489 #ifdef __cplusplus 365779Sxy150489 extern "C" { 375779Sxy150489 #endif 385779Sxy150489 398571SChenlu.Chen@Sun.COM void e1000_init_nvm_ops_generic(struct e1000_hw *hw); 408571SChenlu.Chen@Sun.COM s32 e1000_null_read_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c); 418571SChenlu.Chen@Sun.COM void e1000_null_nvm_generic(struct e1000_hw *hw); 428571SChenlu.Chen@Sun.COM s32 e1000_null_led_default(struct e1000_hw *hw, u16 *data); 438571SChenlu.Chen@Sun.COM s32 e1000_null_write_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c); 445779Sxy150489 s32 e1000_acquire_nvm_generic(struct e1000_hw *hw); 455779Sxy150489 465779Sxy150489 s32 e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg); 475779Sxy150489 s32 e1000_read_mac_addr_generic(struct e1000_hw *hw); 485779Sxy150489 s32 e1000_read_pba_num_generic(struct e1000_hw *hw, u32 *pba_num); 495779Sxy150489 s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset, 505779Sxy150489 u16 words, u16 *data); 515779Sxy150489 s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, 525779Sxy150489 u16 *data); 535779Sxy150489 s32 e1000_valid_led_default_generic(struct e1000_hw *hw, u16 *data); 545779Sxy150489 s32 e1000_validate_nvm_checksum_generic(struct e1000_hw *hw); 555779Sxy150489 s32 e1000_write_nvm_eewr(struct e1000_hw *hw, u16 offset, 565779Sxy150489 u16 words, u16 *data); 575779Sxy150489 s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset, 585779Sxy150489 u16 words, u16 *data); 595779Sxy150489 s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, 605779Sxy150489 u16 *data); 615779Sxy150489 s32 e1000_update_nvm_checksum_generic(struct e1000_hw *hw); 625779Sxy150489 void e1000_release_nvm_generic(struct e1000_hw *hw); 635779Sxy150489 645779Sxy150489 #define E1000_STM_OPCODE 0xDB00 655779Sxy150489 665779Sxy150489 #ifdef __cplusplus 675779Sxy150489 } 685779Sxy150489 #endif 695779Sxy150489 705779Sxy150489 #endif /* _IGB_NVM_H */ 71