1 |
/* |
/* |
2 |
* Cisco C7200 (Predator) DEC21140 Module. |
* Cisco router simlation platform. |
3 |
* Copyright (C) 2005,2006 Christophe Fillot. All rights reserved. |
* Copyright (C) 2005,2006 Christophe Fillot. All rights reserved. |
4 |
* |
* |
5 |
* DEC21140 FastEthernet chip emulation. |
* DEC21140 FastEthernet chip emulation. |
31 |
|
|
32 |
#include "crc.h" |
#include "crc.h" |
33 |
#include "utils.h" |
#include "utils.h" |
34 |
#include "mips64.h" |
#include "cpu.h" |
35 |
|
#include "vm.h" |
36 |
#include "dynamips.h" |
#include "dynamips.h" |
37 |
#include "memory.h" |
#include "memory.h" |
38 |
#include "device.h" |
#include "device.h" |
396 |
/* |
/* |
397 |
* dev_dec21140_access() |
* dev_dec21140_access() |
398 |
*/ |
*/ |
399 |
void *dev_dec21140_access(cpu_mips_t *cpu,struct vdevice *dev, |
void *dev_dec21140_access(cpu_gen_t *cpu,struct vdevice *dev, |
400 |
m_uint32_t offset,u_int op_size,u_int op_type, |
m_uint32_t offset,u_int op_size,u_int op_type, |
401 |
m_uint64_t *data) |
m_uint64_t *data) |
402 |
{ |
{ |
851 |
* |
* |
852 |
* Read a PCI register. |
* Read a PCI register. |
853 |
*/ |
*/ |
854 |
static m_uint32_t pci_dec21140_read(cpu_mips_t *cpu,struct pci_device *dev, |
static m_uint32_t pci_dec21140_read(cpu_gen_t *cpu,struct pci_device *dev, |
855 |
int reg) |
int reg) |
856 |
{ |
{ |
857 |
struct dec21140_data *d = dev->priv_data; |
struct dec21140_data *d = dev->priv_data; |
877 |
* |
* |
878 |
* Write a PCI register. |
* Write a PCI register. |
879 |
*/ |
*/ |
880 |
static void pci_dec21140_write(cpu_mips_t *cpu,struct pci_device *dev, |
static void pci_dec21140_write(cpu_gen_t *cpu,struct pci_device *dev, |
881 |
int reg,m_uint32_t value) |
int reg,m_uint32_t value) |
882 |
{ |
{ |
883 |
struct dec21140_data *d = dev->priv_data; |
struct dec21140_data *d = dev->priv_data; |