/[dynamips]/trunk/dev_dec21x50.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/dev_dec21x50.c

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

upstream/dynamips-0.2.6-RC5/dev_dec21x50.c revision 6 by dpavlin, Sat Oct 6 16:09:07 2007 UTC upstream/dynamips-0.2.7-RC1/dev_dec21x50.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   * Cisco 7200 (Predator) simulation platform.   * Cisco router simulation platform.
3   * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)   * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)
4   *   *
5   * Cisco C7200 (Predator) DEC21050/DEC21150 PCI bridges.   * DEC21050/DEC21150 PCI bridges.
6   * This is just a fake device.   * This is just a fake device.
7   */   */
8    
# Line 10  Line 10 
10  #include <stdlib.h>  #include <stdlib.h>
11  #include <string.h>  #include <string.h>
12    
13  #include "mips64.h"  #include "cpu.h"
14    #include "vm.h"
15  #include "dynamips.h"  #include "dynamips.h"
16  #include "memory.h"  #include "memory.h"
17  #include "device.h"  #include "device.h"
# Line 21  Line 22 
22  #define PCI_PRODUCT_DEC_21052  0x0021  #define PCI_PRODUCT_DEC_21052  0x0021
23  #define PCI_PRODUCT_DEC_21150  0x0023  #define PCI_PRODUCT_DEC_21150  0x0023
24  #define PCI_PRODUCT_DEC_21152  0x0024  #define PCI_PRODUCT_DEC_21152  0x0024
25    #define PCI_PRODUCT_DEC_21154  0x0026
26    
27    
28  /*  /*
29   * dev_dec21050_init()   * dev_dec21050_init()
# Line 77  int dev_dec21152_init(struct pci_bus *pc Line 80  int dev_dec21152_init(struct pci_bus *pc
80                                 pci_device,0,sec_bus,NULL,NULL);                                 pci_device,0,sec_bus,NULL,NULL);
81     return((dev != NULL) ? 0 : -1);     return((dev != NULL) ? 0 : -1);
82  }  }
83    
84    /*
85     * dev_dec21154_init()
86     */
87    int dev_dec21154_init(struct pci_bus *pci_bus,int pci_device,
88                          struct pci_bus *sec_bus)
89    {
90       struct pci_device *dev;
91      
92       dev = pci_bridge_create_dev(pci_bus,"dec21154",
93                                   PCI_VENDOR_DEC,PCI_PRODUCT_DEC_21154,
94                                   pci_device,0,sec_bus,NULL,NULL);
95       return((dev != NULL) ? 0 : -1);
96    }

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.26