1 |
dpavlin |
1 |
/* |
2 |
|
|
* Cisco 7200 (Predator) simulation platform. |
3 |
|
|
* 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 |
|
|
#include "mips64.h" |
13 |
|
|
#include "dynamips.h" |
14 |
|
|
#include "memory.h" |
15 |
|
|
#include "device.h" |
16 |
|
|
#include "pci_dev.h" |
17 |
|
|
|
18 |
|
|
#define PCI_VENDOR_PERICOM 0x12d8 |
19 |
|
|
#define PCI_PRODUCT_PERICOM 0x8150 |
20 |
|
|
|
21 |
|
|
/* |
22 |
|
|
* dev_pericom_init() |
23 |
|
|
*/ |
24 |
|
|
int dev_pericom_init(struct pci_bus *pci_bus,int pci_device, |
25 |
|
|
struct pci_bus *sec_bus) |
26 |
|
|
{ |
27 |
|
|
struct pci_device *dev; |
28 |
|
|
|
29 |
|
|
dev = pci_bridge_create_dev(pci_bus,"pericom", |
30 |
|
|
PCI_VENDOR_PERICOM,PCI_PRODUCT_PERICOM, |
31 |
|
|
pci_device,0,sec_bus,NULL,NULL); |
32 |
|
|
return((dev != NULL) ? 0 : -1); |
33 |
|
|
} |