dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / mdb / common / kmdb / kmdb_kctl.h
blobad772338a5132020430fd3913afa50eda643bc6f
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
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef _KMDB_KCTL_H
27 #define _KMDB_KCTL_H
29 #pragma ident "%Z%%M% %I% %E% SMI"
32 * Interfaces used by the driver and mdb to interact with kmdb, and vice versa
35 #include <sys/types.h>
36 #include <sys/kdi.h>
38 #include <kmdb/kmdb_auxv.h>
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
45 * Interfaces used by mdb to control kmdb
47 #define KMDB_IOC (0xDB << 16)
48 #define KMDB_IOC_START (KMDB_IOC|1)
49 #define KMDB_IOC_STOP (KMDB_IOC|2)
51 #define KMDB_ACT_F_BOOT 0x1 /* activated during boot */
53 extern int kmdb_init(const char *, kmdb_auxv_t *);
56 * This function should only be defined for sun4v. However the mdb build
57 * uses a custom tool (hdr2map) to generate mapfile from header files but
58 * this tool does not take care of preprocessor directives and functions
59 * are included into the mapfile whatever the architecture is and even
60 * if there is an #ifdef sun4v. So we always declare this function but it
61 * has a fake definition for all architecture but sun4v.
63 extern void kmdb_init_promif(char *, kmdb_auxv_t *);
65 extern void kmdb_activate(kdi_debugvec_t **, uint_t);
66 extern void kmdb_deactivate(void);
68 #ifdef __cplusplus
70 #endif
72 #endif /* _KMDB_KCTL_H */