Subject: AdvanSys UltraWide driver on the Alpha
To: None <>
From: Jason Thorpe <>
List: port-alpha
Date: 08/15/1999 19:11:17
Hi folks...

Just to let you know, I've nearly fixed the "adw" driver (for the AdvanSys
UltraWide boards) to work on the Alpha.  There were several LP64 problems
remaining in the code.

Loading netbsd...
2265480+274672 [85+140016+75134]

Entering netbsd at 0xfffffc0000301170...
[ preserving 216136 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.4J (YEAH-BABY) #5: Sun Aug 15 19:06:48 PDT 1999
AlphaStation 200 4/233, 233MHz
8192 byte page size, 1 processor.
total memory = 32768 KB
(2000 KB reserved for PROM, 30768 KB used by NetBSD)
avail memory = 25568 KB
using 205 buffers containing 1640 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21064A-0 ()
apecs0 at mainbus0: DECchip 21071 Core Logic chipset
apecs0: DC21071-CA pass 2, 64-bit memory bus
apecs0: DC21071-DA pass 2
pci0 at apecs0 bus 0
pci0: i/o enabled, memory enabled
ncr0 at pci0 dev 6 function 0: ncr 53c810 fast10 scsi
ncr0: interrupting at isa irq 11
ncr0: minsync=25, maxsync=206, maxoffs=8, 16 dwords burst, normal dma fifo
ncr0: single-ended, open drain IRQ driver
ncr0: restart (scsi reset).
scsibus0 at ncr0: 8 targets, 8 luns per target
probe(ncr0:0:0): 5.0 MB/s (200 ns, offset 8)
sd0 at scsibus0 targ 0 lun 0: <COMPAQ, ST32550N, 6316> SCSI2 0/direct fixed
sd0(ncr0:0:0): 10.0 MB/s (100 ns, offset 8)
sd0: 2006 MB, 3511 cyl, 11 head, 106 sec, 512 bytes/sect x 4110000 sectors
sio0 at pci0 dev 7 function 0: Intel 82378ZB System I/O (SIO) (rev. 0x43)
de0 at pci0 dev 11 function 0
de0: interrupting at isa irq 5
de0: DEC 21040 [10Mb/s] pass 2.4
de0: address 00:00:f8:23:43:9d
adw0 at pci0 dev 12 function 0: AdvanSys ABP-9xxUW SCSI adapter
adw0: interrupting at isa irq 9
scsibus1 at adw0: 16 targets, 8 luns per target
sd1 at scsibus1 targ 1 lun 0: <IBM, DDRS-34560D, DC1B> SCSI2 0/direct fixed
sd1: 4357 MB, 8387 cyl, 5 head, 212 sec, 512 bytes/sect x 8925000 sectors
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x3bc-0x3bf irq 7
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
de0: enabling AUI/BNC port
IPsec: Initialized Security Association Processing.
de0: supplying EUI64: 00:00:f8:ff:fe:23:43:9d
root on sd0a dumps on sd0b
root file system type: ffs still doesn't quite work, however:

mini-me# dd if=/dev/rsd1c of=/dev/null bs=64k
<drive light lights up...>
^C^C^C^C<unable to interrupt dd process>
sd1: disk label read error
sd1(adw0:1:0): timed out
adw0: exiting ccb not allocated!
panic: should call debugger here (adv.c)
Stopped at      Debugger+0x4:   ret     zero,(ra)
db> trace
Debugger() at Debugger+0x4
panic() at panic+0xe4
adw_wide_isr_callback() at adw_wide_isr_callback+0xd4
AdvISR() at AdvISR+0x364
adw_intr() at adw_intr+0x20
alpha_shared_intr_dispatch() at alpha_shared_intr_dispatch+0x3c
sio_iointr() at sio_iointr+0x80
interrupt() at interrupt+0x168
XentInt() at XentInt+0x1c
--- interrupt (from ipl 0) ---
idle() at idle+0x24
mi_switch() at mi_switch+0x188
tsleep() at tsleep+0x2c0
sys_select() at sys_select+0x414
syscall() at syscall+0x1e0
XentSys() at XentSys+0x50
--- syscall (93) ---
--- user mode ---

        -- Jason R. Thorpe <>