summaryrefslogtreecommitdiffstats
path: root/arch/x86/boards/x86_generic/envsector.h
blob: 57a6d2a21ff26a781cb37c04b730626eff98e557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0-or-later */

/**
 * @file
 * @brief x86 Generic PC common definitions
 */
#ifndef __X86_ENVSECTOR_H
#define __ENVSECTOR_H

/*
 * These datas are from the MBR, created by the linker and filled by the
 * setup tool while installing barebox on the disk drive
 */
extern uint64_t pers_env_storage;
extern uint16_t pers_env_size;
extern uint8_t pers_env_drive;

/**
 * Persistent environment "not used" marker.
 * Note: Must be in accordance to the value the tool "setup_mbr" writes.
 */
#define PATCH_AREA_PERS_SIZE_UNUSED 0x000

#endif