Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ata Provide atacmd_to48() in case of #if defined(_ST...



details:   https://anonhg.NetBSD.org/src/rev/c92f4e91a71f
branches:  trunk
changeset: 750679:c92f4e91a71f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jan 10 16:04:25 2010 +0000

description:
Provide atacmd_to48() in case of #if defined(_STANDALONE) too
because standalone wdc driver in cobalt bootloader requires it
for LBA48 support.

diffstat:

 sys/dev/ata/atareg.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d6feba961143 -r c92f4e91a71f sys/dev/ata/atareg.h
--- a/sys/dev/ata/atareg.h      Sun Jan 10 15:37:36 2010 +0000
+++ b/sys/dev/ata/atareg.h      Sun Jan 10 16:04:25 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atareg.h,v 1.34 2009/10/19 18:41:12 bouyer Exp $       */
+/*     $NetBSD: atareg.h,v 1.35 2010/01/10 16:04:25 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -138,7 +138,7 @@
 #define        WDCC_READDMA_EXT        0x25    /* read 48-bit addressing with DMA */
 #define        WDCC_WRITEDMA_EXT       0x35    /* write 48-bit addressing with DMA */
 
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_STANDALONE)
 #include <dev/ata/ataconf.h>
 
 /* Convert a 32-bit command to a 48-bit command. */
@@ -165,7 +165,7 @@
                /* NOTREACHED */
        }
 }
-#endif /* _KERNEL */
+#endif /* _KERNEL || _STANDALONE */
 
 /* Native SATA command queueing */
 #define        WDCC_READ_FPDMA_QUEUED  0x60    /* SATA native queued read (48bit) */



Home | Main Index | Thread Index | Old Index