Deleted Added
full compact
bios.h (173118) bios.h (191111)
1/*-
2 * Copyright (c) 1997 Michael Smith
3 * Copyright (c) 1998 Jonathan Lemon
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 1997 Michael Smith
3 * Copyright (c) 1998 Jonathan Lemon
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/amd64/include/pc/bios.h 173118 2007-10-28 21:23:49Z jhb $
27 * $FreeBSD: head/sys/amd64/include/pc/bios.h 191111 2009-04-15 17:31:22Z jkim $
28 */
29
30#ifndef _MACHINE_PC_BIOS_H_
31#define _MACHINE_PC_BIOS_H_
32
33extern u_int32_t bios_sigsearch(u_int32_t start, u_char *sig, int siglen,
34 int paralen, int sigofs);
35

--- 7 unchanged lines hidden (view full) ---

43#define SMAP_SIG 0x534D4150 /* 'SMAP' */
44
45#define SMAP_TYPE_MEMORY 1
46#define SMAP_TYPE_RESERVED 2
47#define SMAP_TYPE_ACPI_RECLAIM 3
48#define SMAP_TYPE_ACPI_NVS 4
49#define SMAP_TYPE_ACPI_ERROR 5
50
28 */
29
30#ifndef _MACHINE_PC_BIOS_H_
31#define _MACHINE_PC_BIOS_H_
32
33extern u_int32_t bios_sigsearch(u_int32_t start, u_char *sig, int siglen,
34 int paralen, int sigofs);
35

--- 7 unchanged lines hidden (view full) ---

43#define SMAP_SIG 0x534D4150 /* 'SMAP' */
44
45#define SMAP_TYPE_MEMORY 1
46#define SMAP_TYPE_RESERVED 2
47#define SMAP_TYPE_ACPI_RECLAIM 3
48#define SMAP_TYPE_ACPI_NVS 4
49#define SMAP_TYPE_ACPI_ERROR 5
50
51#define SMAP_XATTR_ENABLED 0x00000001
52#define SMAP_XATTR_NON_VOLATILE 0x00000002
53#define SMAP_XATTR_MASK (SMAP_XATTR_ENABLED | SMAP_XATTR_NON_VOLATILE)
54
51struct bios_smap {
52 u_int64_t base;
53 u_int64_t length;
54 u_int32_t type;
55} __packed;
56
57struct bios_oem_signature {
58 char * anchor; /* search anchor string in BIOS memory */

--- 17 unchanged lines hidden ---
55struct bios_smap {
56 u_int64_t base;
57 u_int64_t length;
58 u_int32_t type;
59} __packed;
60
61struct bios_oem_signature {
62 char * anchor; /* search anchor string in BIOS memory */

--- 17 unchanged lines hidden ---