File: simatic.h

package info (click to toggle)
efibootguard 0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 796 kB
  • sloc: ansic: 7,805; makefile: 405; python: 326; sh: 84
file content (39 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * EFI Boot Guard
 *
 * Copyright (c) Siemens AG, 2023
 *
 * Authors:
 *  Dr. Johann Pfefferl <johann.pfefferl@siemens.com>
 *  Jan Kiszka <jan.kiszka@siemens.com>
 *  Cedric Hombourger <cedric.hombourger@siemens.com>
 *
 * This work is licensed under the terms of the GNU GPL, version 2.  See
 * the COPYING file in the top-level directory.
 *
 * SPDX-License-Identifier:	GPL-2.0-only
 */

#pragma once

#include <efi.h>
#include <efilib.h>

#define SMBIOS_TYPE_OEM_129			129

#define SIMATIC_OEM_ENTRY_TYPE_BINARY		0xff

#define SIMATIC_IPC427E				0x0a01
#define SIMATIC_IPC477E				0x0a02
#define SIMATIC_IPCBX_21A			0x1101
#define SIMATIC_IPCBX_56A			0x1201
#define SIMATIC_IPCBX_59A			0x1202

typedef struct {
	UINT8	type;
	UINT8	length;
	UINT8	reserved[3];
	UINT32	station_id;
} __attribute__((packed)) SIMATIC_OEM_ENTRY;

UINT32 simatic_station_id(void);