aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-18 21:04:03 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-28 22:09:07 -0400
commit7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a (patch)
treef8c139332cdda5f135e6e061b77654ee9df7e53d /src/util.h
parent8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3 (diff)
downloadseabios-7b9f29736aecd3ac35021a8fc24ee15fc01d2c5a.tar.gz
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/util.h')
-rw-r--r--src/util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 9c459253..d51e30f7 100644
--- a/src/util.h
+++ b/src/util.h
@@ -124,6 +124,10 @@ void wrmsr_smp(u32 index, u64 val);
void smp_setup(void);
int apic_id_is_present(u8 apic_id);
+// hw/dma.c
+int dma_floppy(u32 addr, int count, int isWrite);
+void dma_setup(void);
+
// hw/floppy.c
extern struct floppy_ext_dbt_s diskette_param_table2;
void floppy_setup(void);
@@ -204,7 +208,6 @@ void reloc_preinit(void *f, void *arg);
// resume.c
extern int HaveRunPost;
-void dma_setup(void);
// romlayout.S
void reset_vector(void) __noreturn;