Procházet zdrojové kódy

Standardised debug messages to make it easy to get a bus scan printout

(just build debugging versions of the relevant bus objects).
tags/v0.9.3
Michael Brown před 19 roky
rodič
revize
ed92171527
4 změnil soubory, kde provedl 8 přidání a 3 odebrání
  1. 1
    1
      src/drivers/bus/eisa.c
  2. 2
    1
      src/drivers/bus/mca.c
  3. 1
    1
      src/drivers/bus/pci.c
  4. 4
    0
      src/drivers/net/3c509.c

+ 1
- 1
src/drivers/bus/eisa.c Zobrazit soubor

39
 	eisa->prod_id = ( inb ( eisa->ioaddr + EISA_PROD_ID_LO ) << 8 )
39
 	eisa->prod_id = ( inb ( eisa->ioaddr + EISA_PROD_ID_LO ) << 8 )
40
 		+ inb ( eisa->ioaddr + EISA_PROD_ID_HI );
40
 		+ inb ( eisa->ioaddr + EISA_PROD_ID_HI );
41
 
41
 
42
-	DBG ( "EISA slot %d (base %#hx) ID %hx:%hx (\"%s\")\n",
42
+	DBG ( "EISA found slot %d (base %#hx) ID %hx:%hx (\"%s\")\n",
43
 	      eisa->slot, eisa->ioaddr, eisa->mfg_id, eisa->prod_id,
43
 	      eisa->slot, eisa->ioaddr, eisa->mfg_id, eisa->prod_id,
44
 	      isa_id_string ( eisa->mfg_id, eisa->prod_id ) );
44
 	      isa_id_string ( eisa->mfg_id, eisa->prod_id ) );
45
 
45
 

+ 2
- 1
src/drivers/bus/mca.c Zobrazit soubor

39
 	/* Kill all setup modes */
39
 	/* Kill all setup modes */
40
 	outb_p ( 0, MCA_ADAPTER_SETUP_REG );
40
 	outb_p ( 0, MCA_ADAPTER_SETUP_REG );
41
 
41
 
42
-	DBG ( "MCA slot %d id %hx (%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx)\n",
42
+	DBG ( "MCA found slot %d id %hx "
43
+	      "(POS %hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx)\n",
43
 	      mca->slot, MCA_ID ( mca ),
44
 	      mca->slot, MCA_ID ( mca ),
44
 	      mca->pos[0], mca->pos[1], mca->pos[2], mca->pos[3],
45
 	      mca->pos[0], mca->pos[1], mca->pos[2], mca->pos[3],
45
 	      mca->pos[4], mca->pos[5], mca->pos[6], mca->pos[7] );
46
 	      mca->pos[4], mca->pos[5], mca->pos[6], mca->pos[7] );

+ 1
- 1
src/drivers/bus/pci.c Zobrazit soubor

73
 		pci_read_config_byte ( pci, PCI_INTERRUPT_LINE, &pci->irq );
73
 		pci_read_config_byte ( pci, PCI_INTERRUPT_LINE, &pci->irq );
74
 	}
74
 	}
75
 
75
 
76
-	DBG ( "%hhx:%hhx.%d Class %hx: %hx:%hx (rev %hhx)\n",
76
+	DBG ( "PCI found %hhx:%hhx.%d Class %hx: %hx:%hx (rev %hhx)\n",
77
 	      PCI_BUS ( pci->busdevfn ), PCI_DEV ( pci->busdevfn ),
77
 	      PCI_BUS ( pci->busdevfn ), PCI_DEV ( pci->busdevfn ),
78
 	      PCI_FUNC ( pci->busdevfn ), pci->class, pci->vendor, pci->dev_id,
78
 	      PCI_FUNC ( pci->busdevfn ), pci->class, pci->vendor, pci->dev_id,
79
 	      pci->revision );
79
 	      pci->revision );

+ 4
- 0
src/drivers/net/3c509.c Zobrazit soubor

129
 			DBG ( "No ID port available for contention select\n" );
129
 			DBG ( "No ID port available for contention select\n" );
130
 			return 0;
130
 			return 0;
131
 		}
131
 		}
132
+		DBG ( "T509 scan using ID port at %hx\n", t509->id_port );
132
 	}
133
 	}
133
 
134
 
134
 	/* 
135
 	/* 
166
 	outb ( ++t509->current_tag, t509->id_port ); /* tag */
167
 	outb ( ++t509->current_tag, t509->id_port ); /* tag */
167
 	outb ( ( 0xe0 | iobase ), t509->id_port ); /* activate */
168
 	outb ( ( 0xe0 | iobase ), t509->id_port ); /* activate */
168
 
169
 
170
+	DBG ( "T509 found at %hx (tagged as %hhx)\n", t509->ioaddr,
171
+	      t509->current_tag );
172
+
169
 	return 1;
173
 	return 1;
170
 }
174
 }
171
 
175
 

Načítá se…
Zrušit
Uložit