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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations)
Sat Oct 6 16:45:40 2007 UTC (12 years ago) by dpavlin
File MIME type: text/plain
File size: 786 byte(s)
make working copy

1 /*
2 * Cisco router simulation platform.
3 * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)
4 *
5 * Texas Instruments PCI205B PCI bridge.
6 */
7
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11
12 #include "cpu.h"
13 #include "vm.h"
14 #include "dynamips.h"
15 #include "memory.h"
16 #include "device.h"
17 #include "pci_dev.h"
18
19 #define PCI_VENDOR_TI 0x104C
20 #define PCI_PRODUCT_PCI2050B 0xAC28
21
22 /*
23 * dev_ti2050b_init()
24 */
25 int dev_ti2050b_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,"ti2050b",
31 PCI_VENDOR_TI,PCI_PRODUCT_PCI2050B,
32 pci_device,0,sec_bus,NULL,NULL);
33 return((dev != NULL) ? 0 : -1);
34 }

  ViewVC Help
Powered by ViewVC 1.1.26