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

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

revision 13 by dpavlin, Mon Oct 8 16:18:38 2007 UTC revision 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: pci_vt82c586.c,v 1.15 2005/08/05 07:09:30 debug Exp $   *  $Id: pci_vt82c586.c,v 1.18 2005/09/27 23:18:32 debug Exp $
29   *   *
30   *  VIATECH VT82C586 devices:   *  VIATECH VT82C586 devices:
31   *   *
# Line 39  Line 39 
39  #include <stdlib.h>  #include <stdlib.h>
40  #include <string.h>  #include <string.h>
41    
42    #include "bus_pci.h"
43    #include "device.h"
44    #include "devices.h"
45  #include "machine.h"  #include "machine.h"
46  #include "memory.h"  #include "memory.h"
47  #include "misc.h"  #include "misc.h"
 #include "devices.h"  
 #include "bus_pci.h"  
48    
49    
50  #define PCI_VENDOR_VIATECH                0x1106  /* VIA Technologies */  #define PCI_VENDOR_VIATECH                0x1106  /* VIA Technologies */
# Line 125  void pci_vt82c586_ide_init(struct machin Line 126  void pci_vt82c586_ide_init(struct machin
126          switch (machine->machine_type) {          switch (machine->machine_type) {
127    
128          case MACHINE_COBALT:          case MACHINE_COBALT:
129                  dev_wdc_init(machine, mem, 0x100001f0, 8 + 14, 0);      /*  primary  */                  /*  irq 14,15 (+8)  */
130                  dev_wdc_init(machine, mem, 0x10000170, 8 + 15, 2);      /*  secondary */                  device_add(machine, "wdc addr=0x100001f0 irq=22");/* primary  */
131                    device_add(machine, "wdc addr=0x10000170 irq=23");/* secondary*/
132                  break;                  break;
133    
134          case MACHINE_EVBMIPS:          case MACHINE_EVBMIPS:
135                  /*  TODO: Irqs...  */                  /*  TODO: Irqs...  */
136                  dev_wdc_init(machine, mem, 0x180001f0, 8+14, 0);/*  primary  */                  device_add(machine, "wdc addr=0x180001f0 irq=22");/* primary  */
137                  dev_wdc_init(machine, mem, 0x18000170, 8+15, 2);/*  secondary */                  device_add(machine, "wdc addr=0x18000170 irq=23");/* secondary*/
138                    break;
139    
140            case MACHINE_NETWINDER:
141                    /*  TODO: Irqs...  */
142                    device_add(machine, "wdc addr=0x7c0001f0 irq=46");/* primary  */
143                    device_add(machine, "wdc addr=0x7c000170 irq=47");/* secondary*/
144                  break;                  break;
145    
146          default:fatal("pci_vt82c586_ide_init(): unimplemented machine type\n");          default:fatal("pci_vt82c586_ide_init(): unimplemented machine type\n");

Legend:
Removed from v.13  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26