diff options
| author | leo <leo@NetBSD.org> | 1995-04-28 11:33:01 +0000 |
|---|---|---|
| committer | leo <leo@NetBSD.org> | 1995-04-28 11:33:01 +0000 |
| commit | d3bb44e8f23d009c87c1feec368fe5afb17438d4 (patch) | |
| tree | 326a6f07186c58c7a603027a4d71b462abefb671 /sys/arch/atari/dev | |
| parent | 0e59975face61f8ea8078b67d85ddd37e181fbb9 (diff) | |
Made no_ttram_dma patchable instead of a define.
Diffstat (limited to 'sys/arch/atari/dev')
| -rw-r--r-- | sys/arch/atari/dev/ncr5380.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/arch/atari/dev/ncr5380.c b/sys/arch/atari/dev/ncr5380.c index 68468249dea..dcbf569c4f5 100644 --- a/sys/arch/atari/dev/ncr5380.c +++ b/sys/arch/atari/dev/ncr5380.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr5380.c,v 1.1.1.1 1995/03/26 07:12:10 leo Exp $ */ +/* $NetBSD: ncr5380.c,v 1.2 1995/04/28 11:33:01 leo Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -101,6 +101,12 @@ #else # define PID(a) #endif +#ifdef NO_TTRAM_DMA +int no_ttram_dma = 1; +#else +int no_ttram_dma = 0; +#endif + /* * Return values of check_intr() @@ -390,6 +396,8 @@ void *auxp; SCSI_5380->scsi_idstat = 0; printf("\n"); + if(no_ttram_dma) + printf("DMA to TT-RAM is disabled!\n"); /* @@ -1834,16 +1842,14 @@ SC_REQ *reqp; req_len -= phy_len; dm->dm_count += phy_len; -#ifdef NO_TTRAM_DMA /* * LWP: DMA transfers to TT-ram causes data to be garbeled * without notice on some revisons of the TT-mainboard. * When program's generate misterious Segmentations faults, - * try turning on NO_TTRAM_DMA. + * try turning on no_ttram_dma. */ - if(dm->dm_addr > 0x1000000) /* XXX: should be a define??? */ + if(no_ttram_dma && (dm->dm_addr > 0x1000000)) return(0); -#endif if(req_len) { u_long tmp = kvtop(req_addr); |
