Home | History | Annotate | Line # | Download | only in ata
ataconf.h revision 1.2.4.1
      1  1.2.4.1    jym /*	$NetBSD: ataconf.h,v 1.2.4.1 2009/05/13 17:19:11 jym Exp $	*/
      2      1.1  itohy 
      3      1.1  itohy /*
      4      1.1  itohy  * Written in 2006 by ITOH Yasufumi.
      5      1.1  itohy  * Public domain.
      6      1.1  itohy  */
      7      1.1  itohy 
      8      1.1  itohy #ifndef _DEV_ATA_ATACONF_H_
      9      1.1  itohy #define _DEV_ATA_ATACONF_H_
     10      1.1  itohy 
     11  1.2.4.1    jym #if defined(_KERNEL_OPT)
     12  1.2.4.1    jym #include "opt_modular.h"
     13  1.2.4.1    jym #endif /* defined(_KERNEL_OPT) */
     14  1.2.4.1    jym 
     15      1.2     ad #if !defined(_KERNEL_OPT) || defined(MODULAR)
     16      1.1  itohy 
     17      1.2     ad /* compile-in everything for module or module-enabled kernel */
     18      1.1  itohy # define NATA_DMA	1
     19      1.1  itohy # define NATA_UDMA	1
     20      1.1  itohy # define NATA_PIOBM	1
     21      1.1  itohy 
     22      1.1  itohy #else
     23      1.1  itohy 
     24      1.1  itohy # include "ata_dma.h"
     25      1.1  itohy # if NATA_UDMA > 1 && NATA_DMA == 0
     26      1.1  itohy    #error ata_udma requires ata_dma
     27      1.1  itohy # endif
     28      1.1  itohy 
     29      1.1  itohy #endif
     30      1.1  itohy 
     31      1.1  itohy #endif /* _DEV_ATA_ATACONF_H_ */
     32