src/state.h

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