aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/en/if_en_pci.c
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2003-06-13 12:08:09 +0000
committerHartmut Brandt <harti@FreeBSD.org>2003-06-13 12:08:09 +0000
commit1ba46a03b796675196d139b89d9fadcb0a14c52e (patch)
treeff743821ab524457790e820a4efa095b00ceb814 /sys/dev/en/if_en_pci.c
parent7ced6062bfbc50028471f0093ec2fdb66a038ef9 (diff)
downloadsrc-1ba46a03b796675196d139b89d9fadcb0a14c52e.tar.gz
src-1ba46a03b796675196d139b89d9fadcb0a14c52e.zip
Make the midway driver use the new ATM phy driver. This allows one to
toggle several media options (sonet/sdh, for example) with ifconfig and to see the carrier state in ifconfig's output. It gives also read/write access (given the right privilegs) to the S/Uni registers to user space programs.
Notes
Notes: svn path=/head/; revision=116294
Diffstat (limited to 'sys/dev/en/if_en_pci.c')
-rw-r--r--sys/dev/en/if_en_pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c
index fec4248be54e..b44bcdbcc96b 100644
--- a/sys/dev/en/if_en_pci.c
+++ b/sys/dev/en/if_en_pci.c
@@ -60,15 +60,18 @@ __FBSDID("$FreeBSD$");
#include <net/if.h>
#include <net/if_atm.h>
+#include <net/if_media.h>
#include <pci/pcivar.h>
#include <pci/pcireg.h>
+#include <dev/utopia/utopia.h>
#include <dev/en/midwayreg.h>
#include <dev/en/midwayvar.h>
MODULE_DEPEND(en, pci, 1, 1, 1);
MODULE_DEPEND(en, atm, 1, 1, 1);
+MODULE_DEPEND(en, utopia, 1, 1, 1);
/*
* local structures