4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
27 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
30 /* IntelVersion: 1.18 v3_3_14_3_BHSW1 */
39 void e1000_init_nvm_ops_generic(struct e1000_hw
*hw
);
40 s32
e1000_null_read_nvm(struct e1000_hw
*hw
, u16 a
, u16 b
, u16
*c
);
41 void e1000_null_nvm_generic(struct e1000_hw
*hw
);
42 s32
e1000_null_led_default(struct e1000_hw
*hw
, u16
*data
);
43 s32
e1000_null_write_nvm(struct e1000_hw
*hw
, u16 a
, u16 b
, u16
*c
);
44 s32
e1000_acquire_nvm_generic(struct e1000_hw
*hw
);
46 s32
e1000_poll_eerd_eewr_done(struct e1000_hw
*hw
, int ee_reg
);
47 s32
e1000_read_mac_addr_generic(struct e1000_hw
*hw
);
48 s32
e1000_read_pba_string_generic(struct e1000_hw
*hw
, u8
*pba_num
,
50 s32
e1000_read_pba_length_generic(struct e1000_hw
*hw
, u32
*pba_num_size
);
51 s32
e1000_read_nvm_microwire(struct e1000_hw
*hw
, u16 offset
,
52 u16 words
, u16
*data
);
53 s32
e1000_read_nvm_eerd(struct e1000_hw
*hw
, u16 offset
, u16 words
,
55 s32
e1000_valid_led_default_generic(struct e1000_hw
*hw
, u16
*data
);
56 s32
e1000_validate_nvm_checksum_generic(struct e1000_hw
*hw
);
57 s32
e1000_write_nvm_eewr(struct e1000_hw
*hw
, u16 offset
,
58 u16 words
, u16
*data
);
59 s32
e1000_write_nvm_microwire(struct e1000_hw
*hw
, u16 offset
,
60 u16 words
, u16
*data
);
61 s32
e1000_write_nvm_spi(struct e1000_hw
*hw
, u16 offset
, u16 words
,
63 s32
e1000_update_nvm_checksum_generic(struct e1000_hw
*hw
);
64 void e1000_release_nvm_generic(struct e1000_hw
*hw
);
66 #define E1000_STM_OPCODE 0xDB00
72 #endif /* _IGB_NVM_H */