diff options
Diffstat (limited to 'drivers/net/ixp2000')
-rw-r--r-- | drivers/net/ixp2000/pm3386.c | 7 | ||||
-rw-r--r-- | drivers/net/ixp2000/pm3386.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ixp2000/pm3386.c b/drivers/net/ixp2000/pm3386.c index 267b6bd5f79f..870b486f5dea 100644 --- a/drivers/net/ixp2000/pm3386.c +++ b/drivers/net/ixp2000/pm3386.c | |||
@@ -215,6 +215,13 @@ void pm3386_get_mac(int port, u8 *mac) | |||
215 | mac[5] = (temp >> 8) & 0xff; | 215 | mac[5] = (temp >> 8) & 0xff; |
216 | } | 216 | } |
217 | 217 | ||
218 | void pm3386_set_mac(int port, u8 *mac) | ||
219 | { | ||
220 | pm3386_port_reg_write(port, 0x308, 0x100, (mac[1] << 8) | mac[0]); | ||
221 | pm3386_port_reg_write(port, 0x309, 0x100, (mac[3] << 8) | mac[2]); | ||
222 | pm3386_port_reg_write(port, 0x30a, 0x100, (mac[5] << 8) | mac[4]); | ||
223 | } | ||
224 | |||
218 | static u32 pm3386_get_stat(int port, u16 base) | 225 | static u32 pm3386_get_stat(int port, u16 base) |
219 | { | 226 | { |
220 | u32 value; | 227 | u32 value; |
diff --git a/drivers/net/ixp2000/pm3386.h b/drivers/net/ixp2000/pm3386.h index 55ecb1834219..117f50afcdea 100644 --- a/drivers/net/ixp2000/pm3386.h +++ b/drivers/net/ixp2000/pm3386.h | |||
@@ -15,6 +15,7 @@ | |||
15 | void pm3386_reset(void); | 15 | void pm3386_reset(void); |
16 | void pm3386_init_port(int port); | 16 | void pm3386_init_port(int port); |
17 | void pm3386_get_mac(int port, u8 *mac); | 17 | void pm3386_get_mac(int port, u8 *mac); |
18 | void pm3386_set_mac(int port, u8 *mac); | ||
18 | void pm3386_get_stats(int port, struct net_device_stats *stats); | 19 | void pm3386_get_stats(int port, struct net_device_stats *stats); |
19 | int pm3386_is_link_up(int port); | 20 | int pm3386_is_link_up(int port); |
20 | void pm3386_enable_rx(int port); | 21 | void pm3386_enable_rx(int port); |