Remove dependency on NPCI. Use 'options ATA_NOPCI' to compile without

pci support.  This really needs to be fixed properly some day, but judging
by the fact that the nopci case hasn't compiled for quite a while, there
does not seem to be much urgency.

Reviewed by:	sos
This commit is contained in:
Peter Wemm 2002-07-21 21:37:09 +00:00
parent 397304fe4f
commit b5d0be8951
2 changed files with 6 additions and 3 deletions

View File

@ -261,6 +261,7 @@ AST_DEBUG opt_ata.h
ATAPI_DEBUG opt_ata.h
ATA_DEBUG opt_ata.h
ATA_STATIC_ID opt_ata.h
ATA_NOPCI opt_ata.h
DEV_ATADISK opt_ata.h
DEV_ATAPICD opt_ata.h
DEV_ATAPIST opt_ata.h

View File

@ -28,6 +28,8 @@
* $FreeBSD$
*/
#include "opt_ata.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@ -105,8 +107,7 @@ DRIVER_MODULE(ata, isa, ata_isa_driver, ata_devclass, 0, 0);
* the following is a bandaid to get ISA only setups to link,
* since these are getting rare the ugliness is kept here
*/
#include "pci.h"
#if NPCI == 0
#ifdef ATA_NOPCI
int
ata_dmaalloc(struct ata_device *atadev)
{
@ -134,9 +135,10 @@ ata_dmasetup(struct ata_device *atadev, caddr_t data, int32_t count)
return -1;
}
void
int
ata_dmastart(struct ata_device *atadev, caddr_t data, int32_t count, int dir)
{
return -1;
}
int