/[gxemul]/trunk/src/include/machine.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/include/machine.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 6 by dpavlin, Mon Oct 8 16:18:11 2007 UTC
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: machine.h,v 1.46 2005/04/16 02:02:28 debug Exp $   *  $Id: machine.h,v 1.53 2005/06/02 17:11:36 debug Exp $
32   */   */
33    
34  #include <sys/types.h>  #include <sys/types.h>
# Line 36  Line 36 
36    
37  #include "symbol.h"  #include "symbol.h"
38    
39    #include "arcbios.h"
40    #include "machine_x86.h"
41    
42  #define MAX_BREAKPOINTS         8  #define MAX_BREAKPOINTS         8
43  #define BREAKPOINT_FLAG_R       1  #define BREAKPOINT_FLAG_R       1
# Line 173  struct machine { Line 175  struct machine {
175    
176          int     n_gfx_cards;          int     n_gfx_cards;
177    
178          /*  Yuck, this is ugly:  */          /*  Machine-dependent: (PROM stuff, etc.)  */
179          struct kn230_csr *kn230_csr;          union {
180          struct kn02_csr *kn02_csr;                  struct machine_arcbios  arc;
181          struct dec_ioasic_data *dec_ioasic_data;                  struct machine_pc       pc;
182          struct ps2_data *ps2_data;          } md;
183          struct dec5800_data *dec5800_csr;  
184          struct au1x00_ic_data *au1x00_ic_data;          /*  Machine-dependent interrupt specific structs:  */
185          struct vr41xx_data *vr41xx_data;                union {
186          struct jazz_data *jazz_data;                  struct kn230_csr *kn230_csr;
187          struct crime_data *crime_data;                  struct kn02_csr *kn02_csr;
188          struct mace_data *mace_data;                  struct dec_ioasic_data *dec_ioasic_data;
189          struct sgi_ip20_data *sgi_ip20_data;                  struct ps2_data *ps2_data;
190          struct sgi_ip22_data *sgi_ip22_data;                  struct dec5800_data *dec5800_csr;
191          struct sgi_ip30_data *sgi_ip30_data;                  struct au1x00_ic_data *au1x00_ic_data;
192                    struct vr41xx_data *vr41xx_data;      
193                    struct jazz_data *jazz_data;
194                    struct sgi_ip20_data *sgi_ip20_data;
195                    struct sgi_ip22_data *sgi_ip22_data;
196                    struct sgi_ip30_data *sgi_ip30_data;
197                    struct {
198                            struct crime_data *crime_data;
199                            struct mace_data *mace_data;
200                    } ip32;
201            } md_int;
202    
203          /*  X11/framebuffer stuff:  */          /*  X11/framebuffer stuff:  */
204          int     use_x11;          int     use_x11;
# Line 212  struct machine { Line 224  struct machine {
224  #define ARCH_HPPA               5  #define ARCH_HPPA               5
225  #define ARCH_ALPHA              6  #define ARCH_ALPHA              6
226  #define ARCH_X86                7  #define ARCH_X86                7
227    #define ARCH_ARM                8
228    
229  /*  MIPS:  */  /*  MIPS:  */
230  #define MACHINE_BAREMIPS        1000  #define MACHINE_BAREMIPS        1000
# Line 224  struct machine { Line 237  struct machine {
237  #define MACHINE_ARC             1007  #define MACHINE_ARC             1007
238  #define MACHINE_MESHCUBE        1008  #define MACHINE_MESHCUBE        1008
239  #define MACHINE_NETGEAR         1009  #define MACHINE_NETGEAR         1009
240  #define MACHINE_WRT54G          1010  #define MACHINE_SONYNEWS        1010
 #define MACHINE_SONYNEWS        1011  
241    
242  /*  PPC:  */  /*  PPC:  */
243  #define MACHINE_BAREPPC         2000  #define MACHINE_BAREPPC         2000
# Line 258  struct machine { Line 270  struct machine {
270  #define MACHINE_BAREX86         7000  #define MACHINE_BAREX86         7000
271  #define MACHINE_X86             7001  #define MACHINE_X86             7001
272    
273    /*  ARM:  */
274    #define MACHINE_BAREARM         8000
275    #define MACHINE_TESTARM         8001
276    
277  /*  Other "pseudo"-machines:  */  /*  Other "pseudo"-machines:  */
278  #define MACHINE_NONE            0  #define MACHINE_NONE            0
279  #define MACHINE_USERLAND        100000  #define MACHINE_USERLAND        100000
# Line 311  struct machine { Line 327  struct machine {
327  #define MACHINE_MACPPC_G4               1  #define MACHINE_MACPPC_G4               1
328  #define MACHINE_MACPPC_G5               2  #define MACHINE_MACPPC_G5               2
329    
330    /*  X86:  */
331    #define MACHINE_X86_GENERIC             1
332    #define MACHINE_X86_XT                  2
333    
334    
335  /*  /*
336   *  Problem: kernels seem to be loaded at low addresses in RAM, so   *  Problem: kernels seem to be loaded at low addresses in RAM, so
# Line 345  void store_string(struct cpu *cpu, uint6 Line 365  void store_string(struct cpu *cpu, uint6
365  int store_64bit_word(struct cpu *cpu, uint64_t addr, uint64_t data64);  int store_64bit_word(struct cpu *cpu, uint64_t addr, uint64_t data64);
366  int store_32bit_word(struct cpu *cpu, uint64_t addr, uint64_t data32);  int store_32bit_word(struct cpu *cpu, uint64_t addr, uint64_t data32);
367  int store_16bit_word(struct cpu *cpu, uint64_t addr, uint64_t data16);  int store_16bit_word(struct cpu *cpu, uint64_t addr, uint64_t data16);
368    void store_byte(struct cpu *cpu, uint64_t addr, uint8_t data);
369  void store_64bit_word_in_host(struct cpu *cpu, unsigned char *data,  void store_64bit_word_in_host(struct cpu *cpu, unsigned char *data,
370          uint64_t data32);          uint64_t data32);
371  void store_32bit_word_in_host(struct cpu *cpu, unsigned char *data,  void store_32bit_word_in_host(struct cpu *cpu, unsigned char *data,

Legend:
Removed from v.4  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26