Add FDC DMA remapping on VT82C686 Super I/O
This commit is contained in:
@@ -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
|
||||
fdc_set_base(fdc_t *fdc, int base)
|
||||
{
|
||||
|
||||
@@ -155,6 +155,7 @@ extern int fdc_is_verify(fdc_t *fdc);
|
||||
extern void fdc_overrun(fdc_t *fdc);
|
||||
extern void fdc_set_base(fdc_t *fdc, int base);
|
||||
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_data(fdc_t *fdc, uint8_t data);
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ vt82c686_fdc_handler(vt82c686_t *dev)
|
||||
if (dev->regs[0x02] & 0x10)
|
||||
fdc_set_base(dev->fdc, io_base);
|
||||
|
||||
fdc_set_dma_ch(dev->fdc, dev->fdc_dma);
|
||||
fdc_set_irq(dev->fdc, dev->fdc_irq);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user