15709a4b5SWarner Losh /*- 25709a4b5SWarner Losh * Copyright (c) 2017 Netflix, Inc. 35709a4b5SWarner Losh * 45709a4b5SWarner Losh * Redistribution and use in source and binary forms, with or without 55709a4b5SWarner Losh * modification, are permitted provided that the following conditions 65709a4b5SWarner Losh * are met: 75709a4b5SWarner Losh * 1. Redistributions of source code must retain the above copyright 85709a4b5SWarner Losh * notice, this list of conditions and the following disclaimer. 95709a4b5SWarner Losh * 2. Redistributions in binary form must reproduce the above copyright 105709a4b5SWarner Losh * notice, this list of conditions and the following disclaimer in the 115709a4b5SWarner Losh * documentation and/or other materials provided with the distribution. 125709a4b5SWarner Losh * 135709a4b5SWarner Losh * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 145709a4b5SWarner Losh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 155709a4b5SWarner Losh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 165709a4b5SWarner Losh * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 175709a4b5SWarner Losh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 185709a4b5SWarner Losh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 195709a4b5SWarner Losh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 205709a4b5SWarner Losh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 215709a4b5SWarner Losh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 225709a4b5SWarner Losh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 235709a4b5SWarner Losh * SUCH DAMAGE. 245709a4b5SWarner Losh */ 255709a4b5SWarner Losh 265709a4b5SWarner Losh /* 27*cf226430SGordon Bergling * different routines to dump data. 285709a4b5SWarner Losh */ 295709a4b5SWarner Losh 305709a4b5SWarner Losh void asciidump(uint8_t *data, size_t datalen); 315709a4b5SWarner Losh void bindump(uint8_t *data, size_t datalen); 325709a4b5SWarner Losh void efi_print_load_option(uint8_t *, size_t, int, int, int); 335709a4b5SWarner Losh void hexdump(uint8_t *data, size_t datalen); 345709a4b5SWarner Losh void utf8dump(uint8_t *data, size_t datalen); 355709a4b5SWarner Losh 36