Deleted Added
full compact
e1000_nvm.h (225736) e1000_nvm.h (235527)
1/******************************************************************************
2
1/******************************************************************************
2
3 Copyright (c) 2001-2010, Intel Corporation
3 Copyright (c) 2001-2011, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 13 unchanged lines hidden (view full) ---

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 13 unchanged lines hidden (view full) ---

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
33/*$FreeBSD: stable/9/sys/dev/e1000/e1000_nvm.h 218530 2011-02-11 01:00:26Z jfv $*/
33/*$FreeBSD: stable/9/sys/dev/e1000/e1000_nvm.h 235527 2012-05-16 22:22:52Z jfv $*/
34
35#ifndef _E1000_NVM_H_
36#define _E1000_NVM_H_
37
38void e1000_init_nvm_ops_generic(struct e1000_hw *hw);
39s32 e1000_null_read_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
40void e1000_null_nvm_generic(struct e1000_hw *hw);
41s32 e1000_null_led_default(struct e1000_hw *hw, u16 *data);
42s32 e1000_null_write_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
43s32 e1000_acquire_nvm_generic(struct e1000_hw *hw);
44
45s32 e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg);
46s32 e1000_read_mac_addr_generic(struct e1000_hw *hw);
47s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num,
34
35#ifndef _E1000_NVM_H_
36#define _E1000_NVM_H_
37
38void e1000_init_nvm_ops_generic(struct e1000_hw *hw);
39s32 e1000_null_read_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
40void e1000_null_nvm_generic(struct e1000_hw *hw);
41s32 e1000_null_led_default(struct e1000_hw *hw, u16 *data);
42s32 e1000_null_write_nvm(struct e1000_hw *hw, u16 a, u16 b, u16 *c);
43s32 e1000_acquire_nvm_generic(struct e1000_hw *hw);
44
45s32 e1000_poll_eerd_eewr_done(struct e1000_hw *hw, int ee_reg);
46s32 e1000_read_mac_addr_generic(struct e1000_hw *hw);
47s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num,
48 u32 pba_num_size);
48 u32 pba_num_size);
49s32 e1000_read_pba_length_generic(struct e1000_hw *hw, u32 *pba_num_size);
50s32 e1000_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
51s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset,
49s32 e1000_read_pba_length_generic(struct e1000_hw *hw, u32 *pba_num_size);
50s32 e1000_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data);
51s32 e1000_read_nvm_microwire(struct e1000_hw *hw, u16 offset,
52 u16 words, u16 *data);
52 u16 words, u16 *data);
53s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words,
53s32 e1000_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words,
54 u16 *data);
54 u16 *data);
55s32 e1000_valid_led_default_generic(struct e1000_hw *hw, u16 *data);
56s32 e1000_validate_nvm_checksum_generic(struct e1000_hw *hw);
55s32 e1000_valid_led_default_generic(struct e1000_hw *hw, u16 *data);
56s32 e1000_validate_nvm_checksum_generic(struct e1000_hw *hw);
57s32 e1000_write_nvm_eewr(struct e1000_hw *hw, u16 offset,
58 u16 words, u16 *data);
59s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset,
57s32 e1000_write_nvm_microwire(struct e1000_hw *hw, u16 offset,
60 u16 words, u16 *data);
58 u16 words, u16 *data);
61s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words,
59s32 e1000_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words,
62 u16 *data);
60 u16 *data);
63s32 e1000_update_nvm_checksum_generic(struct e1000_hw *hw);
64void e1000_stop_nvm(struct e1000_hw *hw);
65void e1000_release_nvm_generic(struct e1000_hw *hw);
66
61s32 e1000_update_nvm_checksum_generic(struct e1000_hw *hw);
62void e1000_stop_nvm(struct e1000_hw *hw);
63void e1000_release_nvm_generic(struct e1000_hw *hw);
64
67#define E1000_STM_OPCODE 0xDB00
65#define E1000_STM_OPCODE 0xDB00
68
69#endif
66
67#endif