diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2004-11-24 20:50:56 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2004-11-24 20:50:56 +0000 |
commit | 73ec7c508b8c3c4a502c1f95cc299cfdf7c4d2ff (patch) | |
tree | 85d37b766cff37680fb79c9904a15ab59ebc56e0 /sys/dev/pci | |
parent | eeded23802a53976d03497b7ea098b13c86e1c1e (diff) |
clear register 0x41, not 0x43 (endianness)
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_iwi.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 3cc2e17ce46..732a546773e 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $Id: if_ipw.c,v 1.26 2004/11/20 16:28:31 damien Exp $ */ +/* $Id: if_ipw.c,v 1.27 2004/11/24 20:50:55 damien Exp $ */ /*- * Copyright (c) 2004 @@ -179,7 +179,7 @@ ipw_attach(struct device *parent, struct device *self, void *aux) sc->sc_pct = pa->pa_pc; data = pci_conf_read(sc->sc_pct, pa->pa_tag, 0x40); - data &= ~0x00ff0000; + data &= ~0x0000ff00; pci_conf_write(sc->sc_pct, pa->pa_tag, 0x40, data); /* enable bus-mastering */ diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index d1c6022ebcf..64e68f31b35 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $Id: if_iwi.c,v 1.9 2004/11/24 20:44:10 damien Exp $ */ +/* $Id: if_iwi.c,v 1.10 2004/11/24 20:50:55 damien Exp $ */ /*- * Copyright (c) 2004 @@ -185,7 +185,7 @@ iwi_attach(struct device *parent, struct device *self, void *aux) sc->sc_pct = pa->pa_pc; data = pci_conf_read(sc->sc_pct, pa->pa_tag, 0x40); - data &= ~0x00ff0000; + data &= ~0x0000ff00; pci_conf_write(sc->sc_pct, pa->pa_tag, 0x40, data); /* enable bus-mastering */ |