[BACK]Return to piixpm.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / pci

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

Diff for /src/sys/dev/pci/piixpm.c between version 1.7.6.1 and 1.7.6.2

version 1.7.6.1, 2006/10/22 06:06:19 version 1.7.6.2, 2006/12/10 07:17:47
Line 96  CFATTACH_DECL(piixpm, sizeof(struct piix
Line 96  CFATTACH_DECL(piixpm, sizeof(struct piix
     piixpm_match, piixpm_attach, NULL, NULL);      piixpm_match, piixpm_attach, NULL, NULL);
   
 int  int
 piixpm_match(struct device *parent __unused, struct cfdata *match __unused,  piixpm_match(struct device *parent, struct cfdata *match,
     void *aux)      void *aux)
 {  {
         struct pci_attach_args *pa;          struct pci_attach_args *pa;
Line 113  piixpm_match(struct device *parent __unu
Line 113  piixpm_match(struct device *parent __unu
         case PCI_VENDOR_ATI:          case PCI_VENDOR_ATI:
                 switch (PCI_PRODUCT(pa->pa_id)) {                  switch (PCI_PRODUCT(pa->pa_id)) {
                 case PCI_PRODUCT_ATI_SB200_SMB:                  case PCI_PRODUCT_ATI_SB200_SMB:
                   case PCI_PRODUCT_ATI_SB300_SMB:
                   case PCI_PRODUCT_ATI_SB400_SMB:
                         return 1;                          return 1;
                 }                  }
                 break;                  break;
Line 122  piixpm_match(struct device *parent __unu
Line 124  piixpm_match(struct device *parent __unu
 }  }
   
 void  void
 piixpm_attach(struct device *parent __unused, struct device *self, void *aux)  piixpm_attach(struct device *parent, struct device *self, void *aux)
 {  {
         struct piixpm_softc *sc = (struct piixpm_softc *)self;          struct piixpm_softc *sc = (struct piixpm_softc *)self;
         struct pci_attach_args *pa = aux;          struct pci_attach_args *pa = aux;
Line 132  piixpm_attach(struct device *parent __un
Line 134  piixpm_attach(struct device *parent __un
         pcireg_t pmmisc;          pcireg_t pmmisc;
 #endif  #endif
         pci_intr_handle_t ih;          pci_intr_handle_t ih;
           char devinfo[256];
         const char *intrstr = NULL;          const char *intrstr = NULL;
   
         sc->sc_pc = pa->pa_pc;          sc->sc_pc = pa->pa_pc;
         sc->sc_pcitag = pa->pa_tag;          sc->sc_pcitag = pa->pa_tag;
   
         aprint_naive("\n");          aprint_naive("\n");
         aprint_normal(": Power Management Controller\n");  
           pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, sizeof(devinfo));
           aprint_normal("\n%s: %s (rev. 0x%02x)\n",
                         device_xname(self), devinfo, PCI_REVISION(pa->pa_class));
   
         sc->sc_powerhook = powerhook_establish(sc->sc_dev.dv_xname,          sc->sc_powerhook = powerhook_establish(sc->sc_dev.dv_xname,
             piixpm_powerhook, sc);              piixpm_powerhook, sc);

Legend:
Removed from v.1.7.6.1  
changed lines
  Added in v.1.7.6.2

CVSweb <webmaster@jp.NetBSD.org>