Print this page
XXX nobios

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/pci_bios.c
          +++ new/usr/src/uts/i86pc/os/pci_bios.c
↓ open down ↓ 24 lines elided ↑ open up ↑
  25   25  #include <sys/types.h>
  26   26  #include <sys/stat.h>
  27   27  #include <sys/sunndi.h>
  28   28  #include <sys/pci.h>
  29   29  #include <sys/pci_impl.h>
  30   30  #include <sys/pci_cfgspace.h>
  31   31  #include <sys/pci_cfgspace_impl.h>
  32   32  #include <sys/memlist.h>
  33   33  #include <sys/bootconf.h>
  34   34  #include <sys/psw.h>
       35 +#include <sys/machsystm.h>
  35   36  
  36   37  /*
  37   38   * pci irq routing information table
  38   39   */
  39   40  int                             pci_irq_nroutes;
  40   41  static pci_irq_route_t          *pci_irq_routes;
  41   42  
  42   43  
  43   44  static int pci_bios_get_irq_routing(pci_irq_route_t *, int, int *);
  44   45  static void pci_get_irq_routing_table(void);
↓ open down ↓ 25 lines elided ↑ open up ↑
  70   71          struct bop_regs regs;
  71   72          uchar_t         *hdrp;
  72   73          uchar_t         *bufp;
  73   74          int             i, n;
  74   75          int             rval = 0;
  75   76  
  76   77          if (nneededp)
  77   78                  *nneededp = 0;
  78   79  
  79   80          /*
       81 +         * If this system does not support BIOS calls, we can't use this
       82 +         * mechanism.
       83 +         */
       84 +        if (!bios_calls_available)
       85 +                return (0);
       86 +
       87 +        /*
  80   88           * Set up irq routing header with the size and address
  81   89           * of some useable low-memory data addresses.  Initalize
  82   90           * data area to zero, avoiding memcpy/bzero.
  83   91           */
  84   92          hdrp = (uchar_t *)BIOS_IRQ_ROUTING_HDR;
  85   93          bufp = (uchar_t *)BIOS_IRQ_ROUTING_DATA;
  86   94  
  87   95          n = nroutes * sizeof (pci_irq_route_t);
  88   96          for (i = 0; i < n; i++)
  89   97                  bufp[i] = 0;
↓ open down ↓ 125 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX