02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

I<br />

Writing a SCSI-2 Device Driver<br />

;/**************************************************************************<br />

;*<br />

;* doDataIn - handle DATA IN phase<br />

;*/<br />

doDataIn:<br />

;...<br />

jump<br />

REL(nextPhase)<br />

;/**************************************************************************<br />

;*<br />

;* doCommand - handle COMMAND phase<br />

;*/<br />

doCommand:<br />

;...<br />

jump<br />

REL(nextPhase)<br />

;/**************************************************************************<br />

;*<br />

;* doStatus - handle STATUS phase<br />

;*/<br />

doStatus:<br />

;...<br />

jump<br />

REL(nextPhase)<br />

;/***************************************************************************<br />

;*<br />

;* doMsgOut - handle MSG OUT phase<br />

;*/<br />

doMsgOut:<br />

I<br />

;...<br />

jump<br />

REL(nextPhase)<br />

;/**************************************************************************<br />

;*<br />

;* doMsgIn - handle MSG IN phase<br />

;*<br />

;* Note: there is little point in having the '810 parse the message type<br />

;* unless it can save the host some work by doing so; DISCONNECT and<br />

;* COMMAND COMPLETE are really the only cases in point. Multi-byte messages<br />

;* are handled specially - see the comments below.<br />

;*/<br />

doMsgIn:<br />

355

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!