diff options
author | Julien Viard de Galbert <jviarddegalbert@online.net> | 2018-03-07 15:48:54 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-03-07 21:10:07 +0000 |
commit | 0e755d4f7a6458b6b12008d89a6c689a5b65a03c (patch) | |
tree | c7c6ee42f8b3e26954550242de3a38b2beb30c97 /src/mainboard/scaleway/tagada/bmcinfo.h | |
parent | 9d2e597908d4467bd325a0b581f978e5639c8b68 (diff) |
mb/scaleway/tagada: Add bmcInfo interface
This interface gives access to configuration information stored in flash
by the Tagada BMC before booting the SoC.
Change-Id: I4351aa11b08bdf65e14706b261c532bbf8837aed
Signed-off-by: Julien Viard de Galbert <jviarddegalbert@online.net>
Reviewed-on: https://review.coreboot.org/23813
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/scaleway/tagada/bmcinfo.h')
-rw-r--r-- | src/mainboard/scaleway/tagada/bmcinfo.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/mainboard/scaleway/tagada/bmcinfo.h b/src/mainboard/scaleway/tagada/bmcinfo.h new file mode 100644 index 0000000000..8e64a84b29 --- /dev/null +++ b/src/mainboard/scaleway/tagada/bmcinfo.h @@ -0,0 +1,41 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2017 Online SAS. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ +#ifndef MAINBOARD_BMCINFO_H +#define MAINBOARD_BMCINFO_H + +// Do not place disks in boot order +#define BOOT_OPTION_NIC_ONLY 0 +// Boot to disk first (before network) +#define BOOT_OPTION_DISK_FIRST 1 +// Boot to disk second (after network) +#define BOOT_OPTION_DISK_SECOND 2 +// Boot order mask +#define BOOT_OPTION_ORDER_MASK 3 +// Reset after boot sequence (don't go to EFI shell) +#define BOOT_OPTION_NO_EFISHELL 0x80 + +char *bmcinfo_serial(void); +u8 *bmcinfo_uuid(void); +int bmcinfo_slot(void); +int bmcinfo_hwrev(void); +u32 bmcinfo_baudrate(void); +int bmcinfo_coreboot_verbosity_level(void); +int bmcinfo_fsp_verbosity_level(void); +int bmcinfo_relax_security(void); +int bmcinfo_boot_option(void); +int bmcinfo_disable_nic1(void); + +#endif /* MAINBOARD_BMCINFO_H */ |