xref: /freebsd/sys/x86/include/init.h (revision b72ae900d4348118829fe04abdc11b620930c30f)
197baeefdSRoger Pau Monné /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3ebf5747bSPedro F. Giffuni  *
497baeefdSRoger Pau Monné  * Copyright (c) 2013 Roger Pau Monné <roger.pau@citrix.com>
597baeefdSRoger Pau Monné  * All rights reserved.
697baeefdSRoger Pau Monné  *
797baeefdSRoger Pau Monné  * Redistribution and use in source and binary forms, with or without
897baeefdSRoger Pau Monné  * modification, are permitted provided that the following conditions
997baeefdSRoger Pau Monné  * are met:
1097baeefdSRoger Pau Monné  * 1. Redistributions of source code must retain the above copyright
1197baeefdSRoger Pau Monné  *    notice, this list of conditions and the following disclaimer.
1297baeefdSRoger Pau Monné  * 2. Redistributions in binary form must reproduce the above copyright
1397baeefdSRoger Pau Monné  *    notice, this list of conditions and the following disclaimer in the
1497baeefdSRoger Pau Monné  *    documentation and/or other materials provided with the distribution.
1597baeefdSRoger Pau Monné  *
1697baeefdSRoger Pau Monné  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS AS IS'' AND
1797baeefdSRoger Pau Monné  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1897baeefdSRoger Pau Monné  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1997baeefdSRoger Pau Monné  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2097baeefdSRoger Pau Monné  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2197baeefdSRoger Pau Monné  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2297baeefdSRoger Pau Monné  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2397baeefdSRoger Pau Monné  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2497baeefdSRoger Pau Monné  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2597baeefdSRoger Pau Monné  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2697baeefdSRoger Pau Monné  * SUCH DAMAGE.
2797baeefdSRoger Pau Monné  */
2897baeefdSRoger Pau Monné 
2997baeefdSRoger Pau Monné #ifndef __X86_INIT_H__
3097baeefdSRoger Pau Monné #define __X86_INIT_H__
3197baeefdSRoger Pau Monné /*
3297baeefdSRoger Pau Monné  * Struct containing pointers to init functions whose
3397baeefdSRoger Pau Monné  * implementation is run time selectable.  Selection can be made,
3497baeefdSRoger Pau Monné  * for example, based on detection of a BIOS variant or
3597baeefdSRoger Pau Monné  * hypervisor environment.
3697baeefdSRoger Pau Monné  */
3797baeefdSRoger Pau Monné struct init_ops {
38*b72ae900SAhmad Khalifa 	void	(*parse_preload_data)(u_int64_t);
395f05c794SRoger Pau Monné 	void	(*early_clock_source_init)(void);
405f05c794SRoger Pau Monné 	void	(*early_delay)(int);
41*b72ae900SAhmad Khalifa 	void	(*parse_memmap)(vm_paddr_t *, int *);
4297baeefdSRoger Pau Monné };
4397baeefdSRoger Pau Monné 
4497baeefdSRoger Pau Monné extern struct init_ops init_ops;
4597baeefdSRoger Pau Monné 
46c2641d23SRoger Pau Monné /* Knob to disable acpi_cpu devices */
47c2641d23SRoger Pau Monné extern bool acpi_cpu_disabled;
48c2641d23SRoger Pau Monné 
49c2641d23SRoger Pau Monné /* Knob to disable acpi_hpet device */
50c2641d23SRoger Pau Monné extern bool acpi_hpet_disabled;
51c2641d23SRoger Pau Monné 
52c2641d23SRoger Pau Monné /* Knob to disable acpi_timer device */
53c2641d23SRoger Pau Monné extern bool acpi_timer_disabled;
54c2641d23SRoger Pau Monné 
5597baeefdSRoger Pau Monné #endif /* __X86_INIT_H__ */
56