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