summaryrefslogtreecommitdiffstats
path: root/sys/dev/e1000/e1000_82542.c
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_82542.c
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_82542.c')
-rw-r--r--sys/dev/e1000/e1000_82542.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/e1000/e1000_82542.c b/sys/dev/e1000/e1000_82542.c
index c0b4e88..19d5402 100644
--- a/sys/dev/e1000/e1000_82542.c
+++ b/sys/dev/e1000/e1000_82542.c
@@ -1,6 +1,6 @@
/******************************************************************************
- Copyright (c) 2001-2010, Intel Corporation
+ Copyright (c) 2001-2014, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@ static s32 e1000_init_hw_82542(struct e1000_hw *hw);
static s32 e1000_setup_link_82542(struct e1000_hw *hw);
static s32 e1000_led_on_82542(struct e1000_hw *hw);
static s32 e1000_led_off_82542(struct e1000_hw *hw);
-static void e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index);
+static int e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index);
static void e1000_clear_hw_cntrs_82542(struct e1000_hw *hw);
static s32 e1000_read_mac_addr_82542(struct e1000_hw *hw);
@@ -409,7 +409,7 @@ static s32 e1000_led_off_82542(struct e1000_hw *hw)
* Sets the receive address array register at index to the address passed
* in by addr.
**/
-static void e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index)
+static int e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index)
{
u32 rar_low, rar_high;
@@ -431,6 +431,7 @@ static void e1000_rar_set_82542(struct e1000_hw *hw, u8 *addr, u32 index)
E1000_WRITE_REG_ARRAY(hw, E1000_RA, (index << 1), rar_low);
E1000_WRITE_REG_ARRAY(hw, E1000_RA, ((index << 1) + 1), rar_high);
+ return E1000_SUCCESS;
}
/**
OpenPOWER on IntegriCloud