/[pearpc]/src/io/pci/pci.cc
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 /src/io/pci/pci.cc

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

revision 5 by dpavlin, Wed Sep 5 17:11:21 2007 UTC revision 6 by dpavlin, Wed Sep 5 18:04:11 2007 UTC
# Line 338  static void pci_config_read_write(bool w Line 338  static void pci_config_read_write(bool w
338    
339  void pci_write(uint32 addr, uint32 data, int size)  void pci_write(uint32 addr, uint32 data, int size)
340  {  {
341          if (addr != IO_PCI_PA_START) IO_PCI_TRACE("write (%d) @%08x: %08x (from %08x, %08x)\n", size, addr, data, gCPU.pc, gCPU.lr);          if (addr != IO_PCI_PA_START) IO_PCI_TRACE("write (%d) @%08x: %08x (from %08x, %08x)\n", size, addr, data, ppc_cpu_get_pc(0), ppc_cpu_get_lr(0));
342          addr -= IO_PCI_PA_START;          addr -= IO_PCI_PA_START;
343          switch (addr) {          switch (addr) {
344          case 0:          case 0:
# Line 412  void pci_write(uint32 addr, uint32 data, Line 412  void pci_write(uint32 addr, uint32 data,
412  void pci_read(uint32 addr, uint32 &data, int size)  void pci_read(uint32 addr, uint32 &data, int size)
413  {  {
414  //      SINGLESTEP("usdf\n");  //      SINGLESTEP("usdf\n");
415          if (addr != IO_PCI_PA_START) IO_PCI_TRACE("read (%d) @%08x (from %08x, lr: %08x) -> \n", size, addr, gCPU.pc, gCPU.lr);          if (addr != IO_PCI_PA_START) IO_PCI_TRACE("read (%d) @%08x (from %08x, lr: %08x) -> \n", size, addr, ppc_cpu_get_pc(0), ppc_cpu_get_lr(0));
416          addr -= IO_PCI_PA_START;          addr -= IO_PCI_PA_START;
417          switch (addr) {          switch (addr) {
418          case 0:          case 0:
# Line 516  bool isa_write(uint32 addr, uint32 data, Line 516  bool isa_write(uint32 addr, uint32 data,
516    
517  bool pci_write_device(uint32 addr, uint32 data, int size)  bool pci_write_device(uint32 addr, uint32 data, int size)
518  {  {
519          IO_PCI_TRACE("write DEVICE (%d) @%08x %08x (from %08x, lr: %08x)\n", size, addr, data, gCPU.pc, gCPU.lr);          IO_PCI_TRACE("write DEVICE (%d) @%08x %08x (from %08x, lr: %08x)\n", size, addr, data, ppc_cpu_get_pc(0), ppc_cpu_get_lr(0));
520          ObjHandle oh = gPCI_Devices->findFirst();          ObjHandle oh = gPCI_Devices->findFirst();
521          while (oh != InvObjHandle) {          while (oh != InvObjHandle) {
522                  PCI_Device *pd = (PCI_Device*)gPCI_Devices->get(oh);                  PCI_Device *pd = (PCI_Device*)gPCI_Devices->get(oh);
# Line 530  bool pci_write_device(uint32 addr, uint3 Line 530  bool pci_write_device(uint32 addr, uint3
530    
531  bool pci_read_device(uint32 addr, uint32 &data, int size)  bool pci_read_device(uint32 addr, uint32 &data, int size)
532  {  {
533          IO_PCI_TRACE("read DEVICE (%d) @%08x (from %08x, lr: %08x)\n", size, addr, gCPU.pc, gCPU.lr);          IO_PCI_TRACE("read DEVICE (%d) @%08x (from %08x, lr: %08x)\n", size, addr, ppc_cpu_get_pc(0), ppc_cpu_get_lr(0));
534          ObjHandle oh = gPCI_Devices->findFirst();          ObjHandle oh = gPCI_Devices->findFirst();
535          while (oh != InvObjHandle) {          while (oh != InvObjHandle) {
536                  PCI_Device *pd = (PCI_Device*)gPCI_Devices->get(oh);                  PCI_Device *pd = (PCI_Device*)gPCI_Devices->get(oh);

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

  ViewVC Help
Powered by ViewVC 1.1.26