1 //
2 // Copyright (c) 2010-2018 Antmicro
3 //
4 // This file is licensed under the MIT License.
5 // Full license text is available in 'licenses/MIT.txt'.
6 //
7 using System.Collections.Generic;
8 using Antmicro.Renode.Core.Structure.Registers;
9 
10 namespace Antmicro.Renode.Peripherals.PCI.Capabilities
11 {
12     public class Capability
13     {
Capability(IPCIePeripheral parent, byte id, uint size)14         public Capability(IPCIePeripheral parent, byte id, uint size)
15         {
16             Registers = new List<DoubleWordRegister>();
17             Id = id;
18             Size = size;
19             this.parent = parent;
20         }
21 
22         public byte Id { get; }
23         public uint Size { get; }
24         public byte NextCapability { get; set; }
25         public List<DoubleWordRegister> Registers { get; }
26 
27         protected readonly IPCIePeripheral parent;
28     }
29 }
30