NetBSD/sys/dev/ata/ataconf.h

32 lines
593 B
C

/* $NetBSD: ataconf.h,v 1.3 2009/02/13 22:41:04 apb Exp $ */
/*
* Written in 2006 by ITOH Yasufumi.
* Public domain.
*/
#ifndef _DEV_ATA_ATACONF_H_
#define _DEV_ATA_ATACONF_H_
#if defined(_KERNEL_OPT)
#include "opt_modular.h"
#endif /* defined(_KERNEL_OPT) */
#if !defined(_KERNEL_OPT) || defined(MODULAR)
/* compile-in everything for module or module-enabled kernel */
# define NATA_DMA 1
# define NATA_UDMA 1
# define NATA_PIOBM 1
#else
# include "ata_dma.h"
# if NATA_UDMA > 1 && NATA_DMA == 0
#error ata_udma requires ata_dma
# endif
#endif
#endif /* _DEV_ATA_ATACONF_H_ */