1 |
/* |
/* |
2 |
* Cisco C7200 (Predator) Simulation Platform. |
* Cisco router simulation platform. |
3 |
* Copyright (c) 2006 Christophe Fillot. All rights reserved. |
* Copyright (c) 2006 Christophe Fillot. All rights reserved. |
4 |
* |
* |
5 |
* AP1011 - Sturgeon HyperTransport-PCI Bridge. |
* AP1011 - Sturgeon HyperTransport-PCI Bridge. |
11 |
#include <time.h> |
#include <time.h> |
12 |
#include <errno.h> |
#include <errno.h> |
13 |
|
|
14 |
#include "mips64.h" |
#include "cpu.h" |
15 |
|
#include "vm.h" |
16 |
#include "dynamips.h" |
#include "dynamips.h" |
17 |
#include "memory.h" |
#include "memory.h" |
18 |
#include "device.h" |
#include "device.h" |
25 |
* |
* |
26 |
* Read a PCI register. |
* Read a PCI register. |
27 |
*/ |
*/ |
28 |
static m_uint32_t pci_ap1011_read(cpu_mips_t *cpu,struct pci_device *dev, |
static m_uint32_t pci_ap1011_read(cpu_gen_t *cpu,struct pci_device *dev, |
29 |
int reg) |
int reg) |
30 |
{ |
{ |
31 |
switch (reg) { |
switch (reg) { |