more of the sparc32 port by Blue Swirl <blueswir1@hotmail.com>

git-svn-id: svn://coreboot.org/openbios/openbios-devel@4 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-05-04 22:07:30 +00:00
parent 9a04f5a6c1
commit 8e89ccf89e
26 changed files with 1201 additions and 56 deletions

18
drivers/esp.fs Normal file
View File

@@ -0,0 +1,18 @@
\ -------------------------------------------------------------------------
\ SCSI encode/decode unit
\ -------------------------------------------------------------------------
: decode-unit-scsi ( str len -- id lun )
ascii , left-split
( addr-R len-R addr-L len-L )
parse-hex
-rot parse-hex
swap
;
: encode-unit-scsi ( id lun -- str len)
swap
pocket tohexstr
" ," pocket tmpstrcat >r
rot pocket tohexstr r> tmpstrcat drop
;