1 /* 2 * ASPEED Secure Boot Controller 3 * 4 * Copyright (C) 2021-2022 IBM Corp. 5 * 6 * SPDX-License-Identifier: GPL-2.0-or-later 7 */ 8 9 #ifndef ASPEED_SBC_H 10 #define ASPEED_SBC_H 11 12 #include "hw/sysbus.h" 13 14 #define TYPE_ASPEED_SBC "aspeed.sbc" 15 #define TYPE_ASPEED_AST2600_SBC TYPE_ASPEED_SBC "-ast2600" 16 OBJECT_DECLARE_TYPE(AspeedSBCState, AspeedSBCClass, ASPEED_SBC) 17 18 #define ASPEED_SBC_NR_REGS (0x93c >> 2) 19 20 struct AspeedSBCState { 21 SysBusDevice parent; 22 23 MemoryRegion iomem; 24 25 uint32_t regs[ASPEED_SBC_NR_REGS]; 26 }; 27 28 struct AspeedSBCClass { 29 SysBusDeviceClass parent_class; 30 }; 31 32 #endif /* ASPEED_SBC_H */ 33