9fans archive / 1998 / 10 / 56 / prev next
From: James A. Robinson Jim.Robinson@Sta...
Subject: [9fans] 9pcfs can't init ncr53c8xx. :-(
Date: Sun, 18 Oct 1998 23:14:03 -0700
Well, I got the new 9pcfs kernel to compile. Jim McKie very kindly pointed
out that I really did need to remember little C-isms like prototyping! :)
Now that I have the new kernel compiled, I'm having trouble getting
the driver to find the card (this card happens to be a Diamond Fireport
40). The INIT keeps failing, and I'm not sure if it is because I forgot
some vital piece of code, or if I'm not passing it the right arguments.
In detail, the card is failing within a loop of calls which seem to try
probing for the existance of the pci card. From my print statements,
what is going on is this:
scsi.c calls ncr53c8xxreset ...
ncr53c8xxreset calls init ...
for (var = 0; var < MAXVAR; var++) {
pcicfg.did = variant[var].did;
devno = 0;
if((devno = pcimatch(0, devno, &pcicfg)) < 0)
continue;
if(pcicfg.rid <= variant[var].maxrid)
break;
}
if (var >= MAXVAR) {
return 0;
}
>From my tests, var is ending up greater than or equal to MAXVAR. So does
this indicate that it couldn't find the PCI card? One potential problem
is that, while the card is on IRQ 11, I don't know what port it is using.
I tried the following in plan9.ini (scsi0=ncr53c8xx port=0xNNN): 0x130,
0x134, 0x230, 0x290, 0x234, 0x330, 0x334, 0x3c0, 0x3d0.
One thing to note is that the card and drive do work under DR-DOS.
I hooked up the card and drive, stuck in a DR-DOS boot floppy, and
fdisk saw drive C: as the 9gig SCSI drive. I would guess this means
there is some common port/irq handler at work here, but since I don't
have my PC hardware bible at hand... (for some reason 'INT3H handler'
is in the back of my mind).
Any help would be very much appreciated. :)
Jim