Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix some typos in newer ALi M5229 support. Appro...
details: https://anonhg.NetBSD.org/src/rev/776f4de5a5f2
branches: trunk
changeset: 513535:776f4de5a5f2
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Aug 03 01:31:08 2001 +0000
description:
Fix some typos in newer ALi M5229 support. Approved by bouyer.
diffstat:
sys/dev/pci/pciide.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 67b2f3c676a5 -r 776f4de5a5f2 sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c Fri Aug 03 01:24:39 2001 +0000
+++ b/sys/dev/pci/pciide.c Fri Aug 03 01:31:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pciide.c,v 1.126 2001/08/01 16:29:21 tsutsui Exp $ */
+/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -2912,7 +2912,7 @@
sc->sc_wdcdev.cap |= WDC_CAPABILITY_UDMA;
if (rev >= 0xC4)
sc->sc_wdcdev.UDMA_cap = 5;
- else if (rev >= 0xC4)
+ else if (rev >= 0xC2)
sc->sc_wdcdev.UDMA_cap = 4;
else
sc->sc_wdcdev.UDMA_cap = 2;
@@ -2950,8 +2950,8 @@
/* From linux: enable "Cable Detection" */
if (rev >= 0xC2) {
pciide_pci_write(sc->sc_pc, sc->sc_tag, ACER_0x4B,
- pciide_pci_read(sc->sc_pc, sc->sc_tag, ACER_0x4B_CDETECT)
- | 0x8);
+ pciide_pci_read(sc->sc_pc, sc->sc_tag, ACER_0x4B)
+ | ACER_0x4B_CDETECT);
/* set south-bridge's enable bit, m1533, 0x79 */
if (rev == 0xC2)
/* 1543C-B0 (m1533, 0x79, bit 2) */
Home |
Main Index |
Thread Index |
Old Index