xref: /illumos-gate/usr/src/uts/intel/sys/memlist_plat.h (revision a31148363f598def767ac48c5d82e1572e44b935)
1*a3114836SGerry Liu /*
2*a3114836SGerry Liu  * CDDL HEADER START
3*a3114836SGerry Liu  *
4*a3114836SGerry Liu  * The contents of this file are subject to the terms of the
5*a3114836SGerry Liu  * Common Development and Distribution License (the "License").
6*a3114836SGerry Liu  * You may not use this file except in compliance with the License.
7*a3114836SGerry Liu  *
8*a3114836SGerry Liu  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*a3114836SGerry Liu  * or http://www.opensolaris.org/os/licensing.
10*a3114836SGerry Liu  * See the License for the specific language governing permissions
11*a3114836SGerry Liu  * and limitations under the License.
12*a3114836SGerry Liu  *
13*a3114836SGerry Liu  * When distributing Covered Code, include this CDDL HEADER in each
14*a3114836SGerry Liu  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*a3114836SGerry Liu  * If applicable, add the following below this CDDL HEADER, with the
16*a3114836SGerry Liu  * fields enclosed by brackets "[]" replaced with your own identifying
17*a3114836SGerry Liu  * information: Portions Copyright [yyyy] [name of copyright owner]
18*a3114836SGerry Liu  *
19*a3114836SGerry Liu  * CDDL HEADER END
20*a3114836SGerry Liu  */
21*a3114836SGerry Liu /*
22*a3114836SGerry Liu  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*a3114836SGerry Liu  * Use is subject to license terms.
24*a3114836SGerry Liu  */
25*a3114836SGerry Liu /*
26*a3114836SGerry Liu  * Copyright (c) 2010, Intel Corporation.
27*a3114836SGerry Liu  * All rights reserved.
28*a3114836SGerry Liu  */
29*a3114836SGerry Liu 
30*a3114836SGerry Liu #ifndef	_SYS_MEMLIST_PLAT_H
31*a3114836SGerry Liu #define	_SYS_MEMLIST_PLAT_H
32*a3114836SGerry Liu 
33*a3114836SGerry Liu /*
34*a3114836SGerry Liu  * Boot time configuration information objects
35*a3114836SGerry Liu  */
36*a3114836SGerry Liu 
37*a3114836SGerry Liu #include <sys/types.h>
38*a3114836SGerry Liu #include <sys/memlist.h>
39*a3114836SGerry Liu 
40*a3114836SGerry Liu #ifdef __cplusplus
41*a3114836SGerry Liu extern "C" {
42*a3114836SGerry Liu #endif
43*a3114836SGerry Liu 
44*a3114836SGerry Liu extern int check_boot_version(int);
45*a3114836SGerry Liu extern void copy_memlist_filter(struct memlist *, struct memlist **,
46*a3114836SGerry Liu     void (*filter)(uint64_t *, uint64_t *));
47*a3114836SGerry Liu extern void installed_top_size(struct memlist *, pfn_t *, pgcnt_t *);
48*a3114836SGerry Liu extern void installed_top_size_ex(struct memlist *, pfn_t *, pgcnt_t *, int *);
49*a3114836SGerry Liu extern void phys_install_has_changed(void);
50*a3114836SGerry Liu 
51*a3114836SGerry Liu #ifdef __cplusplus
52*a3114836SGerry Liu }
53*a3114836SGerry Liu #endif
54*a3114836SGerry Liu 
55*a3114836SGerry Liu #endif	/* _SYS_MEMLIST_PLAT_H */
56