Subject: CVS commit: syssrc/sys/dev/ieee1394
To: None <source-changes@netbsd.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 12/01/2002 14:09:57
Module Name:	syssrc
Committed By:	jmc
Date:		Sun Dec  1 12:09:57 UTC 2002

Modified Files:
	syssrc/sys/dev/ieee1394: sbp2.c

Log Message:
Checkpoint checkin:
1. Clean up some debugging and trigger some on only extreme debugging needs
2. Comment alloc data mapping a bit better and fix some of the bugs here
(note..there still are some so for now the free method is never called while
I track these down)
3. Fix the copying logic in data_resp. It was calculating negative offsets
which blew up memcpy.

At this point I can probe, inquire and get through the findroot steps of a
boot:

sd0 at scsibus0 target 0 lun 0: <Maxtor, 1394 storage, 60> disk fixed
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 76293 MB, 76293 cyl, 64 head, 32 sec, 512 bytes/sect x 156250000 sectors
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: no disk label
findroot: can't open dev sd0a (6)

NOTE: This will panic my machine right now with a simple disklabel -r sd0.
Also, since the free mappings routines are if (0)'d out at the moment do not
use this code for anything except experiments and then only on a machine
you don't mind panic'ing.

Fixing the mapping routines will be the next step and then finally chasing
down the proper mode sense these drives understand.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 syssrc/sys/dev/ieee1394/sbp2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.