/[gxemul]/trunk/src/machines/machine_ts7200.c
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/machines/machine_ts7200.c

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

revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 34 by dpavlin, Mon Oct 8 16:21:17 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2006  Anders Gavare.  All rights reserved.   *  Copyright (C) 2006-2007  Anders Gavare.  All rights reserved.
3   *   *
4   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
5   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_ts7200.c,v 1.1 2006/02/17 20:27:21 debug Exp $   *  $Id: machine_ts7200.c,v 1.4 2006/12/30 13:31:02 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 43  MACHINE_SETUP(ts7200) Line 43  MACHINE_SETUP(ts7200)
43  {  {
44          machine->machine_name = "TS7200";          machine->machine_name = "TS7200";
45    
         /*  TODO: _NOT_ an ns16550  */  
         device_add(machine, "ns16550 irq=0 addr=0x808c0000 addr_mult=4");  
   
46          dev_ram_init(machine, 0xc0000000, 0x20000000, DEV_RAM_MIRROR, 0x0);          dev_ram_init(machine, 0xc0000000, 0x20000000, DEV_RAM_MIRROR, 0x0);
47    
48            machine->main_console_handle = (size_t)device_add(machine,
49                "epcom addr=0x808c0000 name2='serial console'");
50    
51    
52          if (!machine->prom_emulation)          if (!machine->prom_emulation)
53                  return;                  return;
54    
# Line 60  MACHINE_SETUP(ts7200) Line 61  MACHINE_SETUP(ts7200)
61    
62  MACHINE_DEFAULT_CPU(ts7200)  MACHINE_DEFAULT_CPU(ts7200)
63  {  {
64          machine->cpu_name = strdup("80321_600_B0");          machine->cpu_name = strdup("ARM920T");
65  }  }
66    
67    
68  MACHINE_REGISTER(ts7200)  MACHINE_REGISTER(ts7200)
69  {  {
70          MR_DEFAULT(ts7200, "TS7200", ARCH_ARM, MACHINE_TS7200, 1, 0);          MR_DEFAULT(ts7200, "TS7200", ARCH_ARM, MACHINE_TS7200);
71          me->aliases[0] = "ts7200";  
72          machine_entry_add(me, ARCH_ARM);          machine_entry_add_alias(me, "ts7200");
73  }  }
74    

Legend:
Removed from v.22  
changed lines
  Added in v.34

  ViewVC Help
Powered by ViewVC 1.1.26