[BACK]Return to bonito_mainbus.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / evbmips / loongson

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/evbmips/loongson/bonito_mainbus.c between version 1.1 and 1.1.6.3

version 1.1, 2011/08/27 13:42:44 version 1.1.6.3, 2012/03/06 18:26:35
Line 70  bonito_mainbus_attach(device_t parent, d
Line 70  bonito_mainbus_attach(device_t parent, d
 {  {
         struct pcibus_attach_args pba;          struct pcibus_attach_args pba;
         pcireg_t rev;          pcireg_t rev;
           bool compatible;
   
         self->dv_private = __UNCONST(&sys_platform->bonito_config);          self->dv_private = __UNCONST(&sys_platform->bonito_config);
   
         /*          /*
            * Loongson 2F processors do not use a real Bonito64 chip but
            * their own derivative, which is no longer 100% compatible.
            * We need to make sure we never try to access an unimplemented
            * register...
            */
           if (loongson_ver >= 0x2f)
                   compatible = false;
           else
                   compatible = true;
   
           /*
          * There is only one PCI controller on a Loongson chip.           * There is only one PCI controller on a Loongson chip.
          */           */
   
         rev = PCI_REVISION(REGVAL(BONITO_PCICLASS));          rev = PCI_REVISION(REGVAL(BONITO_PCICLASS));
           if (compatible) {
                   aprint_normal(": BONITO Memory and PCI controller,"
                       " %s rev. %d.%d\n", BONITO_REV_FPGA(rev) ? "FPGA" : "ASIC",
                       BONITO_REV_MAJOR(rev), BONITO_REV_MINOR(rev));
           } else {
                   aprint_normal(": Memory and PCI-X controller, rev. %d\n",
                       PCI_REVISION(rev));
           }
   
         aprint_normal(": BONITO Memory and PCI controller, %s rev. %d.%d\n",          /*
             BONITO_REV_FPGA(rev) ? "FPGA" : "ASIC",           * Attach PCI bus.
             BONITO_REV_MAJOR(rev), BONITO_REV_MINOR(rev));           */
   
         pba.pba_flags = PCI_FLAGS_IO_OKAY | PCI_FLAGS_MEM_OKAY;          pba.pba_flags = PCI_FLAGS_IO_OKAY | PCI_FLAGS_MEM_OKAY;
         pba.pba_bus = 0;          pba.pba_bus = 0;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.6.3

CVSweb <webmaster@jp.NetBSD.org>