diff options
| author | Tatsumi Hosokawa <hosokawa@FreeBSD.org> | 2000-01-22 17:24:16 +0000 |
|---|---|---|
| committer | Tatsumi Hosokawa <hosokawa@FreeBSD.org> | 2000-01-22 17:24:16 +0000 |
| commit | 19fdaeba9540b768759af343c870936b990c014a (patch) | |
| tree | 2582d41056d541a2184d928d3a1e9f4db3733f77 /sys/dev/sn/if_sn.c | |
| parent | 2a090474ae0c878f06753d7294f8e26ff51c7102 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sn/if_sn.c')
| -rw-r--r-- | sys/dev/sn/if_sn.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index e03e868b58484..cbc18d921c6f7 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -190,13 +190,14 @@ sn_attach(device_t dev) i = inw(BASE + CONFIG_REG_W); printf(i & CR_AUI_SELECT ? "AUI" : "UTP"); - for (j = 0; j < 3; j++) { - u_short w; + if (sc->pccard_enaddr) + for (j = 0; j < 3; j++) { + u_short w; - w = (u_short)sc->arpcom.ac_enaddr[j * 2] | - (((u_short)sc->arpcom.ac_enaddr[j * 2 + 1]) << 8); - outw(BASE + IAR_ADDR0_REG_W + j * 2, w); - } + w = (u_short)sc->arpcom.ac_enaddr[j * 2] | + (((u_short)sc->arpcom.ac_enaddr[j * 2 + 1]) << 8); + outw(BASE + IAR_ADDR0_REG_W + j * 2, w); + } /* * Read the station address from the chip. The MAC address is bank 1, |
