Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pnp support & devices #162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/devices/floppy/fdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Implementation of the NEC uPD-765 and compatible floppy disk
* controller.
*
* Version: @(#)fdc.c 1.0.30 2021/05/24
* Version: @(#)fdc.c 1.0.31 2021/11/13
*
* Authors: Miran Grca, <mgrca8@gmail.com>
* Sarah Walker, <tommowalker@tommowalker.co.uk>
Expand Down Expand Up @@ -2133,6 +2133,17 @@ fdc_set_swap(fdc_t *fdc, uint8_t swap)
fdc->swap = swap;
}

void
fdc_set_irq(fdc_t *fdc, int irq)
{
fdc->irq = 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)
Expand Down
4 changes: 3 additions & 1 deletion src/devices/floppy/fdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Definitions for the floppy disk controller driver.
*
* Version: @(#)fdc.h 1.0.11 2021/04/06
* Version: @(#)fdc.h 1.0.12 2021/11/13
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
Expand Down Expand Up @@ -194,6 +194,8 @@ extern void fdc_track_finishread(fdc_t *fdc, int condition);
extern int fdc_is_verify(fdc_t *fdc);

extern void fdc_overrun(fdc_t *fdc);
extern void fdc_set_irq(fdc_t *fdc, int irq);
extern void fdc_set_dma_ch(fdc_t *fdc, int dma_ch);
extern void fdc_set_base(fdc_t *fdc, int base);
extern int fdc_getdata(fdc_t *fdc, int last);
extern int fdc_data(fdc_t *fdc, uint8_t data);
Expand Down
Loading