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

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

revision 26 by dpavlin, Mon Oct 8 16:20:10 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 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_iq80321.c,v 1.19 2006/06/24 10:19:19 debug Exp $   *  $Id: machine_iq80321.c,v 1.26 2007/06/15 18:08:10 debug Exp $
29     *
30     *  COMMENT: Intel IQ80321 (ARM)
31   */   */
32    
33  #include <stdio.h>  #include <stdio.h>
34    #include <stdlib.h>
35  #include <string.h>  #include <string.h>
36    
37  #include "bus_pci.h"  #include "bus_pci.h"
# Line 36  Line 39 
39  #include "device.h"  #include "device.h"
40  #include "devices.h"  #include "devices.h"
41  #include "machine.h"  #include "machine.h"
 #include "machine_interrupts.h"  
42  #include "memory.h"  #include "memory.h"
43  #include "misc.h"  #include "misc.h"
44    
45    
46  MACHINE_SETUP(iq80321)  MACHINE_SETUP(iq80321)
47  {  {
48          struct i80321_data *i80321_data;          char tmpstr[300];
49          struct pci_data *pci;          struct pci_data *pci;
50    
51          /*          /*
# Line 53  MACHINE_SETUP(iq80321) Line 55  MACHINE_SETUP(iq80321)
55           */           */
56    
57          machine->machine_name = "Intel IQ80321";          machine->machine_name = "Intel IQ80321";
         machine->stable = 1;  
58    
         machine->md_interrupt = i80321_interrupt;  
59          cpu->cd.arm.coproc[6] = arm_coproc_i80321_6;          cpu->cd.arm.coproc[6] = arm_coproc_i80321_6;
60    
61          i80321_data = device_add(machine, "i80321 addr=0xffffe000");          snprintf(tmpstr, sizeof(tmpstr), "i80321 irq=%s.cpu[%i].irq "
62          pci = i80321_data->pci_bus;              "addr=0xffffe000", machine->path, machine->bootstrap_cpu);
63            pci = device_add(machine, tmpstr);
64          device_add(machine, "ns16550 irq=28 addr=0xfe800000 "  
65              "name2='serial console'");          snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=%s.cpu[%i].irq."
66                "i80321.%i addr=0xfe800000 name2='serial console'",
67                machine->path, machine->bootstrap_cpu, 28);
68            device_add(machine, tmpstr);
69    
70          /*  0xa0000000 = physical ram, 0xc0000000 = uncached  */          /*  0xa0000000 = physical ram, 0xc0000000 = uncached  */
71          dev_ram_init(machine, 0xa0000000, 0x20000000, DEV_RAM_MIRROR, 0x0);          dev_ram_init(machine, 0xa0000000, 0x20000000, DEV_RAM_MIRROR, 0x0);

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

  ViewVC Help
Powered by ViewVC 1.1.26