1*479ab7f0SSascha Wildner /*- 2*479ab7f0SSascha Wildner * Copyright (c) 2013 The FreeBSD Foundation 3*479ab7f0SSascha Wildner * All rights reserved. 4*479ab7f0SSascha Wildner * 5*479ab7f0SSascha Wildner * This software was developed by Benno Rice under sponsorship from 6*479ab7f0SSascha Wildner * the FreeBSD Foundation. 7*479ab7f0SSascha Wildner * Redistribution and use in source and binary forms, with or without 8*479ab7f0SSascha Wildner * modification, are permitted provided that the following conditions 9*479ab7f0SSascha Wildner * are met: 10*479ab7f0SSascha Wildner * 1. Redistributions of source code must retain the above copyright 11*479ab7f0SSascha Wildner * notice, this list of conditions and the following disclaimer. 12*479ab7f0SSascha Wildner * 2. Redistributions in binary form must reproduce the above copyright 13*479ab7f0SSascha Wildner * notice, this list of conditions and the following disclaimer in the 14*479ab7f0SSascha Wildner * documentation and/or other materials provided with the distribution. 15*479ab7f0SSascha Wildner * 16*479ab7f0SSascha Wildner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17*479ab7f0SSascha Wildner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18*479ab7f0SSascha Wildner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19*479ab7f0SSascha Wildner * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20*479ab7f0SSascha Wildner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21*479ab7f0SSascha Wildner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22*479ab7f0SSascha Wildner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23*479ab7f0SSascha Wildner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24*479ab7f0SSascha Wildner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25*479ab7f0SSascha Wildner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26*479ab7f0SSascha Wildner * SUCH DAMAGE. 27*479ab7f0SSascha Wildner * 28*479ab7f0SSascha Wildner * $FreeBSD: head/sys/boot/efi/loader/arch/amd64/framebuffer.h 280950 2015-04-01 08:30:40Z andrew $ 29*479ab7f0SSascha Wildner */ 30*479ab7f0SSascha Wildner 31*479ab7f0SSascha Wildner #ifndef _EFIFB_H_ 32*479ab7f0SSascha Wildner #define _EFIFB_H_ 33*479ab7f0SSascha Wildner 34*479ab7f0SSascha Wildner int efi_find_framebuffer(struct efi_fb *efifb); 35*479ab7f0SSascha Wildner 36*479ab7f0SSascha Wildner /* Guess bits-per-pixel from the color masks. */ 37*479ab7f0SSascha Wildner u_int efi_framebuffer_bpp(struct efi_fb *efifb); 38*479ab7f0SSascha Wildner 39*479ab7f0SSascha Wildner #endif /* _EFIFB_H_ */ 40