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

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

revision 41 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_hpcmips.c,v 1.6 2007/01/21 21:02:57 debug Exp $   *  $Id: machine_hpcmips.c,v 1.9 2007/06/15 18:08:10 debug Exp $
29     *
30     *  COMMENT: Handheld MIPS-based machines
31   */   */
32    
33  #include <stdio.h>  #include <stdio.h>
# Line 82  MACHINE_SETUP(hpcmips) Line 84  MACHINE_SETUP(hpcmips)
84    
85                  /*  TODO: irq?  */                  /*  TODO: irq?  */
86                  snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x"                  snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x"
87                      "0a008680 addr_mult=4 in_use=%i", machine->use_x11? 0 : 1);                      "0a008680 addr_mult=4 in_use=%i", !machine->x11_md.in_use);
88                  machine->main_console_handle = (size_t)                  machine->main_console_handle = (size_t)
89                      device_add(machine, tmpstr);                      device_add(machine, tmpstr);
90    
# Line 112  MACHINE_SETUP(hpcmips) Line 114  MACHINE_SETUP(hpcmips)
114    
115                  /*  TODO: irq?  */                  /*  TODO: irq?  */
116                  snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x"                  snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=0 addr=0x"
117                      "0a008680 addr_mult=4 in_use=%i", machine->use_x11? 0 : 1);                      "0a008680 addr_mult=4 in_use=%i", !machine->x11_md.in_use);
118                  machine->main_console_handle = (size_t)                  machine->main_console_handle = (size_t)
119                      device_add(machine, tmpstr);                      device_add(machine, tmpstr);
120    
# Line 131  MACHINE_SETUP(hpcmips) Line 133  MACHINE_SETUP(hpcmips)
133          case MACHINE_HPCMIPS_NEC_MOBILEPRO_770:          case MACHINE_HPCMIPS_NEC_MOBILEPRO_770:
134                  /*  131 MHz VR4121  */                  /*  131 MHz VR4121  */
135                  machine->machine_name = "NEC MobilePro 770";                  machine->machine_name = "NEC MobilePro 770";
                 machine->stable = 1;  
136                  hpc_fb_addr = 0xa000000;                  hpc_fb_addr = 0xa000000;
137                  hpc_fb_xsize = 640;                  hpc_fb_xsize = 640;
138                  hpc_fb_ysize = 240;                  hpc_fb_ysize = 240;
# Line 155  MACHINE_SETUP(hpcmips) Line 156  MACHINE_SETUP(hpcmips)
156          case MACHINE_HPCMIPS_NEC_MOBILEPRO_780:          case MACHINE_HPCMIPS_NEC_MOBILEPRO_780:
157                  /*  166 (or 168) MHz VR4121  */                  /*  166 (or 168) MHz VR4121  */
158                  machine->machine_name = "NEC MobilePro 780";                  machine->machine_name = "NEC MobilePro 780";
                 machine->stable = 1;  
159                  hpc_fb_addr = 0xa180100;                  hpc_fb_addr = 0xa180100;
160                  hpc_fb_xsize = 640;                  hpc_fb_xsize = 640;
161                  hpc_fb_ysize = 240;                  hpc_fb_ysize = 240;
# Line 179  MACHINE_SETUP(hpcmips) Line 179  MACHINE_SETUP(hpcmips)
179          case MACHINE_HPCMIPS_NEC_MOBILEPRO_800:          case MACHINE_HPCMIPS_NEC_MOBILEPRO_800:
180                  /*  131 MHz VR4121  */                  /*  131 MHz VR4121  */
181                  machine->machine_name = "NEC MobilePro 800";                  machine->machine_name = "NEC MobilePro 800";
                 machine->stable = 1;  
182                  hpc_fb_addr = 0xa000000;                  hpc_fb_addr = 0xa000000;
183                  hpc_fb_xsize = 800;                  hpc_fb_xsize = 800;
184                  hpc_fb_ysize = 600;                  hpc_fb_ysize = 600;
# Line 203  MACHINE_SETUP(hpcmips) Line 202  MACHINE_SETUP(hpcmips)
202          case MACHINE_HPCMIPS_NEC_MOBILEPRO_880:          case MACHINE_HPCMIPS_NEC_MOBILEPRO_880:
203                  /*  168 MHz VR4121  */                  /*  168 MHz VR4121  */
204                  machine->machine_name = "NEC MobilePro 880";                  machine->machine_name = "NEC MobilePro 880";
                 machine->stable = 1;  
205                  hpc_fb_addr = 0xa0ea600;                  hpc_fb_addr = 0xa0ea600;
206                  hpc_fb_xsize = 800;                  hpc_fb_xsize = 800;
207                  hpc_fb_ysize = 600;                  hpc_fb_ysize = 600;
# Line 246  MACHINE_SETUP(hpcmips) Line 244  MACHINE_SETUP(hpcmips)
244                              "ns16550 irq=%i addr=0x0c000010", 8+VRIP_INTR_SIU);                              "ns16550 irq=%i addr=0x0c000010", 8+VRIP_INTR_SIU);
245                          x = (size_t)device_add(machine, tmpstr);                          x = (size_t)device_add(machine, tmpstr);
246    
247                          if (!machine->use_x11)                          if (!machine->x11_md.in_use)
248                                  machine->main_console_handle = x;                                  machine->main_console_handle = x;
249                  }                  }
250    
# Line 349  MACHINE_SETUP(hpcmips) Line 347  MACHINE_SETUP(hpcmips)
347                      "res:240,bpp:4,gray,hpck:3084,inv ether=0,0x03fe0300,eth0");                      "res:240,bpp:4,gray,hpck:3084,inv ether=0,0x03fe0300,eth0");
348                  tmp[tmplen-1] = '\0';                  tmp[tmplen-1] = '\0';
349    
350                  if (!machine->use_x11)                  if (!machine->x11_md.in_use)
351                          snprintf(tmp+strlen(tmp), tmplen-strlen(tmp),                          snprintf(tmp+strlen(tmp), tmplen-strlen(tmp),
352                              " console=ttyS0,115200");                              " console=ttyS0,115200");
353                  tmp[tmplen-1] = '\0';                  tmp[tmplen-1] = '\0';

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26