xref: /freebsd/sys/x86/include/init.h (revision 97baeefd5b42d5f43006928126733d63379d0c46)
1*97baeefdSRoger Pau Monné /*-
2*97baeefdSRoger Pau Monné  * Copyright (c) 2013 Roger Pau Monné <roger.pau@citrix.com>
3*97baeefdSRoger Pau Monné  * All rights reserved.
4*97baeefdSRoger Pau Monné  *
5*97baeefdSRoger Pau Monné  * Redistribution and use in source and binary forms, with or without
6*97baeefdSRoger Pau Monné  * modification, are permitted provided that the following conditions
7*97baeefdSRoger Pau Monné  * are met:
8*97baeefdSRoger Pau Monné  * 1. Redistributions of source code must retain the above copyright
9*97baeefdSRoger Pau Monné  *    notice, this list of conditions and the following disclaimer.
10*97baeefdSRoger Pau Monné  * 2. Redistributions in binary form must reproduce the above copyright
11*97baeefdSRoger Pau Monné  *    notice, this list of conditions and the following disclaimer in the
12*97baeefdSRoger Pau Monné  *    documentation and/or other materials provided with the distribution.
13*97baeefdSRoger Pau Monné  *
14*97baeefdSRoger Pau Monné  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS AS IS'' AND
15*97baeefdSRoger Pau Monné  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16*97baeefdSRoger Pau Monné  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17*97baeefdSRoger Pau Monné  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18*97baeefdSRoger Pau Monné  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19*97baeefdSRoger Pau Monné  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20*97baeefdSRoger Pau Monné  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21*97baeefdSRoger Pau Monné  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22*97baeefdSRoger Pau Monné  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23*97baeefdSRoger Pau Monné  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24*97baeefdSRoger Pau Monné  * SUCH DAMAGE.
25*97baeefdSRoger Pau Monné  *
26*97baeefdSRoger Pau Monné  * $FreeBSD$
27*97baeefdSRoger Pau Monné  */
28*97baeefdSRoger Pau Monné 
29*97baeefdSRoger Pau Monné #ifndef __X86_INIT_H__
30*97baeefdSRoger Pau Monné #define __X86_INIT_H__
31*97baeefdSRoger Pau Monné /*
32*97baeefdSRoger Pau Monné  * Struct containing pointers to init functions whose
33*97baeefdSRoger Pau Monné  * implementation is run time selectable.  Selection can be made,
34*97baeefdSRoger Pau Monné  * for example, based on detection of a BIOS variant or
35*97baeefdSRoger Pau Monné  * hypervisor environment.
36*97baeefdSRoger Pau Monné  */
37*97baeefdSRoger Pau Monné struct init_ops {
38*97baeefdSRoger Pau Monné 	caddr_t	(*parse_preload_data)(u_int64_t);
39*97baeefdSRoger Pau Monné };
40*97baeefdSRoger Pau Monné 
41*97baeefdSRoger Pau Monné extern struct init_ops init_ops;
42*97baeefdSRoger Pau Monné 
43*97baeefdSRoger Pau Monné #endif /* __X86_INIT_H__ */
44