/[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 60 by dpavlin, Thu Oct 11 18:56:50 2007 UTC revision 61 by dpavlin, Fri Oct 12 22:06:53 2007 UTC
# Line 916  PCIINIT(heuricon_pmppc) Line 916  PCIINIT(heuricon_pmppc)
916  }  }
917    
918  /*  /*
919   * Sandpoint host bridge   * Sandpoint host bridge based on uninorth
920   */   */
921    
922  #define PCI_VENDOR_MOT                  0x1057  #define PCI_VENDOR_MOT                  0x1057
923  #define PCI_DEVICE_ID_MOTOROLA_MPC106   0x0002  #define PCI_DEVICE_ID_MOTOROLA_MPC106   0x0002
924  #define PCI_DEVICE_ID_MOTOROLA_MPC107   0x0004  #define PCI_DEVICE_ID_MOTOROLA_MPC107   0x0004
925    
926  PCIINIT(mpc10x_host_bridge)  PCIINIT(mpc10x)
927  {  {
928          debug("sandpoint mpx10x host bridge\n");          debug("sandpoint mpx10x host bridge\n");
929    
930          PCI_SET_DATA(PCI_ID_REG, PCI_ID_CODE(PCI_VENDOR_MOT,          PCI_SET_DATA(PCI_ID_REG, PCI_ID_CODE(PCI_VENDOR_MOT,
931              PCI_DEVICE_ID_MOTOROLA_MPC106));              PCI_DEVICE_ID_MOTOROLA_MPC106));    /* FIXME MPC106 ?? */
932    
933          PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE,          PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE,
934              PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00);   /*  Revision?  */              PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00);   /*  Revision?  */
935    
936          PCI_SET_DATA(PCI_BHLC_REG,          PCI_SET_DATA(PCI_BHLC_REG,
937              PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0));              PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0));
938    
939            /*  TODO  */
940            //allocate_device_space(pd, 0x10000, 0x10000, &port, &memaddr);
941    
942    
943  }  }
944    
945    

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

  ViewVC Help
Powered by ViewVC 1.1.26