Sync usage with man page.
[netbsd-mini2440.git] / sys / dev / ata / ataconf.h
blob47b3ffa4709027f5dae9cdf69aeb049e75961a1a
1 /* $NetBSD: ataconf.h,v 1.2 2008/11/12 12:36:11 ad Exp $ */
3 /*
4 * Written in 2006 by ITOH Yasufumi.
5 * Public domain.
6 */
8 #ifndef _DEV_ATA_ATACONF_H_
9 #define _DEV_ATA_ATACONF_H_
11 #if defined(_KERNEL_OPT)
12 #include "opt_modular.h"
13 #endif /* defined(_KERNEL_OPT) */
15 #if !defined(_KERNEL_OPT) || defined(MODULAR)
17 /* compile-in everything for module or module-enabled kernel */
18 # define NATA_DMA 1
19 # define NATA_UDMA 1
20 # define NATA_PIOBM 1
22 #else
24 # include "ata_dma.h"
25 # if NATA_UDMA > 1 && NATA_DMA == 0
26 #error ata_udma requires ata_dma
27 # endif
29 #endif
31 #endif /* _DEV_ATA_ATACONF_H_ */