summaryrefslogtreecommitdiffstats
path: root/sys/dev/dc/if_dcreg.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-10-14 17:22:38 +0000
committeryongari <yongari@FreeBSD.org>2010-10-14 17:22:38 +0000
commitd6f9d67dabf18a8c18c91a2d2f7135ad91f8577b (patch)
treed3b7ed76a25b124c1ed41b7494053d348cafbbc3 /sys/dev/dc/if_dcreg.h
parent212f93db801894a21eb12a1857f17d2824021b47 (diff)
downloadFreeBSD-src-d6f9d67dabf18a8c18c91a2d2f7135ad91f8577b.zip
FreeBSD-src-d6f9d67dabf18a8c18c91a2d2f7135ad91f8577b.tar.gz
It seems some multi-port dc(4) controllers shares SROM of the first
port such that reading station address from second port always returned 0xFF:0xFF:0xFF:0xFF:0xFF:0xFF Unfortunately it seems there is no easy way to know whether SROM is shared or not. Workaround the issue by traversing dc(4) device list and see whether we're using second port and use station address of controller 0 as base station address of second port. PR: kern/79262 MFC after: 2 weeks
Diffstat (limited to 'sys/dev/dc/if_dcreg.h')
-rw-r--r--sys/dev/dc/if_dcreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/dc/if_dcreg.h b/sys/dev/dc/if_dcreg.h
index 20fd2ce..32acc4a 100644
--- a/sys/dev/dc/if_dcreg.h
+++ b/sys/dev/dc/if_dcreg.h
@@ -745,6 +745,7 @@ struct dc_softc {
int dc_if_media;
u_int32_t dc_flags;
u_int32_t dc_txthresh;
+ u_int32_t dc_eaddr[2];
u_int8_t *dc_srom;
struct dc_mediainfo *dc_mi;
struct dc_list_data *dc_ldata;
OpenPOWER on IntegriCloud