src/state.h

changeset 112
a392eb8f9806
parent 101
e20f02519835
child 142
cfa30b1cd92f
child 151
b63a3999e2e7
     1.1 diff -r 4c85846b09cd -r a392eb8f9806 src/state.h
     1.2 --- a/src/state.h	Sat Nov 17 19:13:08 2012 +0000
     1.3 +++ b/src/state.h	Sat Nov 17 19:18:29 2012 +0000
     1.4 @@ -5,6 +5,7 @@
     1.5  #include <stdint.h>
     1.6  #include <stdbool.h>
     1.7  #include "wd279x.h"
     1.8 +#include "wd2010.h"
     1.9  #include "keyboard.h"
    1.10  
    1.11  // Maximum size of the Boot PROMs. Must be a binary power of two.
    1.12 @@ -74,11 +75,19 @@
    1.13  	bool		dmaen;
    1.14  	bool		dmaenb;
    1.15  
    1.16 +	/// DMA device selection flags
    1.17 +	bool		fd_selected;
    1.18 +	bool       	hd_selected;
    1.19  	/// Floppy disc controller context
    1.20  	WD2797_CTX	fdc_ctx;
    1.21  	/// Current disc image file
    1.22  	FILE *fdc_disc;
    1.23  
    1.24 +	/// Hard disc controller context
    1.25 +	WD2010_CTX  hdc_ctx;
    1.26 +	FILE *hdc_disc0;
    1.27 +	FILE *hdc_disc1;
    1.28 +
    1.29  	/// Keyboard controller context
    1.30  	KEYBOARD_STATE	kbd;
    1.31  } S_state;