/[dynamips]/upstream/dynamips-0.2.7-RC1/pci_io.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

Diff of /upstream/dynamips-0.2.7-RC1/pci_io.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.6-RC5/pci_io.c revision 6 by dpavlin, Sat Oct 6 16:09:07 2007 UTC upstream/dynamips-0.2.7-RC1/pci_io.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   * Cisco 7200 (Predator) simulation platform.   * Cisco router simulation platform.
3   * Copyright (c) 2006 Christophe Fillot (cf@utc.fr)   * Copyright (c) 2006 Christophe Fillot (cf@utc.fr)
4   *   *
5   * PCI I/O space.   * PCI I/O space.
# Line 11  Line 11 
11  #include <unistd.h>  #include <unistd.h>
12  #include <sys/types.h>  #include <sys/types.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"
# Line 62  void pci_io_remove(struct pci_io_device Line 63  void pci_io_remove(struct pci_io_device
63  /*  /*
64   * pci_io_access()   * pci_io_access()
65   */   */
66  static void *pci_io_access(cpu_mips_t *cpu,struct vdevice *dev,  static void *pci_io_access(cpu_gen_t *cpu,struct vdevice *dev,
67                             m_uint32_t offset,u_int op_size,u_int op_type,                             m_uint32_t offset,u_int op_size,u_int op_type,
68                             m_uint64_t *data)                             m_uint64_t *data)
69  {  {
# Line 72  static void *pci_io_access(cpu_mips_t *c Line 73  static void *pci_io_access(cpu_mips_t *c
73  #if DEBUG_ACCESS  #if DEBUG_ACCESS
74     if (op_type == MTS_READ) {     if (op_type == MTS_READ) {
75        cpu_log(cpu,"PCI_IO","read request at pc=0x%llx, offset=0x%x\n",        cpu_log(cpu,"PCI_IO","read request at pc=0x%llx, offset=0x%x\n",
76                cpu->pc,offset);                cpu_get_pc(cpu),offset);
77     } else {     } else {
78        cpu_log(cpu,"PCI_IO",        cpu_log(cpu,"PCI_IO",
79                "write request (data=0x%llx) at pc=0x%llx, offset=0x%x\n",                "write request (data=0x%llx) at pc=0x%llx, offset=0x%x\n",
80                *data,cpu->pc,offset);                *data,cpu_get_pc(cpu),offset);
81     }     }
82  #endif  #endif
83    

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.26