1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Don't dump the $PIR table under bootverbose. The pirtool program in

src/tools/tools works fine, and dumping this table can add a lot of noise.

MFC after:	1 week
This commit is contained in:
John Baldwin 2006-11-09 18:03:36 +00:00
parent 67b712deec
commit fdaac72fcd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164129

View File

@ -92,9 +92,6 @@ static void pci_pir_find_link_handler(struct PIR_entry *entry,
static void pci_pir_initial_irqs(struct PIR_entry *entry,
struct PIR_intpin *intpin, void *arg);
static void pci_pir_parse(void);
static void pci_pir_print_intpin(struct PIR_entry *entry,
struct PIR_intpin *intpin, void *arg);
static void pci_pir_print_table(void);
static uint8_t pci_pir_search_irq(int bus, int device, int pin);
static int pci_pir_valid_irq(struct pci_link *pci_link, int irq);
static void pci_pir_walk_table(pir_entry_handler *handler, void *arg);
@ -168,11 +165,6 @@ pci_pir_open(void)
pci_route_count = (pt->pt_header.ph_length -
sizeof(struct PIR_header)) /
sizeof(struct PIR_entry);
if (bootverbose) {
printf("Found $PIR table, %d entries at %p\n",
pci_route_count, pci_route_table);
pci_pir_print_table();
}
}
/*
@ -623,37 +615,6 @@ pci_print_irqmask(u_int16_t irqs)
}
}
/*
* Dump the contents of a single intpin entry to the console.
*/
static void
pci_pir_print_intpin(struct PIR_entry *entry, struct PIR_intpin *intpin,
void *arg)
{
if (entry->pe_slot == 0)
printf("embedded ");
else
printf("slot %-3d ", entry->pe_slot);
printf(" %3d %3d %c 0x%02x ", entry->pe_bus, entry->pe_device,
intpin - entry->pe_intpin + 'A', intpin->link);
pci_print_irqmask(intpin->irqs);
printf("\n");
}
/*
* Dump the contents of a PCI BIOS Interrupt Routing Table to the console.
*/
static void
pci_pir_print_table(void)
{
printf("PCI-Only Interrupts: ");
pci_print_irqmask(pci_route_table->pt_header.ph_pci_irqs);
printf("\nLocation Bus Device Pin Link IRQs\n");
pci_pir_walk_table(pci_pir_print_intpin, NULL);
}
/*
* Display link devices.
*/