Refactored DMA code.
This commit is contained in:
parent
a076741c6a
commit
4182b10e10
2 changed files with 423 additions and 345 deletions
27
src/ibm.h
27
src/ibm.h
|
|
@ -328,27 +328,24 @@ float pit_timer0_freq();
|
|||
|
||||
|
||||
/*DMA*/
|
||||
typedef struct DMA
|
||||
typedef struct dma_t
|
||||
{
|
||||
uint32_t ab[4],ac[4];
|
||||
uint16_t cb[4];
|
||||
int cc[4];
|
||||
uint32_t ab, ac;
|
||||
uint16_t cb;
|
||||
int cc;
|
||||
int wp;
|
||||
uint8_t m,mode[4];
|
||||
uint8_t page[4];
|
||||
uint8_t m, mode;
|
||||
uint8_t page;
|
||||
uint8_t stat, stat_rq;
|
||||
uint8_t command;
|
||||
int size;
|
||||
|
||||
int xfr_command, xfr_channel;
|
||||
int byte_ptr;
|
||||
|
||||
int is_ps2;
|
||||
uint8_t arb_level[4];
|
||||
uint8_t ps2_mode[4];
|
||||
} DMA;
|
||||
|
||||
DMA dma,dma16;
|
||||
uint8_t ps2_mode;
|
||||
uint8_t arb_level;
|
||||
uint16_t io_addr;
|
||||
} dma_t;
|
||||
|
||||
dma_t dma[8];
|
||||
|
||||
/*PPI*/
|
||||
typedef struct PPI
|
||||
|
|
|
|||
Loading…
Reference in a new issue