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

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

revision 33 by dpavlin, Mon Oct 8 16:20:58 2007 UTC revision 34 by dpavlin, Mon Oct 8 16:21:17 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2005-2006  Anders Gavare.  All rights reserved.   *  Copyright (C) 2005-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_netwinder.c,v 1.5 2006/08/19 07:58:21 debug Exp $   *  $Id: machine_netwinder.c,v 1.13 2007/01/21 21:02:57 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
32    #include <stdlib.h>
33  #include <string.h>  #include <string.h>
34    
35  #include "bus_isa.h"  #include "bus_isa.h"
# Line 36  Line 37 
37  #include "device.h"  #include "device.h"
38  #include "devices.h"  #include "devices.h"
39  #include "machine.h"  #include "machine.h"
 #include "machine_interrupts.h"  
40  #include "memory.h"  #include "memory.h"
41  #include "misc.h"  #include "misc.h"
42    
43    
44  MACHINE_SETUP(netwinder)  MACHINE_SETUP(netwinder)
45  {  {
46            char tmpstr[300];
47            struct pci_data *pci_bus;
48    
49          machine->machine_name = "NetWinder";          machine->machine_name = "NetWinder";
50          machine->stable = 1;          machine->stable = 1;
51    
# Line 53  MACHINE_SETUP(netwinder) Line 56  MACHINE_SETUP(netwinder)
56          /*  CPU at 63.75 MHz, according to NetBSD's netwinder_machdep.c.  */          /*  CPU at 63.75 MHz, according to NetBSD's netwinder_machdep.c.  */
57          machine->emulated_hz = 63750000;          machine->emulated_hz = 63750000;
58    
59          machine->md_int.footbridge_data =          snprintf(tmpstr, sizeof(tmpstr), "footbridge irq=%s.cpu[%i].irq"
60              device_add(machine, "footbridge addr=0x42000000");              " addr=0x42000000", machine->path, machine->bootstrap_cpu);
61          machine->md_interrupt = isa32_interrupt;          pci_bus = device_add(machine, tmpstr);
         machine->isa_pic_data.native_irq = 11;  
   
         bus_isa_init(machine, 0, 0x7c000000, 0x80000000, 32, 48);  
62    
63          if (machine->use_x11) {          if (machine->use_x11) {
64                  bus_pci_add(machine, machine->md_int.footbridge_data->pcibus,                  bus_pci_add(machine, pci_bus, machine->memory,
65                      machine->memory, 0xc0, 8, 0, "igsfb");                      0xc0, 8, 0, "igsfb");
66          }          }
67    
68          if (!machine->prom_emulation)          if (!machine->prom_emulation)

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

  ViewVC Help
Powered by ViewVC 1.1.26