Sfoglia il codice sorgente

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 19 anni fa
parent
commit
ed92171527
4 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  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 Vedi File

@@ -39,7 +39,7 @@ static int fill_eisa_device ( struct eisa_device *eisa ) {
39 39
 	eisa->prod_id = ( inb ( eisa->ioaddr + EISA_PROD_ID_LO ) << 8 )
40 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 43
 	      eisa->slot, eisa->ioaddr, eisa->mfg_id, eisa->prod_id,
44 44
 	      isa_id_string ( eisa->mfg_id, eisa->prod_id ) );
45 45
 

+ 2
- 1
src/drivers/bus/mca.c Vedi File

@@ -39,7 +39,8 @@ static int fill_mca_device ( struct mca_device *mca ) {
39 39
 	/* Kill all setup modes */
40 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 44
 	      mca->slot, MCA_ID ( mca ),
44 45
 	      mca->pos[0], mca->pos[1], mca->pos[2], mca->pos[3],
45 46
 	      mca->pos[4], mca->pos[5], mca->pos[6], mca->pos[7] );

+ 1
- 1
src/drivers/bus/pci.c Vedi File

@@ -73,7 +73,7 @@ static int fill_pci_device ( struct pci_device *pci ) {
73 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 77
 	      PCI_BUS ( pci->busdevfn ), PCI_DEV ( pci->busdevfn ),
78 78
 	      PCI_FUNC ( pci->busdevfn ), pci->class, pci->vendor, pci->dev_id,
79 79
 	      pci->revision );

+ 4
- 0
src/drivers/net/3c509.c Vedi File

@@ -129,6 +129,7 @@ static inline int fill_t509_device ( struct t509_device *t509 ) {
129 129
 			DBG ( "No ID port available for contention select\n" );
130 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,6 +167,9 @@ static inline int fill_t509_device ( struct t509_device *t509 ) {
166 167
 	outb ( ++t509->current_tag, t509->id_port ); /* tag */
167 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 173
 	return 1;
170 174
 }
171 175
 

Loading…
Annulla
Salva