[comp.sys.atari.st] SCSI Device ID#

paulm@ccicpg.UUCP (Paul Moreau) (10/30/90)

   I am currently writing a driver for my scsi cartridge tape drive.
   I have it working doing tar's and other stuff as Device ID# 0 but
   I want it to work with my hard disk pluged in also.   I have written
   a lot of disk code in assembler based on some code from an Abacas
   book but I can't get it to talk to anything but ID 0.   Is the BMS100
   capable of talking to other IDs (preferably #6) ?

   If and when I get this working I'll release my code here as PD.
   Any help would be apreciated.

   Here is a little code segment:

       scsi_read:
		movea.l	#$ffff8604,a0	; WDC
		st	$043e		; flock
		[....]			; move the buffer address in 3 DMA addrs
		move.w	#$88,2(a0)	;

		lea	CDB,a2		; get CDB pointer
		clr.l	d0		;
		move.w	#5,d1		; CDB size

	10$:	move.b	(a2)+,d0	; get CDB byte
		swap	d0		; put it in upper 16 bits
		move.w	#$8a,d0		; get ?
		move.l	d0,(a0)		; write it to WDC
		brs	short_wait	; short wait for intr
		dbf	d1,10$		; loop for 6 CDB bytes

		......

   The code was from memory so probably is not very correct but hopefully
   it will give you some idea on where I need to work on this for the ID.

   Well,  Thanx in advance,  Paul Moreau.
---
  .==========================================================.
  | ### ####### ###     |    N O R T H    | /==============\ |
  | ### ###     ###     |  A M E R I C A  |< An STC Company >|
  | ### ####### ####### |    (was CCI)    | \==============/ |
  |----------------------------------------------------------|
  | UUCP: ..uunet!ccicpg!dl2!paulm |     Paul L. Moreau      |
  |   or  ..uunet!ccicpg!dl1!paulm | Sr. Diag Software Eng.  |
  |   or  ..uunet!ccicpg!paulm     |   Irvine, California    |
  `=========================================================='