From ee9bc61792df4a7739f81832a358c065a38176ce Mon Sep 17 00:00:00 2001 From: John Winans Date: Wed, 8 Jun 1994 10:37:03 +0000 Subject: [PATCH] Added the new calls to the A24 support in devLib --- src/drv/drvDvx.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/drv/drvDvx.c b/src/drv/drvDvx.c index 46190e741..ff1bab478 100644 --- a/src/drv/drvDvx.c +++ b/src/drv/drvDvx.c @@ -127,6 +127,7 @@ static char *SccsId = "$Id$"; #include #include #include +#include /* general constants */ #define DVX_ID 0xCFF5 /* analogic ID code */ @@ -517,7 +518,12 @@ LOCAL long dvx_driver_init(void) if (ibptr == NULL) return -1; /* unsuccessfull */ + /* Needs to come from A24 mappable memory...? */ +#if 0 if ((ibptr->data = (short *) malloc(dvx[i].dmaSize * sizeof(short))) == NULL) +#else + if ((ibptr->data = (short *) devLibA24Malloc(dvx[i].dmaSize * sizeof(short))) == NULL) +#endif return(-1); if (j == 0){ @@ -1062,8 +1068,12 @@ LOCAL dvx_dma_init(struct dvx_rec *ptr) dvx_dma_reset(dev); /* reset the DMA chip */ - /* build chain table */ + /* build chain table, needs to come from A24 mappable memory */ +#if 0 if ((cptr = cptr0 = (short *)malloc(DVX_CTBL)) == NULL) +#else + if ((cptr = cptr0 = (short *)devLibA24Malloc(DVX_CTBL)) == NULL) +#endif return -1; dev->dma_point = DMA_MMR; /* enable chip */ dev->dma_data = MMR_ENABLE; @@ -1094,7 +1104,12 @@ LOCAL dvx_dma_init(struct dvx_rec *ptr) if ((i + 1) == DVX_NBUF) cptra = cptr0; /* close list */ else + /* needs to come from A24 mapped memory */ +#if 0 if ((cptra = (short *)malloc(DVX_CTBL)) == NULL) +#else + if ((cptra = (short *)devLibA24Malloc(DVX_CTBL)) == NULL) +#endif return -1; /* allocate next chain */ /* Set the reload word */