aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_hw.h
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2006-09-27 15:53:57 -0400
committerAuke Kok <juke-jan.h.kok@intel.com>2006-09-27 15:53:57 -0400
commitcaeccb682a2483a79162bb66a431175d4134ae0b (patch)
treeb4f79e694f1cd2332c8294371ba15e1b906f768e /drivers/net/e1000/e1000_hw.h
parent61c2505fd5044d9e108acc6b469d3caa02522043 (diff)
e1000: add PCI-E capability detection code
Add code to display the detected PCI-E bus width. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e1000/e1000_hw.h')
-rw-r--r--drivers/net/e1000/e1000_hw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/e1000/e1000_hw.h b/drivers/net/e1000/e1000_hw.h
index b9364b5fd76f..434492cc329e 100644
--- a/drivers/net/e1000/e1000_hw.h
+++ b/drivers/net/e1000/e1000_hw.h
@@ -418,6 +418,7 @@ void e1000_pci_set_mwi(struct e1000_hw *hw);
418void e1000_pci_clear_mwi(struct e1000_hw *hw); 418void e1000_pci_clear_mwi(struct e1000_hw *hw);
419void e1000_read_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value); 419void e1000_read_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value);
420void e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value); 420void e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t * value);
421int32_t e1000_read_pcie_cap_reg(struct e1000_hw *hw, uint32_t reg, uint16_t *value);
421/* Port I/O is only supported on 82544 and newer */ 422/* Port I/O is only supported on 82544 and newer */
422void e1000_io_write(struct e1000_hw *hw, unsigned long port, uint32_t value); 423void e1000_io_write(struct e1000_hw *hw, unsigned long port, uint32_t value);
423int32_t e1000_disable_pciex_master(struct e1000_hw *hw); 424int32_t e1000_disable_pciex_master(struct e1000_hw *hw);
@@ -2220,6 +2221,11 @@ struct e1000_host_command_info {
2220#define E1000_FACTPS_LAN_FUNC_SEL 0x40000000 2221#define E1000_FACTPS_LAN_FUNC_SEL 0x40000000
2221#define E1000_FACTPS_PM_STATE_CHANGED 0x80000000 2222#define E1000_FACTPS_PM_STATE_CHANGED 0x80000000
2222 2223
2224/* PCI-Ex Config Space */
2225#define PCI_EX_LINK_STATUS 0x12
2226#define PCI_EX_LINK_WIDTH_MASK 0x3F0
2227#define PCI_EX_LINK_WIDTH_SHIFT 4
2228
2223/* EEPROM Commands - Microwire */ 2229/* EEPROM Commands - Microwire */
2224#define EEPROM_READ_OPCODE_MICROWIRE 0x6 /* EEPROM read opcode */ 2230#define EEPROM_READ_OPCODE_MICROWIRE 0x6 /* EEPROM read opcode */
2225#define EEPROM_WRITE_OPCODE_MICROWIRE 0x5 /* EEPROM write opcode */ 2231#define EEPROM_WRITE_OPCODE_MICROWIRE 0x5 /* EEPROM write opcode */