git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] pm3386: add hook for setting carrier
[safe/jmp/linux-2.6]
/
drivers
/
net
/
ixp2000
/
pm3386.c
diff --git
a/drivers/net/ixp2000/pm3386.c
b/drivers/net/ixp2000/pm3386.c
index
870b486
..
ec70b1d
100644
(file)
--- 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)
/* @@@ 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;