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 |
} |