xref: /freebsd/usr.sbin/efivar/efiutil.h (revision 5709a4b5a1a863328e7a7cfc519ebdabb885bbf6)
1*5709a4b5SWarner Losh /*-
2*5709a4b5SWarner Losh  * Copyright (c) 2017 Netflix, Inc.
3*5709a4b5SWarner Losh  * All rights reserved.
4*5709a4b5SWarner Losh  *
5*5709a4b5SWarner Losh  * Redistribution and use in source and binary forms, with or without
6*5709a4b5SWarner Losh  * modification, are permitted provided that the following conditions
7*5709a4b5SWarner Losh  * are met:
8*5709a4b5SWarner Losh  * 1. Redistributions of source code must retain the above copyright
9*5709a4b5SWarner Losh  *    notice, this list of conditions and the following disclaimer.
10*5709a4b5SWarner Losh  * 2. Redistributions in binary form must reproduce the above copyright
11*5709a4b5SWarner Losh  *    notice, this list of conditions and the following disclaimer in the
12*5709a4b5SWarner Losh  *    documentation and/or other materials provided with the distribution.
13*5709a4b5SWarner Losh  *
14*5709a4b5SWarner Losh  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15*5709a4b5SWarner Losh  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*5709a4b5SWarner Losh  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*5709a4b5SWarner Losh  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*5709a4b5SWarner Losh  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*5709a4b5SWarner Losh  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*5709a4b5SWarner Losh  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*5709a4b5SWarner Losh  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*5709a4b5SWarner Losh  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*5709a4b5SWarner Losh  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*5709a4b5SWarner Losh  * SUCH DAMAGE.
25*5709a4b5SWarner Losh  *
26*5709a4b5SWarner Losh  * $FreeBSD$
27*5709a4b5SWarner Losh  */
28*5709a4b5SWarner Losh 
29*5709a4b5SWarner Losh /*
30*5709a4b5SWarner Losh  * differnt routines to dump data.
31*5709a4b5SWarner Losh  */
32*5709a4b5SWarner Losh 
33*5709a4b5SWarner Losh void asciidump(uint8_t *data, size_t datalen);
34*5709a4b5SWarner Losh void bindump(uint8_t *data, size_t datalen);
35*5709a4b5SWarner Losh void efi_print_load_option(uint8_t *, size_t, int, int, int);
36*5709a4b5SWarner Losh void hexdump(uint8_t *data, size_t datalen);
37*5709a4b5SWarner Losh void utf8dump(uint8_t *data, size_t datalen);
38*5709a4b5SWarner Losh 
39