xref: /illumos-gate/usr/src/cmd/amdzen/amdzen_common.h (revision dde6d5134333279b60915f237b5c04f4472bb385)
1*dde6d513SAndy Fiddaman /*
2*dde6d513SAndy Fiddaman  * This file and its contents are supplied under the terms of the
3*dde6d513SAndy Fiddaman  * Common Development and Distribution License ("CDDL"), version 1.0.
4*dde6d513SAndy Fiddaman  * You may only use this file in accordance with the terms of version
5*dde6d513SAndy Fiddaman  * 1.0 of the CDDL.
6*dde6d513SAndy Fiddaman  *
7*dde6d513SAndy Fiddaman  * A full copy of the text of the CDDL should have accompanied this
8*dde6d513SAndy Fiddaman  * source.  A copy of the CDDL is also available via the Internet at
9*dde6d513SAndy Fiddaman  * http://www.illumos.org/license/CDDL.
10*dde6d513SAndy Fiddaman  */
11*dde6d513SAndy Fiddaman 
12*dde6d513SAndy Fiddaman /*
13*dde6d513SAndy Fiddaman  * Copyright 2026 Oxide Computer Company
14*dde6d513SAndy Fiddaman  */
15*dde6d513SAndy Fiddaman 
16*dde6d513SAndy Fiddaman #ifndef _AMDZEN_COMMON_H
17*dde6d513SAndy Fiddaman #define	_AMDZEN_COMMON_H
18*dde6d513SAndy Fiddaman 
19*dde6d513SAndy Fiddaman #ifdef __cplusplus
20*dde6d513SAndy Fiddaman extern "C" {
21*dde6d513SAndy Fiddaman #endif
22*dde6d513SAndy Fiddaman 
23*dde6d513SAndy Fiddaman #define	EXIT_USAGE	2
24*dde6d513SAndy Fiddaman 
25*dde6d513SAndy Fiddaman extern int amdzen_open_device(const char *, const char *, int);
26*dde6d513SAndy Fiddaman 
27*dde6d513SAndy Fiddaman #ifdef __cplusplus
28*dde6d513SAndy Fiddaman }
29*dde6d513SAndy Fiddaman #endif
30*dde6d513SAndy Fiddaman 
31*dde6d513SAndy Fiddaman #endif /* _AMDZEN_COMMON_H */
32