]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Standardised debug messages to make it easy to get a bus scan printout
authorMichael Brown <mcb30@etherboot.org>
Thu, 14 Apr 2005 23:32:36 +0000 (23:32 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 14 Apr 2005 23:32:36 +0000 (23:32 +0000)
(just build debugging versions of the relevant bus objects).

src/drivers/bus/eisa.c
src/drivers/bus/mca.c
src/drivers/bus/pci.c
src/drivers/net/3c509.c

index 00656511134d067898b1ede031aa51a3552f2d14..8b93b30208acd045e701ad904b008a3b640452c1 100644 (file)
@@ -39,7 +39,7 @@ static int fill_eisa_device ( struct eisa_device *eisa ) {
        eisa->prod_id = ( inb ( eisa->ioaddr + EISA_PROD_ID_LO ) << 8 )
                + inb ( eisa->ioaddr + EISA_PROD_ID_HI );
 
-       DBG ( "EISA slot %d (base %#hx) ID %hx:%hx (\"%s\")\n",
+       DBG ( "EISA found slot %d (base %#hx) ID %hx:%hx (\"%s\")\n",
              eisa->slot, eisa->ioaddr, eisa->mfg_id, eisa->prod_id,
              isa_id_string ( eisa->mfg_id, eisa->prod_id ) );
 
index 60690ae1105bcdf675569285ddcddcd1502d7146..cc091efa1f333cee43ba624e2fe93b2fd90688c7 100644 (file)
@@ -39,7 +39,8 @@ static int fill_mca_device ( struct mca_device *mca ) {
        /* Kill all setup modes */
        outb_p ( 0, MCA_ADAPTER_SETUP_REG );
 
-       DBG ( "MCA slot %d id %hx (%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx)\n",
+       DBG ( "MCA found slot %d id %hx "
+             "(POS %hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx)\n",
              mca->slot, MCA_ID ( mca ),
              mca->pos[0], mca->pos[1], mca->pos[2], mca->pos[3],
              mca->pos[4], mca->pos[5], mca->pos[6], mca->pos[7] );
index 6e08f08905d1b70781ac562367fbb0464cbe90a7..4fe01cadeb423c90ea1757d1d36e251c587afe0a 100644 (file)
@@ -73,7 +73,7 @@ static int fill_pci_device ( struct pci_device *pci ) {
                pci_read_config_byte ( pci, PCI_INTERRUPT_LINE, &pci->irq );
        }
 
-       DBG ( "%hhx:%hhx.%d Class %hx: %hx:%hx (rev %hhx)\n",
+       DBG ( "PCI found %hhx:%hhx.%d Class %hx: %hx:%hx (rev %hhx)\n",
              PCI_BUS ( pci->busdevfn ), PCI_DEV ( pci->busdevfn ),
              PCI_FUNC ( pci->busdevfn ), pci->class, pci->vendor, pci->dev_id,
              pci->revision );
index e73bf84b2dafeeb92399557d62b0be1c97b4e10a..2790a534c00e4b22b0ab405d6bbe42c5d61f457e 100644 (file)
@@ -129,6 +129,7 @@ static inline int fill_t509_device ( struct t509_device *t509 ) {
                        DBG ( "No ID port available for contention select\n" );
                        return 0;
                }
+               DBG ( "T509 scan using ID port at %hx\n", t509->id_port );
        }
 
        /* 
@@ -166,6 +167,9 @@ static inline int fill_t509_device ( struct t509_device *t509 ) {
        outb ( ++t509->current_tag, t509->id_port ); /* tag */
        outb ( ( 0xe0 | iobase ), t509->id_port ); /* activate */
 
+       DBG ( "T509 found at %hx (tagged as %hhx)\n", t509->ioaddr,
+             t509->current_tag );
+
        return 1;
 }