xref: /freebsd/sys/x86/include/init.h (revision c2641d23e1d77c6c433d87ada2ed048c136838ee)
197baeefdSRoger Pau Monné /*-
297baeefdSRoger Pau Monné  * Copyright (c) 2013 Roger Pau Monné <roger.pau@citrix.com>
397baeefdSRoger Pau Monné  * All rights reserved.
497baeefdSRoger Pau Monné  *
597baeefdSRoger Pau Monné  * Redistribution and use in source and binary forms, with or without
697baeefdSRoger Pau Monné  * modification, are permitted provided that the following conditions
797baeefdSRoger Pau Monné  * are met:
897baeefdSRoger Pau Monné  * 1. Redistributions of source code must retain the above copyright
997baeefdSRoger Pau Monné  *    notice, this list of conditions and the following disclaimer.
1097baeefdSRoger Pau Monné  * 2. Redistributions in binary form must reproduce the above copyright
1197baeefdSRoger Pau Monné  *    notice, this list of conditions and the following disclaimer in the
1297baeefdSRoger Pau Monné  *    documentation and/or other materials provided with the distribution.
1397baeefdSRoger Pau Monné  *
1497baeefdSRoger Pau Monné  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS AS IS'' AND
1597baeefdSRoger Pau Monné  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1697baeefdSRoger Pau Monné  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1797baeefdSRoger Pau Monné  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1897baeefdSRoger Pau Monné  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1997baeefdSRoger Pau Monné  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2097baeefdSRoger Pau Monné  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2197baeefdSRoger Pau Monné  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2297baeefdSRoger Pau Monné  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2397baeefdSRoger Pau Monné  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2497baeefdSRoger Pau Monné  * SUCH DAMAGE.
2597baeefdSRoger Pau Monné  *
2697baeefdSRoger Pau Monné  * $FreeBSD$
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 {
3897baeefdSRoger Pau Monné 	caddr_t	(*parse_preload_data)(u_int64_t);
395f05c794SRoger Pau Monné 	void	(*early_clock_source_init)(void);
405f05c794SRoger Pau Monné 	void	(*early_delay)(int);
411e69553eSRoger Pau Monné 	void	(*parse_memmap)(caddr_t, vm_paddr_t *, int *);
425a036d7eSRoger Pau Monné 	u_int	(*mp_bootaddress)(u_int);
43079f7ef8SRoger Pau Monné 	int	(*start_all_aps)(void);
4497baeefdSRoger Pau Monné };
4597baeefdSRoger Pau Monné 
4697baeefdSRoger Pau Monné extern struct init_ops init_ops;
4797baeefdSRoger Pau Monné 
48*c2641d23SRoger Pau Monné /* Knob to disable acpi_cpu devices */
49*c2641d23SRoger Pau Monné extern bool acpi_cpu_disabled;
50*c2641d23SRoger Pau Monné 
51*c2641d23SRoger Pau Monné /* Knob to disable acpi_hpet device */
52*c2641d23SRoger Pau Monné extern bool acpi_hpet_disabled;
53*c2641d23SRoger Pau Monné 
54*c2641d23SRoger Pau Monné /* Knob to disable acpi_timer device */
55*c2641d23SRoger Pau Monné extern bool acpi_timer_disabled;
56*c2641d23SRoger Pau Monné 
5797baeefdSRoger Pau Monné #endif /* __X86_INIT_H__ */
58