1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * This file is part of the UCB release of Plan 9. It is subject to the license
- * terms in the LICENSE file found in the top-level directory of this
- * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
- * part of the UCB release of Plan 9, including this file, may be copied,
- * modified, propagated, or distributed except according to the terms contained
- * in the LICENSE file.
- */
- enum {
- MaxScsi = 4,
- NTarget = 16,
- Maxnets = 8,
- };
- /*
- * SCSI support code.
- */
- enum {
- STblank =-6, /* blank block */
- STnomem =-5, /* buffer allocation failed */
- STtimeout =-4, /* bus timeout */
- STownid =-3, /* playing with myself */
- STharderr =-2, /* controller error of some kind */
- STinit =-1, /* */
- STok = 0, /* good */
- STcheck = 0x02, /* check condition */
- STcondmet = 0x04, /* condition met/good */
- STbusy = 0x08, /* busy */
- STintok = 0x10, /* intermediate/good */
- STintcondmet = 0x14, /* intermediate/condition met/good */
- STresconf = 0x18, /* reservation conflict */
- STterminated = 0x22, /* command terminated */
- STqfull = 0x28, /* queue full */
- };
- typedef struct Target {
- Scsi *sc; /* from openscsi */
- int ctlrno;
- int targetno;
- uchar* inquiry;
- uchar* sense;
- QLock;
- char id[NAMELEN];
- int ok;
- } Target;
|