Add FDC DMA remapping on VT82C686 Super I/O

This commit is contained in:
RichardG867
2020-10-22 17:45:31 -03:00
parent e09a48372c
commit 86feb28064
3 changed files with 9 additions and 0 deletions

View File

@@ -2160,6 +2160,13 @@ fdc_set_irq(fdc_t *fdc, int irq)
} }
void
fdc_set_dma_ch(fdc_t *fdc, int dma_ch)
{
fdc->dma_ch = dma_ch;
}
void void
fdc_set_base(fdc_t *fdc, int base) fdc_set_base(fdc_t *fdc, int base)
{ {

View File

@@ -155,6 +155,7 @@ extern int fdc_is_verify(fdc_t *fdc);
extern void fdc_overrun(fdc_t *fdc); extern void fdc_overrun(fdc_t *fdc);
extern void fdc_set_base(fdc_t *fdc, int base); extern void fdc_set_base(fdc_t *fdc, int base);
extern void fdc_set_irq(fdc_t *fdc, int irq); extern void fdc_set_irq(fdc_t *fdc, int irq);
extern void fdc_set_dma_ch(fdc_t *fdc, int dma_ch);
extern int fdc_getdata(fdc_t *fdc, int last); extern int fdc_getdata(fdc_t *fdc, int last);
extern int fdc_data(fdc_t *fdc, uint8_t data); extern int fdc_data(fdc_t *fdc, uint8_t data);

View File

@@ -62,6 +62,7 @@ vt82c686_fdc_handler(vt82c686_t *dev)
if (dev->regs[0x02] & 0x10) if (dev->regs[0x02] & 0x10)
fdc_set_base(dev->fdc, io_base); fdc_set_base(dev->fdc, io_base);
fdc_set_dma_ch(dev->fdc, dev->fdc_dma);
fdc_set_irq(dev->fdc, dev->fdc_irq); fdc_set_irq(dev->fdc, dev->fdc_irq);
} }