xref: /titanic_41/usr/src/uts/common/sys/bl.h (revision 6185db853e024a486ff8837e6784dd290d866112)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef _SYS_BL_H
28 #define	_SYS_BL_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 /*
33  * The interfaces described below are private to FMA.
34  */
35 
36 #ifdef	__cplusplus
37 extern "C" {
38 #endif
39 
40 #include <sys/types.h>
41 #include <sys/processor.h>
42 #include <sys/fm/protocol.h>
43 
44 #define	BLIOC_INSERT		(('B' << 8) | 0x01)
45 #define	BLIOC_DELETE		(('B' << 8) | 0x02)
46 
47 typedef struct bl_req {
48 	caddr_t		bl_fmri;	/* buffer containing packed FMRI */
49 	size_t		bl_fmrisz;	/* size of packed FMRI */
50 	caddr_t		bl_class;	/* event class reason for blacklist */
51 } bl_req_t;
52 
53 #if defined(_SYSCALL32)
54 typedef struct bl_req32 {
55 	caddr32_t	bl_fmri;
56 	size32_t	bl_fmrisz;
57 	caddr32_t	bl_class;
58 } bl_req32_t;
59 #endif	/* _SYSCALL32 */
60 
61 #define	BL_FMRI_MAX_BUFSIZE	8192	/* maximum allowed packed FMRI size */
62 
63 #ifdef _KERNEL
64 
65 extern int blacklist(int, const char *, nvlist_t *, const char *);
66 
67 #endif
68 
69 #ifdef	__cplusplus
70 }
71 #endif
72 
73 #endif	/* _SYS_BL_H */
74