/[dynamips]/upstream/dynamips-0.2.7-RC2/dev_plx6520cb.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

Contents of /upstream/dynamips-0.2.7-RC2/dev_plx6520cb.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations)
Sat Oct 6 16:24:54 2007 UTC (16 years, 5 months ago) by dpavlin
File MIME type: text/plain
File size: 817 byte(s)
dynamips-0.2.7-RC2

1 /*
2 * Cisco router simulation platform.
3 * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)
4 *
5 * PLX6520CB PCI bridge.
6 * This is just a fake device.
7 */
8
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12
13 #include "cpu.h"
14 #include "vm.h"
15 #include "dynamips.h"
16 #include "memory.h"
17 #include "device.h"
18 #include "pci_dev.h"
19
20 #define PCI_VENDOR_PLX 0x10b5
21 #define PCI_PRODUCT_PLX_6520CB 0x6520
22
23
24 /*
25 * dev_plx6520cb_init()
26 */
27 int dev_plx6520cb_init(struct pci_bus *pci_bus,int pci_device,
28 struct pci_bus *sec_bus)
29 {
30 struct pci_device *dev;
31
32 dev = pci_bridge_create_dev(pci_bus,"plx6520cb",
33 PCI_VENDOR_PLX,PCI_PRODUCT_PLX_6520CB,
34 pci_device,0,sec_bus,NULL,NULL);
35 return((dev != NULL) ? 0 : -1);
36 }

  ViewVC Help
Powered by ViewVC 1.1.26