/[gxemul]/trunk/src/devices/bus_pci.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 /trunk/src/devices/bus_pci.c

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

revision 61 by dpavlin, Fri Oct 12 22:06:53 2007 UTC revision 62 by dpavlin, Sat Oct 13 12:51:47 2007 UTC
# Line 925  PCIINIT(heuricon_pmppc) Line 925  PCIINIT(heuricon_pmppc)
925    
926  PCIINIT(mpc10x)  PCIINIT(mpc10x)
927  {  {
928            uint64_t port, memaddr;
929    
930          debug("sandpoint mpx10x host bridge\n");          debug("sandpoint mpx10x host bridge\n");
931    
932          PCI_SET_DATA(PCI_ID_REG, PCI_ID_CODE(PCI_VENDOR_MOT,          PCI_SET_DATA(PCI_ID_REG, PCI_ID_CODE(PCI_VENDOR_MOT,
933              PCI_DEVICE_ID_MOTOROLA_MPC106));    /* FIXME MPC106 ?? */              PCI_DEVICE_ID_MOTOROLA_MPC107));    /* FIXME MPC106 ?? */
934    
935          PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE,          PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE,
936              PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00);   /*  Revision?  */              PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00);   /*  Revision?  */
# Line 936  PCIINIT(mpc10x) Line 938  PCIINIT(mpc10x)
938          PCI_SET_DATA(PCI_BHLC_REG,          PCI_SET_DATA(PCI_BHLC_REG,
939              PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0));              PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0));
940    
941          /*  TODO  */          allocate_device_space(pd, 0x1000, 0, &port, &memaddr);
942          //allocate_device_space(pd, 0x10000, 0x10000, &port, &memaddr);          allocate_device_space(pd, 0x1000, 0, &port, &memaddr);
943            allocate_device_space(pd, 0x1000, 0, &port, &memaddr);
944            allocate_device_space(pd, 0x1000, 0, &port, &memaddr);
945    
946  }  }
947    

Legend:
Removed from v.61  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.26