[BACK]Return to autoconf.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / cats / cats

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

Diff for /src/sys/arch/cats/cats/autoconf.c between version 1.9.2.2 and 1.9.2.3

version 1.9.2.2, 2007/12/07 17:24:24 version 1.9.2.3, 2008/01/21 09:35:58
Line 55  __KERNEL_RCSID(0, "$NetBSD$");
Line 55  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/malloc.h>  #include <sys/malloc.h>
 #include <machine/bootconfig.h>  #include <machine/bootconfig.h>
 #include <machine/intr.h>  #include <machine/intr.h>
   #include <dev/pci/pcivar.h>
   
 #include "isa.h"  #include "isa.h"
   
Line 166  cpu_configure(void)
Line 167  cpu_configure(void)
 void  void
 device_register(struct device *dev, void *aux)  device_register(struct device *dev, void *aux)
 {  {
           struct device *pdev;
           if ((pdev = device_parent(dev)) != NULL &&
               device_is_a(pdev, "pci")) {
                   /*
                    * cats builtin aceride is on 0:16:0
                    */
                   struct pci_attach_args *pa = aux;
                   if (((pa)->pa_bus == 0
                       && (pa)->pa_device == 16
                       && (pa)->pa_function == 0)) {
                           if (prop_dictionary_set_bool(device_properties(dev),
                                                   "ali1543-ide-force-compat-mode",
                                                   true) == false) {
                                   printf("WARNING: unable to set "
                                           "ali1543-ide-force-compat-mode "
                                           "property for %s\n", dev->dv_xname);
                           }
                   }
           }
 }  }
 /* End of autoconf.c */  /* End of autoconf.c */

Legend:
Removed from v.1.9.2.2  
changed lines
  Added in v.1.9.2.3

CVSweb <webmaster@jp.NetBSD.org>