1/* $OpenBSD: efifbvar.h,v 1.10 2019/05/04 11:34:47 kettenis 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
22struct efifb_attach_args {
23 const char *eaa_name;
24};
25
26struct pci_attach_args;
27
28int efifb_cnattach(void);
29void efifb_cnremap(void);
30int efifb_is_console(struct pci_attach_args *);
31int efifb_is_primary(struct pci_attach_args *);
32void efifb_detach(void);
33void efifb_reattach(void);
34
35int efifb_cb_found(void);
36int efifb_cb_cnattach(void);
37
38psize_t efifb_stolen(void);
39
40#endif /* _MACHINE_EFIFB_H_ */