1 // 2 // Copyright (c) 2010-2023 Antmicro 3 // Copyright (c) 2011-2015 Realtime Embedded 4 // 5 // This file is licensed under the MIT License. 6 // Full license text is available in 'licenses/MIT.txt'. 7 // 8 using System; 9 using Antmicro.Renode.Core; 10 11 using Range = Antmicro.Renode.Core.Range; 12 13 namespace Antmicro.Renode.Peripherals.Bus.Wrappers 14 { 15 public abstract class HookWrapper 16 { HookWrapper(IBusPeripheral peripheral, Type type, Range? subrange)17 protected HookWrapper(IBusPeripheral peripheral, Type type, Range? subrange) 18 { 19 Peripheral = peripheral; 20 Name = type.Name; 21 Subrange = subrange; 22 } 23 24 protected readonly string Name; 25 protected readonly IBusPeripheral Peripheral; 26 protected readonly Range? Subrange; 27 } 28 } 29 30