1 |
dpavlin |
1 |
/* |
2 |
dpavlin |
7 |
* Cisco router simulation platform. |
3 |
dpavlin |
1 |
* Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr) |
4 |
|
|
* |
5 |
|
|
* Pericom PCI bridge. |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
#include <stdio.h> |
9 |
|
|
#include <stdlib.h> |
10 |
|
|
#include <string.h> |
11 |
|
|
|
12 |
dpavlin |
7 |
#include "cpu.h" |
13 |
|
|
#include "vm.h" |
14 |
dpavlin |
1 |
#include "dynamips.h" |
15 |
|
|
#include "memory.h" |
16 |
|
|
#include "device.h" |
17 |
|
|
#include "pci_dev.h" |
18 |
|
|
|
19 |
|
|
#define PCI_VENDOR_PERICOM 0x12d8 |
20 |
|
|
#define PCI_PRODUCT_PERICOM 0x8150 |
21 |
|
|
|
22 |
|
|
/* |
23 |
|
|
* dev_pericom_init() |
24 |
|
|
*/ |
25 |
|
|
int dev_pericom_init(struct pci_bus *pci_bus,int pci_device, |
26 |
|
|
struct pci_bus *sec_bus) |
27 |
|
|
{ |
28 |
|
|
struct pci_device *dev; |
29 |
|
|
|
30 |
|
|
dev = pci_bridge_create_dev(pci_bus,"pericom", |
31 |
|
|
PCI_VENDOR_PERICOM,PCI_PRODUCT_PERICOM, |
32 |
|
|
pci_device,0,sec_bus,NULL,NULL); |
33 |
|
|
return((dev != NULL) ? 0 : -1); |
34 |
|
|
} |