8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / uts / sun4u / sys / rmcadm.h
blob19690e0b6e1c2cd569a2cd20e5d0bd5cf3f02aa7
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_RMCADM_IMPL_H
28 #define _SYS_RMCADM_IMPL_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
36 #define RMCADM_REQUEST_RESPONSE 0
37 #define RMCADM_RESET_SP 1
38 #define RMCADM_REQUEST_RESPONSE_BP 2
39 #define RMCADM_SEND_SRECORD_BP 3
41 typedef struct rmcadm_msg {
42 uint8_t msg_type; /* message type */
43 uint16_t msg_len; /* size of the message buffer */
44 uint16_t msg_bytes; /* number of bytes returned */
45 caddr_t msg_buf; /* message buffer */
46 } rmcadm_msg_t;
48 typedef struct rmcadm_request_response {
49 rmcadm_msg_t req;
50 rmcadm_msg_t resp;
51 uint_t wait_time;
52 int status;
53 } rmcadm_request_response_t;
55 typedef struct rmcadm_send_srecord_bp {
56 uint_t data_len;
57 caddr_t data_buf; /* message buffer */
58 rmcadm_msg_t resp_bp; /* BP message returned */
59 uint32_t wait_time; /* max waiting time for a BP message */
60 /* (millisec) */
61 int status;
62 } rmcadm_send_srecord_bp_t;
64 #if defined(_SYSCALL32)
65 typedef struct rmcadm_msg32 {
66 uint8_t msg_type; /* message type */
67 uint16_t msg_len; /* size of the message buffer */
68 uint16_t msg_bytes; /* number of bytes returned */
69 caddr32_t msg_buf; /* message buffer */
70 } rmcadm_msg32_t;
72 typedef struct rmcadm_request_response32 {
73 rmcadm_msg32_t req;
74 rmcadm_msg32_t resp;
75 uint32_t wait_time;
76 int status;
77 } rmcadm_request_response32_t;
79 typedef struct rmcadm_send_srecord_bp32 {
80 uint_t data_len;
81 caddr32_t data_buf; /* message buffer */
82 rmcadm_msg32_t resp_bp;
83 uint32_t wait_time;
84 int status;
85 } rmcadm_send_srecord_bp32_t;
87 #endif /* _SYSCALL32 */
89 #ifdef __cplusplus
91 #endif
93 #endif /* _SYS_RMCADM_IMPL_H */