Port-amigappc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

BlizzardPPC SCSI support!



Hello folks.

I am pleased to present a driver for BlizzardPPC 603e+ SCSI controller. 

BPPC "+" model has 53C710 chip. This driver utilizes our MD siop backend and is 
mostly based on wesc.c (Warp Engine has the same chip). 

Currently driver will try to attach to any BlizzardPPC - vendor 8512, product 
110. Obviously, it should attach to "+" models only, but I don't have BPPC 
without SCSI. I see some solutions, but I don't like them:
- bang the hardware and see if this part of bus space behaves like 53C710 
(seems dangerous)
- check serial number (will not work if someone messed with the card)
- we could just leave driver commented out in GENERIC

I have no idea what will happen now if there's no SCSI chip, maybe someone will 
check and post the results ;).

For now I tested this only on m68k. The driver does DMA transfers, so 
performance is fine, but this may be a problem on ppc. 

amiga.files config:
# Phase5 Blizzard 603e+ SCSI
device  bppcsc: scsi, asiop
attach  bppcsc at zbus
file    arch/amiga/dev/bppcsc.c         bppcsc needs-flag

kernel config:
bppcsc0         at zbus0                # BlizzardPPC 603e+ scsi 
scsibus*        at bppcsc0

Attachment: bppcsc.c
Description: Binary data

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    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 5.99.41 (GENERIC) #10: Fri Jan  7 23:51:05 CET 2011
        
rkujawa%Radoslaw-Kujawas-MacBook-Pro.local@localhost:/Users/rkujawa/repos/NetBSD-current/src/sys/arch/amiga/compile/obj/GENERIC
Amiga 1200 (68060 rev.6 CPU/MMU/FPU)
total memory = 127 MB
avail memory = 121 MB
memory segment 0 at 78000000 size 07f80000
memory segment 1 at 00000000 size 00200000
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
clock0 at mainbus0: CIA B system hz 100 hardware hz 709379
timecounter: Timecounter "CIA B" frequency 709379 Hz quality 100
Calibrating delay loop... 21/1024 us
a2kbbc0 at mainbus0
ser0 at mainbus0: input fifo 512 output fifo 32
par0 at mainbus0
kbd0 at mainbus0: CIA A type Amiga
ms0 at mainbus0
grfcc0 at mainbus0
grf0 at grfcc0: width 640 height 400 colors 4
ite0 at grf0: rows 50 cols 80 repeat at (30/100)s next at (10/100)s has keyboard
fdc0 at mainbus0: dmabuf pa 0x1e0c5c: dmabuf ka 0x626c5c
fd0 at fdc0 unit 0: 3.5dd 80 cyl, 2 head, 11 sec [9 sec], 512 bytes/sec
wdc0 at mainbus0
atabus0 at wdc0 channel 0
pccard0 at mainbus0
pcmcia0 at pccard0
aucc0 at mainbus0
audio0 at aucc0: half duplex, playback, capture
zbus0 at mainbus0
bppcsc0 at zbus0 pa 0xf00c38 man/pro 8512/110
bppcsc0: siop id 7 reset V2
scsibus0 at bppcsc0: 8 targets, 8 luns per target
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
scsibus0: waiting 2 seconds for devices to settle...
bppcsc0: target 1 now synchronous, period=100ns, offset=8
cd0 at scsibus0 target 1 lun 0: <TEAC, CD-ROM CD-532S, 1.0A> cdrom removable
wd0 at atabus0 drive 0: <SanDisk SDCFH2-004G>
wd0: drive supports 4-sector PIO transfers, LBA addressing
wd0: 3919 MB, 7964 cyl, 16 head, 63 sec, 512 bytes/sect x 8027712 sectors
wd0: drive supports PIO mode 4, DMA mode 2
4 views configured
Kernelized RAIDframe activated
root on wd0a dumps on wd0b
root file system type: ffs
WARNING: clock gained 26 days
cd0: no rdb found
ne0 at pcmcia0 function 0: <TAMARACK, Ethernet, A, 004743118001>
ne0: Ethernet address 00:00:21:2f:6c:ee

--
Best regards,
RadosÅaw Kujawa


Home | Main Index | Thread Index | Old Index