/[dynamips]/upstream/dynamips-0.2.6-RC5/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

Annotation of /upstream/dynamips-0.2.6-RC5/dev_ti2050b.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (hide annotations)
Sat Oct 6 16:08:03 2007 UTC (16 years, 5 months ago) by dpavlin
Original Path: upstream/dynamips-0.2.6-RC4/dev_ti2050b.c
File MIME type: text/plain
File size: 782 byte(s)
dynamips-0.2.6-RC4

1 dpavlin 4 /*
2     * Cisco 7200 (Predator) 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 "mips64.h"
13     #include "dynamips.h"
14     #include "memory.h"
15     #include "device.h"
16     #include "pci_dev.h"
17    
18     #define PCI_VENDOR_TI 0x104C
19     #define PCI_PRODUCT_PCI2050B 0xAC28
20    
21     /*
22     * dev_ti2050b_init()
23     */
24     int dev_ti2050b_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,"ti2050b",
30     PCI_VENDOR_TI,PCI_PRODUCT_PCI2050B,
31     pci_device,0,sec_bus,NULL,NULL);
32     return((dev != NULL) ? 0 : -1);
33     }

  ViewVC Help
Powered by ViewVC 1.1.26