xref: /openbsd-src/sys/arch/amd64/include/efifbvar.h (revision f2da64fbbbf1b03f09f390ab01267c93dfd77c4c)
1 /*	$OpenBSD: efifbvar.h,v 1.4 2016/06/21 15:24:55 jcs Exp $	*/
2 
3 /*
4  * Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 #ifndef _MACHINE_EFIFB_H_
20 #define _MACHINE_EFIFB_H_
21 
22 struct efifb_attach_args {
23 	const char		*eaa_name;
24 };
25 
26 struct pci_attach_args;
27 
28 int efifb_cnattach(void);
29 int efifb_is_console(struct pci_attach_args *);
30 void efifb_cndetach(void);
31 
32 int efifb_cb_found(void);
33 int efifb_cb_cnattach(void);
34 
35 #endif /* _MACHINE_EFIFB_H_ */
36