[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 and 1.9.2.4

version 1.9, 2005/06/03 23:42:50 version 1.9.2.4, 2008/02/27 08:36:19
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 69  static void
Line 70  static void
 get_device(const char *name)  get_device(const char *name)
 {  {
         int unit, part;          int unit, part;
         char devname[16], buf[32];          char devname[16];
         const char *cp;          const char *cp;
         struct device *dv;          device_t dv;
   
         if (strncmp(name, "/dev/", 5) == 0)          if (strncmp(name, "/dev/", 5) == 0)
                 name += 5;                  name += 5;
Line 92  get_device(const char *name)
Line 93  get_device(const char *name)
                 part = *cp - 'a';                  part = *cp - 'a';
         else if (*cp != '\0' && *cp != ' ')          else if (*cp != '\0' && *cp != ' ')
                 return;                  return;
         sprintf(buf, "%s%d", devname, unit);  
         TAILQ_FOREACH(dv, &alldevs, dv_list) {          if ((dv = device_find_by_driver_unit(devname, unit)) != NULL) {
                 if (strcmp(buf, dv->dv_xname) == 0) {                  booted_device = dv;
                         booted_device = dv;                  booted_partition = part;
                         booted_partition = part;  
                         return;  
                 }  
         }          }
 }  }
   
Line 138  extern int footbridge_imask[NIPL];
Line 136  extern int footbridge_imask[NIPL];
 void  void
 cpu_configure(void)  cpu_configure(void)
 {  {
         softintr_init();  
         /*          /*
          * Since various PCI interrupts could be routed via the ICU           * Since various PCI interrupts could be routed via the ICU
          * (for PCI devices in the bridge) we need to set up the ICU           * (for PCI devices in the bridge) we need to set up the ICU
Line 150  cpu_configure(void)
Line 147  cpu_configure(void)
   
         config_rootfound("mainbus", NULL);          config_rootfound("mainbus", NULL);
   
   #if defined(DEBUG)
         /* Debugging information */          /* Debugging information */
 #ifndef TERSE  
         printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n",          printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n",
             footbridge_imask[IPL_BIO], footbridge_imask[IPL_NET],              footbridge_imask[IPL_BIO], footbridge_imask[IPL_NET],
             footbridge_imask[IPL_TTY], footbridge_imask[IPL_VM]);              footbridge_imask[IPL_TTY], footbridge_imask[IPL_VM]);
         printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n",          printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n",
             footbridge_imask[IPL_AUDIO], footbridge_imask[IPL_CLOCK],              footbridge_imask[IPL_AUDIO], footbridge_imask[IPL_CLOCK],
             footbridge_imask[IPL_HIGH], footbridge_imask[IPL_SERIAL]);              footbridge_imask[IPL_HIGH], footbridge_imask[IPL_SERIAL]);
 #endif  #endif /* defined(DEBUG) */
   
         /* Time to start taking interrupts so lets open the flood gates .... */          /* Time to start taking interrupts so lets open the flood gates .... */
         (void)spl0();          (void)spl0();
Line 167  cpu_configure(void)
Line 164  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  
changed lines
  Added in v.1.9.2.4

CVSweb <webmaster@jp.NetBSD.org>