Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15772
b: refs/heads/master
c: df86550
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and Jeff Garzik committed Dec 1, 2005
1 parent c9f6784 commit 96ebe8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b85c0ebde63a41d57b6214977ac2752bf5a086f
refs/heads/master: df86550602f320d28fdaeb577c25f9821525bfa0
5 changes: 5 additions & 0 deletions trunk/drivers/net/ixp2000/pm3386.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ void pm3386_get_stats(int port, struct net_device_stats *stats)
/* @@@ Add other stats. */
}

void pm3386_set_carrier(int port, int state)
{
pm3386_port_reg_write(port, 0x703, 0x10, state ? 0x1001 : 0x0000);
}

int pm3386_is_link_up(int port)
{
u16 temp;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/ixp2000/pm3386.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ void pm3386_init_port(int port);
void pm3386_get_mac(int port, u8 *mac);
void pm3386_set_mac(int port, u8 *mac);
void pm3386_get_stats(int port, struct net_device_stats *stats);
void pm3386_set_carrier(int port, int state);
int pm3386_is_link_up(int port);
void pm3386_enable_rx(int port);
void pm3386_disable_rx(int port);
Expand Down

0 comments on commit 96ebe8c

Please sign in to comment.