1 |
/* gxemul: $Id: jazz_r4030_dma.h,v 1.3 2005/03/05 12:34:02 debug Exp $ */ |
/* gxemul: $Id: jazz_r4030_dma.h,v 1.4 2005/06/02 12:31:40 debug Exp $ */ |
2 |
/* $NetBSD: dma.h,v 1.2 2001/07/24 16:26:53 tsutsui Exp $ */ |
/* $NetBSD: dma.h,v 1.2 2001/07/24 16:26:53 tsutsui Exp $ */ |
3 |
/* $OpenBSD: dma.h,v 1.3 1997/04/19 17:19:51 pefo Exp $ */ |
/* $OpenBSD: dma.h,v 1.3 1997/04/19 17:19:51 pefo Exp $ */ |
4 |
|
|
5 |
#ifndef __JAZZ_R4030_DMA |
#ifndef __JAZZ_R4030_DMA |
6 |
#define __JAZZ_R4030_DMA |
#define __JAZZ_R4030_DMA |
7 |
|
|
8 |
#ifndef MIPS64EMUL |
#ifndef GXEMUL |
9 |
#define MIPS64EMUL |
#define GXEMUL |
10 |
#endif |
#endif |
11 |
|
|
12 |
/* |
/* |
84 |
* Structure used to control dma. |
* Structure used to control dma. |
85 |
*/ |
*/ |
86 |
|
|
87 |
#ifndef MIPS64EMUL |
#ifndef GXEMUL |
88 |
typedef struct dma_softc { |
typedef struct dma_softc { |
89 |
struct device sc_dev; /* use as a device */ |
struct device sc_dev; /* use as a device */ |
90 |
struct esp_softc *sc_esp; |
struct esp_softc *sc_esp; |
116 |
#define DMA_DRAIN(r) |
#define DMA_DRAIN(r) |
117 |
#define DMA_END(r) ((r->end)(r)) |
#define DMA_END(r) ((r->end)(r)) |
118 |
|
|
119 |
#ifndef MIPS64EMUL |
#ifndef GXEMUL |
120 |
void picaDmaInit __P((void)); |
void picaDmaInit __P((void)); |
121 |
void picaDmaTLBAlloc __P((dma_softc_t *)); |
void picaDmaTLBAlloc __P((dma_softc_t *)); |
122 |
void picaDmaTLBFree __P((dma_softc_t *)); |
void picaDmaTLBFree __P((dma_softc_t *)); |