summaryrefslogtreecommitdiff
path: root/sys/arch/socppc/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-05-25 16:23:59 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-05-25 16:23:59 +0000
commit0ee7790b8fc63df37f28852fdc4327a58c6565b7 (patch)
treebc9a1db2753c4c3b32a94335b8485aa36c7a5182 /sys/arch/socppc/dev
parentbddffa476bf561f2cbec7d85c3d5c0e19f2b7d20 (diff)
Specify the PHY to be used in the kernel config instead of hardcoding it
int tsec(4).
Diffstat (limited to 'sys/arch/socppc/dev')
-rw-r--r--sys/arch/socppc/dev/if_tsec.c5
-rw-r--r--sys/arch/socppc/dev/obio.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c
index 0a987cda14f..a372c4819ed 100644
--- a/sys/arch/socppc/dev/if_tsec.c
+++ b/sys/arch/socppc/dev/if_tsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tsec.c,v 1.6 2008/05/25 15:25:30 kettenis Exp $ */
+/* $OpenBSD: if_tsec.c,v 1.7 2008/05/25 16:23:58 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -360,7 +360,8 @@ tsec_attach(struct device *parent, struct device *self, void *aux)
break;
}
- mii_attach(self, &sc->sc_mii, 0xffffffff, 17, MII_OFFSET_ANY, 0);
+ mii_attach(self, &sc->sc_mii, 0xffffffff, oa->oa_phy,
+ MII_OFFSET_ANY, 0);
if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
printf("%s: no PHY found!\n", sc->sc_dev.dv_xname);
ifmedia_add(&sc->sc_media, IFM_ETHER|IFM_MANUAL, 0, NULL);
diff --git a/sys/arch/socppc/dev/obio.c b/sys/arch/socppc/dev/obio.c
index 2afcb84f79d..1081e854ce0 100644
--- a/sys/arch/socppc/dev/obio.c
+++ b/sys/arch/socppc/dev/obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: obio.c,v 1.2 2008/05/17 15:49:05 kettenis Exp $ */
+/* $OpenBSD: obio.c,v 1.3 2008/05/25 16:23:58 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -62,6 +62,7 @@ obio_search(struct device *parent, void *cfdata, void *aux)
oa.oa_dmat = ma->ma_dmat;
oa.oa_offset = cf->cf_offset;
oa.oa_ivec = cf->cf_ivec;
+ oa.oa_phy = cf->cf_phy;
oa.oa_name = cf->cf_driver->cd_name;
config_found(parent, &oa, obio_print);