FreeBSD/Linux Kernel Cross Reference
sys/sqtsec/sec_ctl.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991 Carnegie Mellon University
4 * Copyright (c) 1991 Sequent Computer Systems
5 * All Rights Reserved.
6 *
7 * Permission to use, copy, modify and distribute this software and its
8 * documentation is hereby granted, provided that both the copyright
9 * notice and this permission notice appear in all copies of the
10 * software, derivative works or modified versions, and any portions
11 * thereof, and that both notices appear in supporting documentation.
12 *
13 * CARNEGIE MELLON AND SEQUENT COMPUTER SYSTEMS ALLOW FREE USE OF
14 * THIS SOFTWARE IN ITS "AS IS" CONDITION. CARNEGIE MELLON AND
15 * SEQUENT COMPUTER SYSTEMS DISCLAIM ANY LIABILITY OF ANY KIND FOR
16 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * Carnegie Mellon requests users of this software to return to
19 *
20 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
24 *
25 * any improvements or extensions that they make and grant Carnegie Mellon
26 * the rights to redistribute these changes.
27 */
28
29 /*
30 * HISTORY
31 * $Log: sec_ctl.h,v $
32 * Revision 2.3 91/07/31 18:07:47 dbg
33 * Changed copyright.
34 * [91/07/31 dbg]
35 *
36 * Revision 2.2 91/05/08 13:07:32 dbg
37 * Added, from Sequent SYMMETRY sources.
38 * [91/02/26 dbg]
39 *
40 */
41
42 /*
43 * $Header: sec_ctl.h,v 2.3 91/07/31 18:07:47 dbg Exp $
44 */
45
46 /*
47 * sec_ctl.h
48 * Definitions of the common structures used by SCSI/Ether drivers.
49 */
50
51 /*
52 * Revision 1.1 89/07/05 13:20:16 kak
53 * Initial revision
54 *
55 */
56
57 #ifndef _SQT_SEC_CTL_H_
58 #define _SQT_SEC_CTL_H_
59
60 /*
61 * struct sed_dc - structure to maintain the queue's with the macros
62 * below.
63 */
64 struct seddc {
65 /*
66 * device program management.
67 */
68 struct sec_cib *dc_cib; /* cib ptr */
69 struct sec_progq *dc_diq; /* diq ptr */
70 struct sec_progq *dc_doq; /* doq ptr */
71 int dc_dsz; /* doq size */
72 int dc_dp; /* number of device programs */
73 int dc_dfree;
74 struct sec_dev_prog *dc_devp; /* head of the device program ring */
75 struct sec_dev_prog *dc_sense; /* aux device program for sense info */
76 /*
77 * iat management.
78 */
79 struct sec_iat *dc_iat; /* Start of iats */
80 struct sec_iat *dc_istart; /* current useable iat ring position */
81 int dc_isz; /* iat ring size */
82 int dc_ihead; /* iat head */
83 int dc_itail; /* iat tail */
84 int dc_ifree; /* current ring allocation */
85 };
86
87 #endif /* _SQT_SEC_CTL_H_ */
Cache object: e1a43cd2f29a2335aeb4f95cebfaa840
|