blob: 3752353860796a4e2169af0753b9dd2547e3b82a (
plain) (
blame)
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
|
/*
* ASPEED OTP (One-Time Programmable) memory
*
* Copyright (C) 2025 Aspeed
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef ASPEED_OTP_H
#define ASPEED_OTP_H
#include "system/memory.h"
#include "hw/block/block.h"
#include "system/address-spaces.h"
#define TYPE_ASPEED_OTP "aspeed-otp"
OBJECT_DECLARE_SIMPLE_TYPE(AspeedOTPState, ASPEED_OTP)
typedef struct AspeedOTPState {
DeviceState parent_obj;
BlockBackend *blk;
uint64_t size;
AddressSpace as;
MemoryRegion mmio;
uint8_t *storage;
} AspeedOTPState;
#endif /* ASPEED_OTP_H */
|