Deleted Added
full compact
e1000_manage.h (176667) e1000_manage.h (181027)
1/*******************************************************************************
1/******************************************************************************
2
3 Copyright (c) 2001-2008, 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,

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

24 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
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
2
3 Copyright (c) 2001-2008, 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,

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

24 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
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: head/sys/dev/em/e1000_manage.h 176667 2008-02-29 21:50:11Z jfv $ */
32******************************************************************************/
33/*$FreeBSD: head/sys/dev/e1000/e1000_manage.h 181027 2008-07-30 21:56:53Z jfv $*/
34
34
35
36#ifndef _E1000_MANAGE_H_
37#define _E1000_MANAGE_H_
38
39bool e1000_check_mng_mode_generic(struct e1000_hw *hw);
40bool e1000_enable_tx_pkt_filtering_generic(struct e1000_hw *hw);
41s32 e1000_mng_enable_host_if_generic(struct e1000_hw *hw);
42s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer,
43 u16 length, u16 offset, u8 *sum);
44s32 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw,
45 struct e1000_host_mng_command_header *hdr);
46s32 e1000_mng_write_dhcp_info_generic(struct e1000_hw *hw,
47 u8 *buffer, u16 length);
35#ifndef _E1000_MANAGE_H_
36#define _E1000_MANAGE_H_
37
38bool e1000_check_mng_mode_generic(struct e1000_hw *hw);
39bool e1000_enable_tx_pkt_filtering_generic(struct e1000_hw *hw);
40s32 e1000_mng_enable_host_if_generic(struct e1000_hw *hw);
41s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer,
42 u16 length, u16 offset, u8 *sum);
43s32 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw,
44 struct e1000_host_mng_command_header *hdr);
45s32 e1000_mng_write_dhcp_info_generic(struct e1000_hw *hw,
46 u8 *buffer, u16 length);
47bool e1000_enable_mng_pass_thru(struct e1000_hw *hw);
48
48
49typedef enum {
49enum e1000_mng_mode {
50 e1000_mng_mode_none = 0,
51 e1000_mng_mode_asf,
52 e1000_mng_mode_pt,
53 e1000_mng_mode_ipmi,
54 e1000_mng_mode_host_if_only
50 e1000_mng_mode_none = 0,
51 e1000_mng_mode_asf,
52 e1000_mng_mode_pt,
53 e1000_mng_mode_ipmi,
54 e1000_mng_mode_host_if_only
55} e1000_mng_mode;
55};
56
57#define E1000_FACTPS_MNGCG 0x20000000
58
59#define E1000_FWSM_MODE_MASK 0xE
60#define E1000_FWSM_MODE_SHIFT 1
61
62#define E1000_MNG_IAMT_MODE 0x3
63#define E1000_MNG_DHCP_COOKIE_LENGTH 0x10

--- 25 unchanged lines hidden ---
56
57#define E1000_FACTPS_MNGCG 0x20000000
58
59#define E1000_FWSM_MODE_MASK 0xE
60#define E1000_FWSM_MODE_SHIFT 1
61
62#define E1000_MNG_IAMT_MODE 0x3
63#define E1000_MNG_DHCP_COOKIE_LENGTH 0x10

--- 25 unchanged lines hidden ---