metadata.h revision 294274
1251875Speter/*-
2251875Speter * Copyright (c) 2003 Peter Wemm <peter@FreeBSD.org>
3251875Speter * All rights reserved.
4251875Speter *
5251875Speter * Redistribution and use in source and binary forms, with or without
6251875Speter * modification, are permitted provided that the following conditions
7251875Speter * are met:
8251875Speter * 1. Redistributions of source code must retain the above copyright
9251875Speter *    notice, this list of conditions and the following disclaimer.
10251875Speter * 2. Redistributions in binary form must reproduce the above copyright
11251875Speter *    notice, this list of conditions and the following disclaimer in the
12251875Speter *    documentation and/or other materials provided with the distribution.
13251875Speter *
14251875Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15251875Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16251875Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17251875Speter * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18251875Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19251875Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20251875Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21251875Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22251875Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23251875Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24251875Speter * SUCH DAMAGE.
25251875Speter *
26251875Speter * $FreeBSD: stable/10/sys/x86/include/metadata.h 294274 2016-01-18 15:52:07Z emaste $
27251875Speter */
28251875Speter
29251875Speter#ifndef _MACHINE_METADATA_H_
30251875Speter#define	_MACHINE_METADATA_H_
31251875Speter
32251875Speter#define	MODINFOMD_SMAP		0x1001
33251875Speter#define	MODINFOMD_SMAP_XATTR	0x1002
34251875Speter#define	MODINFOMD_DTBP		0x1003
35251875Speter#define	MODINFOMD_EFI_MAP	0x1004
36251875Speter#define	MODINFOMD_EFI_FB	0x1005
37251875Speter#define	MODINFOMD_MODULEP	0x1006
38251875Speter
39251875Speterstruct efi_map_header {
40251875Speter	uint64_t	memory_size;
41251875Speter	uint64_t	descriptor_size;
42251875Speter	uint32_t	descriptor_version;
43251875Speter};
44251875Speter
45251875Speterstruct efi_fb {
46251875Speter	uint64_t	fb_addr;
47251875Speter	uint64_t	fb_size;
48251875Speter	uint32_t	fb_height;
49251875Speter	uint32_t	fb_width;
50251875Speter	uint32_t	fb_stride;
51251875Speter	uint32_t	fb_mask_red;
52251875Speter	uint32_t	fb_mask_green;
53251875Speter	uint32_t	fb_mask_blue;
54251875Speter	uint32_t	fb_mask_reserved;
55251875Speter};
56251875Speter
57251875Speter#endif /* !_MACHINE_METADATA_H_ */
58251875Speter