Print pci device info instead of "Power Management Controller".
This commit is contained in:
parent
e8e4f16a5c
commit
d2a699ecf7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: piixpm.c,v 1.11 2006/11/16 01:33:10 christos Exp $ */
|
||||
/* $NetBSD: piixpm.c,v 1.12 2006/12/10 00:34:52 uwe Exp $ */
|
||||
/* $OpenBSD: piixpm.c,v 1.20 2006/02/27 08:25:02 grange Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -134,13 +134,17 @@ piixpm_attach(struct device *parent, struct device *self, void *aux)
|
|||
pcireg_t pmmisc;
|
||||
#endif
|
||||
pci_intr_handle_t ih;
|
||||
char devinfo[256];
|
||||
const char *intrstr = NULL;
|
||||
|
||||
sc->sc_pc = pa->pa_pc;
|
||||
sc->sc_pcitag = pa->pa_tag;
|
||||
|
||||
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,
|
||||
piixpm_powerhook, sc);
|
||||
|
|
Loading…
Reference in New Issue