diff options
Diffstat (limited to 'drivers/net/ixp2000')
-rw-r--r-- | drivers/net/ixp2000/pm3386.c | 5 | ||||
-rw-r--r-- | drivers/net/ixp2000/pm3386.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ixp2000/pm3386.c b/drivers/net/ixp2000/pm3386.c index 870b486f5dea..ec70b1d553e3 100644 --- a/drivers/net/ixp2000/pm3386.c +++ b/drivers/net/ixp2000/pm3386.c | |||
@@ -250,6 +250,11 @@ void pm3386_get_stats(int port, struct net_device_stats *stats) | |||
250 | /* @@@ Add other stats. */ | 250 | /* @@@ Add other stats. */ |
251 | } | 251 | } |
252 | 252 | ||
253 | void pm3386_set_carrier(int port, int state) | ||
254 | { | ||
255 | pm3386_port_reg_write(port, 0x703, 0x10, state ? 0x1001 : 0x0000); | ||
256 | } | ||
257 | |||
253 | int pm3386_is_link_up(int port) | 258 | int pm3386_is_link_up(int port) |
254 | { | 259 | { |
255 | u16 temp; | 260 | u16 temp; |
diff --git a/drivers/net/ixp2000/pm3386.h b/drivers/net/ixp2000/pm3386.h index 117f50afcdea..fe92bb056ac4 100644 --- a/drivers/net/ixp2000/pm3386.h +++ b/drivers/net/ixp2000/pm3386.h | |||
@@ -17,6 +17,7 @@ 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_set_mac(int port, u8 *mac); |
19 | void pm3386_get_stats(int port, struct net_device_stats *stats); | 19 | void pm3386_get_stats(int port, struct net_device_stats *stats); |
20 | void pm3386_set_carrier(int port, int state); | ||
20 | int pm3386_is_link_up(int port); | 21 | int pm3386_is_link_up(int port); |
21 | void pm3386_enable_rx(int port); | 22 | void pm3386_enable_rx(int port); |
22 | void pm3386_disable_rx(int port); | 23 | void pm3386_disable_rx(int port); |