diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-09-18 21:04:03 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-09-28 22:09:07 -0400 |
commit | 7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a (patch) | |
tree | f8c139332cdda5f135e6e061b77654ee9df7e53d /src/resume.c | |
parent | 8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3 (diff) | |
download | seabios-hppa-7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a.zip seabios-hppa-7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a.tar.gz seabios-hppa-7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a.tar.bz2 |
Move dma code to new file hw/dma.c.
Move the DMA controller code in resume.c and hw/floppy.c to a new file
hw/dma.c. This centralizes the DMA controller code into one place.
Also, don't unmask the floppy DRQ during floppy setup - there is no
reason to unmask the DRQ prior to a command being programmed into the
DMA controller.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/resume.c')
-rw-r--r-- | src/resume.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/resume.c b/src/resume.c index 12daf0f..370bfe3 100644 --- a/src/resume.c +++ b/src/resume.c @@ -21,19 +21,6 @@ // Indicator if POST phase has been run. int HaveRunPost VARFSEG; -// Reset DMA controller -void -dma_setup(void) -{ - // first reset the DMA controllers - outb(0, PORT_DMA1_MASTER_CLEAR); - outb(0, PORT_DMA2_MASTER_CLEAR); - - // then initialize the DMA controllers - outb(0xc0, PORT_DMA2_MODE_REG); - outb(0x00, PORT_DMA2_MASK_REG); -} - // Handler for post calls that look like a resume. void VISIBLE16 handle_resume(void) |