Add prototypes, and make this compile with -Wall.
This commit is contained in:
parent
43b1b8c08a
commit
66c9485803
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dma.c,v 1.13 1997/03/31 07:32:18 scottr Exp $ */
|
||||
/* $NetBSD: dma.c,v 1.14 1997/04/01 03:10:57 scottr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997
|
||||
@ -48,6 +48,7 @@
|
||||
#include <sys/proc.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <machine/frame.h>
|
||||
#include <machine/cpu.h>
|
||||
|
||||
#include <hp300/dev/dmareg.h>
|
||||
@ -55,9 +56,6 @@
|
||||
|
||||
#include <hp300/hp300/isr.h>
|
||||
|
||||
extern u_int kvtop();
|
||||
extern void PCIA();
|
||||
|
||||
/*
|
||||
* The largest single request will be MAXPHYS bytes which will require
|
||||
* at most MAXPHYS/NBPG+1 chain elements to describe, i.e. if none of
|
||||
@ -362,7 +360,7 @@ dmago(unit, addr, count, flags)
|
||||
* Push back dirty cache lines
|
||||
*/
|
||||
if (mmutype == MMU_68040)
|
||||
DCFP(dc->dm_chain[seg].dc_addr);
|
||||
DCFP((vm_offset_t)dc->dm_chain[seg].dc_addr);
|
||||
#endif
|
||||
if (count < (tcount = NBPG - ((int)addr & PGOFSET)))
|
||||
tcount = count;
|
||||
@ -470,7 +468,6 @@ dmastop(unit)
|
||||
{
|
||||
struct dma_softc *sc = &Dma_softc;
|
||||
struct dma_channel *dc = &sc->sc_chan[unit];
|
||||
struct dmaqueue *dq;
|
||||
|
||||
#ifdef DEBUG
|
||||
if (dmadebug & DDB_FOLLOW)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dmareg.h,v 1.9 1997/03/31 07:32:19 scottr Exp $ */
|
||||
/* $NetBSD: dmareg.h,v 1.10 1997/04/01 03:10:58 scottr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1990, 1993
|
||||
@ -108,7 +108,10 @@ struct dmareg {
|
||||
* look at the 98620C status to get the extended bits.
|
||||
* DMA_ARM: Load address, count and kick-off DMA.
|
||||
*/
|
||||
#define DMA_CLEAR(dc) { v_int dmaclr = (int) dc->dm_Bhwaddr->dmaB_addr; }
|
||||
#define DMA_CLEAR(dc) do { \
|
||||
v_int dmaclr; \
|
||||
dmaclr = (int)dc->dm_Bhwaddr->dmaB_addr; \
|
||||
} while (0);
|
||||
#define DMA_STAT(dc) dc->dm_Bhwaddr->dmaB_stat
|
||||
|
||||
#if defined(HP320)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dmavar.h,v 1.8 1997/03/31 07:32:20 scottr Exp $ */
|
||||
/* $NetBSD: dmavar.h,v 1.9 1997/04/01 03:10:59 scottr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
|
||||
@ -69,6 +69,7 @@ struct dmaqueue {
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
void dmainit __P((void));
|
||||
void dmago __P((int, char *, int, int));
|
||||
void dmastop __P((int));
|
||||
void dmafree __P((struct dmaqueue *));
|
||||
|
Loading…
Reference in New Issue
Block a user