--- np2/io/dmac.h 2004/01/30 01:29:13 1.6 +++ np2/io/dmac.h 2007/11/03 00:00:20 1.10 @@ -43,23 +43,24 @@ typedef struct { typedef struct { union { - BYTE b[4]; + UINT8 b[4]; UINT16 w[2]; UINT32 d; } adrs; union { - BYTE b[2]; + UINT8 b[2]; UINT16 w; } leng; union { - BYTE b[2]; + UINT8 b[2]; UINT16 w; } adrsorg; union { - BYTE b[2]; + UINT8 b[2]; UINT16 w; } lengorg; - UINT16 action; + UINT8 bound; + UINT8 action; DMAPROC proc; UINT8 mode; UINT8 sreq; @@ -92,11 +93,12 @@ void DMACCALL dma_dummyout(REG8 data); REG8 DMACCALL dma_dummyin(void); REG8 DMACCALL dma_dummyproc(REG8 func); -void dmac_reset(void); +void dmac_reset(const NP2CFG *pConfig); void dmac_bind(void); void dmac_extbind(void); void dmac_check(void); +UINT dmac_getdatas(DMACH dmach, UINT8 *buf, UINT size); void dmac_procset(void); void dmac_attach(REG8 device, REG8 channel);