xref: /csrg-svn/sys/dev/scsi/processor.h (revision 54877)
1*54877Storek /*
2*54877Storek  * Copyright (c) 1992 The Regents of the University of California.
3*54877Storek  * All rights reserved.
4*54877Storek  *
5*54877Storek  * This software was developed by the Computer Systems Engineering group
6*54877Storek  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7*54877Storek  * contributed to Berkeley.
8*54877Storek  *
9*54877Storek  * %sccs.include.redist.c%
10*54877Storek  *
11*54877Storek  *	@(#)processor.h	5.1 (Berkeley) 07/10/92
12*54877Storek  *
13*54877Storek  * from: $Header: processor.h,v 1.2 92/05/15 11:24:01 torek Exp $ (LBL)
14*54877Storek  */
15*54877Storek 
16*54877Storek /*
17*54877Storek  * SCSI definitions for Processor Devices.
18*54877Storek  */
19*54877Storek #define	CMD_RECEIVE		0x08	/* receive */
20*54877Storek #define	CMD_SEND		0x0a	/* send */
21*54877Storek 
22*54877Storek /*
23*54877Storek  * Structure of a RECEIVE or SEND command (i.e., the cdb).
24*54877Storek  */
25*54877Storek struct scsi_cdb_rs {
26*54877Storek 	u_char	cdb_cmd,		/* 0x8 or 0xa */
27*54877Storek 		cdb_lun:3,		/* logical unit number */
28*54877Storek 		cdb_xxx:5,		/* reserved */
29*54877Storek 		cdb_lenh,		/* buffer or data length (MSB) */
30*54877Storek 		cdb_lenm,		/* buffer or data length */
31*54877Storek 		cdb_lenl,		/* buffer or data length (LSB) */
32*54877Storek 		cdb_ctrl;		/* control byte */
33*54877Storek };
34