manage.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Intel PRO/1000 Linux driver
  3. * Copyright(c) 1999 - 2015 Intel Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms and conditions of the GNU General Public License,
  7. * version 2, as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * The full GNU General Public License is included in this distribution in
  15. * the file called "COPYING".
  16. *
  17. * Contact Information:
  18. * Linux NICS <linux.nics@intel.com>
  19. * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
  20. * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  21. */
  22. #ifndef _E1000E_MANAGE_H_
  23. #define _E1000E_MANAGE_H_
  24. bool e1000e_check_mng_mode_generic(struct e1000_hw *hw);
  25. bool e1000e_enable_tx_pkt_filtering(struct e1000_hw *hw);
  26. s32 e1000e_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length);
  27. bool e1000e_enable_mng_pass_thru(struct e1000_hw *hw);
  28. enum e1000_mng_mode {
  29. e1000_mng_mode_none = 0,
  30. e1000_mng_mode_asf,
  31. e1000_mng_mode_pt,
  32. e1000_mng_mode_ipmi,
  33. e1000_mng_mode_host_if_only
  34. };
  35. #define E1000_FACTPS_MNGCG 0x20000000
  36. #define E1000_FWSM_MODE_MASK 0xE
  37. #define E1000_FWSM_MODE_SHIFT 1
  38. #define E1000_MNG_IAMT_MODE 0x3
  39. #define E1000_MNG_DHCP_COOKIE_LENGTH 0x10
  40. #define E1000_MNG_DHCP_COOKIE_OFFSET 0x6F0
  41. #define E1000_MNG_DHCP_COMMAND_TIMEOUT 10
  42. #define E1000_MNG_DHCP_TX_PAYLOAD_CMD 64
  43. #define E1000_MNG_DHCP_COOKIE_STATUS_PARSING 0x1
  44. #define E1000_MNG_DHCP_COOKIE_STATUS_VLAN 0x2
  45. #define E1000_VFTA_ENTRY_SHIFT 5
  46. #define E1000_VFTA_ENTRY_MASK 0x7F
  47. #define E1000_VFTA_ENTRY_BIT_SHIFT_MASK 0x1F
  48. #define E1000_HICR_EN 0x01 /* Enable bit - RO */
  49. /* Driver sets this bit when done to put command in RAM */
  50. #define E1000_HICR_C 0x02
  51. #define E1000_HICR_SV 0x04 /* Status Validity */
  52. #define E1000_HICR_FW_RESET_ENABLE 0x40
  53. #define E1000_HICR_FW_RESET 0x80
  54. /* Intel(R) Active Management Technology signature */
  55. #define E1000_IAMT_SIGNATURE 0x544D4149
  56. #endif