Module Name: src Committed By: tsutsui Date: Sun Jan 10 16:04:25 UTC 2010
Modified Files: src/sys/dev/ata: atareg.h Log Message: Provide atacmd_to48() in case of #if defined(_STANDALONE) too because standalone wdc driver in cobalt bootloader requires it for LBA48 support. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/dev/ata/atareg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ata/atareg.h diff -u src/sys/dev/ata/atareg.h:1.34 src/sys/dev/ata/atareg.h:1.35 --- src/sys/dev/ata/atareg.h:1.34 Mon Oct 19 18:41:12 2009 +++ src/sys/dev/ata/atareg.h Sun Jan 10 16:04:25 2010 @@ -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) */