Print 'irq nn' on the device attach line like the old pci code did.

However, we are not printing 'int a/b/c/d' yet, is it worth it on non-SMP
systems?  (It's useful when tracing PCI->IO-APIC routing on SMP systems)
This commit is contained in:
Peter Wemm 1999-05-08 20:28:01 +00:00
parent 6d9ecc2ba7
commit 141ed0620b
2 changed files with 16 additions and 2 deletions

View File

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: pci.c,v 1.97 1999/05/06 22:05:38 peter Exp $
* $Id: pci.c,v 1.98 1999/05/08 18:09:53 peter Exp $
*
*/
@ -1034,6 +1034,13 @@ pci_new_probe(device_t dev)
static void
pci_print_child(device_t dev, device_t child)
{
struct pci_devinfo *dinfo;
pcicfgregs *cfg;
dinfo = device_get_ivars(child);
cfg = &dinfo->cfg;
if (cfg->intpin > 0 && cfg->intline != 255)
printf(" irq %d", cfg->intline);
printf(" at device %d.%d", pci_get_slot(child), pci_get_function(child));
printf(" on %s%d", device_get_name(dev), device_get_unit(dev));
}

View File

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: pci.c,v 1.97 1999/05/06 22:05:38 peter Exp $
* $Id: pci.c,v 1.98 1999/05/08 18:09:53 peter Exp $
*
*/
@ -1034,6 +1034,13 @@ pci_new_probe(device_t dev)
static void
pci_print_child(device_t dev, device_t child)
{
struct pci_devinfo *dinfo;
pcicfgregs *cfg;
dinfo = device_get_ivars(child);
cfg = &dinfo->cfg;
if (cfg->intpin > 0 && cfg->intline != 255)
printf(" irq %d", cfg->intline);
printf(" at device %d.%d", pci_get_slot(child), pci_get_function(child));
printf(" on %s%d", device_get_name(dev), device_get_unit(dev));
}