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/util.h | |
parent | 8b7861c4d4b573ca7e0b43e58bc97ff0244ba9a3 (diff) | |
download | seabios-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |