summaryrefslogtreecommitdiffstats
path: root/sys/dev/e1000/e1000_i210.h
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2014-07-28 21:11:18 +0000
committerjfv <jfv@FreeBSD.org>2014-07-28 21:11:18 +0000
commit00e682104eb14211088566f56db127cc292bc3bf (patch)
treee1e530888e00e37f9544ea33cebd0f8d60fd6d25 /sys/dev/e1000/e1000_i210.h
parent37a9f7be2fd32cf24c75d466cacac9ce83a3766b (diff)
downloadFreeBSD-src-00e682104eb14211088566f56db127cc292bc3bf.zip
FreeBSD-src-00e682104eb14211088566f56db127cc292bc3bf.tar.gz
MFC of R267935: Sync the E1000 shared code to Intel internal, and
more importantly add new I218 adapter support to em.
Diffstat (limited to 'sys/dev/e1000/e1000_i210.h')
-rw-r--r--sys/dev/e1000/e1000_i210.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/e1000/e1000_i210.h b/sys/dev/e1000/e1000_i210.h
index d8de1bd..2a20ca1 100644
--- a/sys/dev/e1000/e1000_i210.h
+++ b/sys/dev/e1000/e1000_i210.h
@@ -1,6 +1,6 @@
/******************************************************************************
- Copyright (c) 2001-2013, Intel Corporation
+ Copyright (c) 2001-2014, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -49,6 +49,7 @@ s32 e1000_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr,
u16 *data);
s32 e1000_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr,
u16 data);
+s32 e1000_init_hw_i210(struct e1000_hw *hw);
#define E1000_STM_OPCODE 0xDB00
#define E1000_EEPROM_FLASH_SIZE_WORD 0x11
@@ -93,4 +94,16 @@ enum E1000_INVM_STRUCTURE_TYPE {
#define NVM_INIT_CTRL_4_DEFAULT_I211 0x00C1
#define NVM_LED_1_CFG_DEFAULT_I211 0x0184
#define NVM_LED_0_2_CFG_DEFAULT_I211 0x200C
+
+/* PLL Defines */
+#define E1000_PCI_PMCSR 0x44
+#define E1000_PCI_PMCSR_D3 0x03
+#define E1000_MAX_PLL_TRIES 5
+#define E1000_PHY_PLL_UNCONF 0xFF
+#define E1000_PHY_PLL_FREQ_PAGE 0xFC0000
+#define E1000_PHY_PLL_FREQ_REG 0x000E
+#define E1000_INVM_DEFAULT_AL 0x202F
+#define E1000_INVM_AUTOLOAD 0x0A
+#define E1000_INVM_PLL_WO_VAL 0x0010
+
#endif
OpenPOWER on IntegriCloud