diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-04-30 22:09:17 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-04-30 22:09:17 +0000 |
commit | 27dd3f05c143da3802ebf2a95074c9c83675ce54 (patch) | |
tree | c37864291f3ae0c3cab518055822df992e819c26 /sys/dev/pci | |
parent | 37ee79777e65570eccad503da3158f9c0ec12da6 (diff) |
fix shift by port
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_nx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nx.c b/sys/dev/pci/if_nx.c index f49921164ee..11d426accfe 100644 --- a/sys/dev/pci/if_nx.c +++ b/sys/dev/pci/if_nx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nx.c,v 1.28 2007/04/30 22:02:23 reyk Exp $ */ +/* $OpenBSD: if_nx.c,v 1.29 2007/04/30 22:09:16 reyk Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -1021,7 +1021,7 @@ nx_link_state(struct nx_softc *nx) switch (nxp->nxp_mode) { case NXNIU_MODE_XGE: - status = nxb_read(sc, NXSW_XG_STATE) >> nxp->nxp_id; + status = nxb_read(sc, NXSW_XG_STATE) >> (nxp->nxp_id * 8); if (status & NXSW_XG_LINK_UP) link_state = LINK_STATE_FULL_DUPLEX; if (ifp->if_link_state != link_state) { |