Merge from vendor branch FILE:
[dragonfly.git] / sys / bus / cam / cam_extend.h
1 /*
2  * Written by Julian Elischer (julian@tfs.com)
3  * for TRW Financial Systems for use under the MACH(2.5) operating system.
4  *
5  * TRW Financial Systems, in accordance with their agreement with Carnegie
6  * Mellon University, makes this software available to CMU to distribute
7  * or use in any manner that they see fit as long as this message is kept with
8  * the software. For this reason TFS also grants any other persons or
9  * organisations permission to use or modify this software.
10  *
11  * TFS supplies this software to be publicly redistributed
12  * on the understanding that TFS is not responsible for the correct
13  * functioning of this software in any circumstances.
14  *
15  * $FreeBSD: src/sys/cam/cam_extend.h,v 1.3 1999/12/29 04:54:25 peter Exp $
16  * $DragonFly: src/sys/bus/cam/cam_extend.h,v 1.2 2003/06/17 04:28:18 dillon Exp $
17  */
18
19 #ifndef _CAM_CAM_EXTEND_H
20 #define _CAM_CAM_EXTEND_H 1
21
22 #ifdef _KERNEL
23 struct extend_array;
24
25 void *cam_extend_get(struct extend_array *ea, int index);       
26 struct extend_array *cam_extend_new(void);
27 void *cam_extend_set(struct extend_array *ea, int index, void *value);
28 void cam_extend_release(struct extend_array *ea, int index);
29
30 #endif
31 #endif /* _CAM_CAM_EXTEND_H */