| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Hooks/ |
| D | RegisterCollectionHookExtensions.cs | 18 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddBeforeReadByteHook() argument 21 @this.AddBeforeReadHook<byte, ByteRegisterCollection>(offset, (addr) => in AddBeforeReadByteHook() 28 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddAfterReadByteHook() argument 31 @this.AddAfterReadHook<byte, ByteRegisterCollection>(offset, (addr, value) => in AddAfterReadByteHook() 38 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddBeforeWriteByteHook() argument 41 @this.AddBeforeWriteHook<byte, ByteRegisterCollection>(offset, (addr, value) => in AddBeforeWriteByteHook() 48 …yteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset, string script) in AddAfterWriteByteHook() argument 52 @this.AddAfterWriteHook<byte, ByteRegisterCollection>(offset, (addr, value) => in AddAfterWriteByteHook() 58 …moveBeforeReadByteHook(this IProvidesRegisterCollection<ByteRegisterCollection> @this, long offset) in RemoveBeforeReadByteHook() argument 60 @this.RemoveBeforeReadHook(offset); in RemoveBeforeReadByteHook() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Structure/Registers/ |
| D | RegisterCollection.cs | 47 … AddBeforeReadHook<T, R>(this IProvidesRegisterCollection<R> @this, long offset, Func<long, T?> fu… 55 registerCollection.AddBeforeReadHook(offset, func); in registerCollection.AddBeforeReadHook() 58 …d AddAfterReadHook<T, R>(this IProvidesRegisterCollection<R> @this, long offset, Func<long, T, T?>… 66 registerCollection.AddAfterReadHook(offset, func); in registerCollection.AddAfterReadHook() 69 …AddBeforeWriteHook<T, R>(this IProvidesRegisterCollection<R> @this, long offset, Func<long, T, T?>… 77 registerCollection.AddBeforeWriteHook(offset, func); in registerCollection.AddBeforeWriteHook() 80 … AddAfterWriteHook<T, R>(this IProvidesRegisterCollection<R> @this, long offset, Action<long, T> f… 88 registerCollection.AddAfterWriteHook(offset, func); in registerCollection.AddAfterWriteHook() 91 … public static void RemoveBeforeReadHook<R>(this IProvidesRegisterCollection<R> @this, long offset) 94 @this.RegistersCollection.RemoveBeforeReadHook(offset); [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Memory/ |
| D | ArrayMemory.cs | 40 public virtual ulong ReadQuadWord(long offset) in ReadQuadWord() argument 42 if(!IsCorrectOffset(offset, sizeof(ulong))) in ReadQuadWord() 46 var intOffset = (int)offset; in ReadQuadWord() 51 public virtual void WriteQuadWord(long offset, ulong value) in WriteQuadWord() argument 53 if(!IsCorrectOffset(offset, sizeof(ulong))) in WriteQuadWord() 58 bytes.CopyTo(array, offset); in WriteQuadWord() 61 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 63 if(!IsCorrectOffset(offset, sizeof(uint))) in ReadDoubleWord() 67 var intOffset = (int)offset; in ReadDoubleWord() 72 public virtual void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument [all …]
|
| D | MappedMemory.cs | 121 public byte ReadByte(long offset) in ReadByte() argument 123 if(offset < 0 || offset >= size) in ReadByte() 125 …d to read byte at offset 0x{0:X} outside the range of the peripheral 0x0 - 0x{1:X}", offset, size); in ReadByte() 129 var localOffset = GetLocalOffset(offset); in ReadByte() 130 var segment = segments[GetSegmentNo(offset)]; in ReadByte() 134 public void WriteByte(long offset, byte value) in WriteByte() argument 136 if(offset < 0 || offset >= size) in WriteByte() 138 …0x{0:X} to offset 0x{1:X} outside the range of the peripheral 0x0 - 0x{2:X}", value, offset, size); in WriteByte() 142 var localOffset = GetLocalOffset(offset); in WriteByte() 143 var segment = segments[GetSegmentNo(offset)]; in WriteByte() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/PCI/ |
| D | VersatilePCI.cs | 36 public uint ReadDoubleWordConfig(long offset) in ReadDoubleWordConfig() argument 38 switch(offset) in ReadDoubleWordConfig() 49 public void WriteDoubleWordConfig(long offset, uint value) in WriteDoubleWordConfig() argument 53 public virtual uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 57 int pci_num = (int)(offset / 0x800); in ReadDoubleWord() 63 offset -= pci_num * 0x800; in ReadDoubleWord() 64 if(offset == 0x00) in ReadDoubleWord() 66 if(offset == 0x04) in ReadDoubleWord() 68 if(offset == 0x08) in ReadDoubleWord() 70 if(offset == 0x0c) in ReadDoubleWord() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Memory/ |
| D | ArrayMemoryWithReadonlys.cs | 22 public void SetReadOnlyDoubleWord(long offset, uint value) in SetReadOnlyDoubleWord() argument 24 WriteDoubleWord(offset, value); in SetReadOnlyDoubleWord() 25 ignoreWrites.Add(offset); in SetReadOnlyDoubleWord() 28 public void SetReadOnlyWord(long offset, ushort value) in SetReadOnlyWord() argument 30 WriteWord(offset, value); in SetReadOnlyWord() 31 ignoreWrites.Add(offset); in SetReadOnlyWord() 34 public void SetReadOnlyByte(long offset, byte value) in SetReadOnlyByte() argument 36 WriteByte(offset, value); in SetReadOnlyByte() 37 ignoreWrites.Add(offset); in SetReadOnlyByte() 40 public override void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/Crypto/ |
| D | InternalMemoryAccessor.cs | 22 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 24 if(offset < 0 || (offset + 4) >= internalMemory.Length) in ReadDoubleWord() 26 …(LogLevel.Error, "Trying to read outside of {0} internal memory, at offset 0x{1:X}", Name, offset); in ReadDoubleWord() 29 …var result = BitHelper.ToUInt32(internalMemory, (int)offset, 4, endianness == Endianness.LittleEnd… in ReadDoubleWord() 30 ….Log(LogLevel.Debug, "Read value 0x{0:X} from memory {1} at offset 0x{2:X}", result, Name, offset); in ReadDoubleWord() 34 public IEnumerable<byte> ReadBytes(long offset, int count) in ReadBytes() argument 36 if(offset < 0 || (offset + count) >= internalMemory.Length) in ReadBytes() 38 …"Trying to read {0} bytes outside of {1} internal memory, at offset 0x{2:X}", count, Name, offset); in ReadBytes() 43 yield return internalMemory[offset + i]; in ReadBytes() 47 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm/ARM_GenericInterruptController/ |
| D | ArmGicRedistributorRegistration.cs | 25 return (offset, value) => in GetWriteByteMethod() 29 …rExists = IsByteAccessible(offset) && Utils.TryWriteByteToDoubleWordCollection(entry.Redistributor… in GetWriteByteMethod() 30 …ts, value, "Redistributor (byte access)", offset, (ARM_GenericInterruptController.RedistributorReg… in GetWriteByteMethod() 39 return (offset) => in GetReadByteMethod() 44 …rExists = IsByteAccessible(offset) && Utils.TryReadByteFromDoubleWordCollection(entry.Redistributo… in GetReadByteMethod() 45 …ts, value, "Redistributor (byte access)", offset, (ARM_GenericInterruptController.RedistributorReg… in GetReadByteMethod() 55 return (offset, value) => in GetWriteDoubleWordMethod() 60 … var registerExists = entry.RedistributorDoubleWordRegisters.TryWrite(offset, value) in GetWriteDoubleWordMethod() 61 …s.TryWriteDoubleWordToQuadWordCollection(entry.RedistributorQuadWordRegisters, offset, value, gic); in GetWriteDoubleWordMethod() 62 …s(registerExists, value, "Redistributor", offset, (ARM_GenericInterruptController.RedistributorReg… in GetWriteDoubleWordMethod() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MTD/ |
| D | CFIFlash.cs | 101 public byte ReadByte(long offset) in ReadByte() argument 106 return (byte)HandleRead(offset, 0); in ReadByte() 108 return HandleQuery(offset); in ReadByte() 114 return HandleReadJEDEC(offset); in ReadByte() 117 "Read @ unknown state {1}, offset 0x{0:X}", offset, state) in ReadByte() 122 public ushort ReadWord(long offset) in ReadWord() argument 126 return (ushort)HandleRead(offset, 1); in ReadWord() 128 offset >>= (int)busWidth; in ReadWord() 129 return ReadByte(offset); in ReadWord() 132 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/IRQControllers/ |
| D | MPC5567_INTC.cs | 30 public byte ReadByte(long offset) in ReadByte() argument 32 … if(offset >= (long)Register.InterruptPriority0 && offset <= (long)Register.InterruptPriorityLast) in ReadByte() 34 return HandlePriorityRead(offset - (long)Register.InterruptPriority0); in ReadByte() 36 this.LogUnhandledRead(offset); in ReadByte() 40 public void WriteByte(long offset, byte value) in WriteByte() argument 42 … if(offset >= (long)Register.InterruptPriority0 && offset <= (long)Register.InterruptPriorityLast) in WriteByte() 44 HandlePriorityWrite(offset - (long)Register.InterruptPriority0, value); in WriteByte() 47 … if(offset >= (long)Register.SoftwareSetClear0 && offset <= (long)Register.SoftwareSetClearLast) in WriteByte() 49 HandleSoftwareSetClearWrite(offset - (long)Register.SoftwareSetClear0, value); in WriteByte() 52 this.LogUnhandledWrite(offset, value); in WriteByte() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I2C/ |
| D | TegraDVC.cs | 20 public override uint ReadDoubleWord (long offset) in ReadDoubleWord() argument 22 if (offset < 0x40) { in ReadDoubleWord() 23 switch ((Registers)offset) { in ReadDoubleWord() 33 this.LogUnhandledRead(offset); in ReadDoubleWord() 37 return base.ReadDoubleWord ((offset >= 0x60) ? offset - 0x10 : offset - 0x40); in ReadDoubleWord() 40 public override void WriteDoubleWord (long offset, uint value) in WriteDoubleWord() argument 42 if (offset < 0x40) { in WriteDoubleWord() 43 switch ((Registers)offset) { in WriteDoubleWord() 57 this.LogUnhandledWrite(offset, value); in WriteDoubleWord() 62 base.WriteDoubleWord ((offset >= 0x60) ? offset - 0x10 : offset - 0x40 , value); in WriteDoubleWord()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SD/ |
| D | SDHCI.cs | 24 public byte ReadByte(long offset) in ReadByte() argument 26 this.LogUnhandledRead(offset); in ReadByte() 30 public ushort ReadWord(long offset) in ReadWord() argument 32 this.LogUnhandledRead(offset); in ReadWord() 36 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 38 switch (offset) { in ReadDoubleWord() 43 this.LogUnhandledRead(offset); in ReadDoubleWord() 49 public void WriteByte(long offset, byte value) in WriteByte() argument 51 this.LogUnhandledWrite(offset, value); in WriteByte() 54 public void WriteWord(long offset, ushort value) in WriteWord() argument [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/ |
| D | BitBanding.cs | 30 public byte ReadByte(long offset) in ReadByte() argument 32 var realAddress = GetBitBandAddress(offset) & ~0UL; in ReadByte() 34 var bitNumber = (int)(offset >> 2) & 7; in ReadByte() 38 public void WriteByte(long offset, byte value) in WriteByte() argument 40 var realAddress = GetBitBandAddress(offset) & ~0UL; in WriteByte() 42 var bitNumber = (int)(offset >> 2) & 7; in WriteByte() 55 public ushort ReadWord(long offset) in ReadWord() argument 57 var realAddress = GetBitBandAddress(offset) & ~1UL; in ReadWord() 59 var bitNumber = (int)(offset >> 2) & 15; in ReadWord() 63 public void WriteWord(long offset, ushort value) in WriteWord() argument [all …]
|
| D | OpenTitan_ScrambledMemory.cs | 29 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 31 if(!CheckAccess(offset, 4)) in ReadDoubleWord() 35 return underlyingMemory.ReadDoubleWord(offset); in ReadDoubleWord() 38 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument 40 MarkWritten(offset, 4); in WriteDoubleWord() 41 underlyingMemory.WriteDoubleWord(offset, value); in WriteDoubleWord() 44 public void WriteBytes(long offset, byte[] value) in WriteBytes() argument 46 MarkWritten(offset, value.Length); in WriteBytes() 47 underlyingMemory.WriteBytes(offset, value); in WriteBytes() 50 public void ReadBytes(long offset, int count, byte[] destination, int startIndex) in ReadBytes() argument [all …]
|
| D | BitAccess.cs | 36 public byte ReadByte(long offset) in ReadByte() argument 42 public void WriteByte(long offset, byte mask) in WriteByte() argument 44 …sysbus.WriteByte(address + (ulong)offset, (byte)operation(sysbus.ReadByte(address + (ulong)offset)… in WriteByte() 47 public ushort ReadWord(long offset) in ReadWord() argument 53 public void WriteWord(long offset, ushort mask) in WriteWord() argument 55 …sysbus.WriteWord(address + (ulong)offset, (ushort)operation(sysbus.ReadWord(address + (ulong)offse… in WriteWord() 58 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 64 public void WriteDoubleWord(long offset, uint mask) in WriteDoubleWord() argument 66 …sysbus.WriteDoubleWord(address + (ulong)offset, (uint)operation(sysbus.ReadDoubleWord(address + (u… in WriteDoubleWord()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Python/ |
| D | PythonPeripheral.cs | 20 …ilePath path, ulong address, int size, bool initable = false, string name = null, ulong offset = 0) in PyDevFromFile() argument 23 @this.SystemBus.Register(pyDev, new BusPointRegistration(address, offset)); in PyDevFromFile() 30 …tring script, ulong address, int size, bool initable = false, string name = null, ulong offset = 0) in PyDevFromString() argument 33 @this.SystemBus.Register(pyDev, new BusPointRegistration(address, offset)); in PyDevFromString() 74 public byte ReadByte(long offset) in ReadByte() argument 77 HandleRead(offset); in ReadByte() 81 public void WriteByte(long offset, byte value) in WriteByte() argument 84 HandleWrite(offset, value); in WriteByte() 87 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 90 HandleRead(offset); in ReadDoubleWord() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/ |
| D | ReadWriteExtensions.cs | 353 var offset = (int)(address & 1); in ReadByteUsingWord() 354 return (byte)(peripheral.ReadWord(readAddress) >> offset * 8); in ReadByteUsingWord() 365 var offset = (int)(address & 1); in BuildByteReadUsing() 366 return (byte)(read(readAddress) >> offset * 8); in BuildByteReadUsing() 376 var offset = (int)(address & 1); in WriteByteUsingWord() 377 var oldValue = peripheral.ReadWord(writeAddress) & ~((ushort)0xFF << offset * 8); in WriteByteUsingWord() 378 … peripheral.WriteWord(writeAddress, (ushort)(oldValue | ((ushort)value << 8 * offset))); in WriteByteUsingWord() 389 var offset = (int)(address & 1); in BuildByteWriteUsing() 390 var oldValue = read(writeAddress) & ~((ushort)0xFF << offset * 8); in BuildByteWriteUsing() 391 write(writeAddress, (ushort)(oldValue | ((ushort)value << 8 * offset))); in BuildByteWriteUsing() [all …]
|
| D | MemoryDumpExtensions.cs | 18 …public static void DumpBinary(this IMemory memory, SequencedFilePath fileName, ulong offset = 0, I… in DumpBinary() argument 20 memory.DumpBinary(fileName, offset, (ulong)memory.Size - offset, context); in DumpBinary() 23 …public static void DumpBinary(this IMemory memory, SequencedFilePath fileName, ulong offset, ulong… in DumpBinary() argument 25 AssertArguments(memory, offset, size); in DumpBinary() 31 var windows = (int)((size - offset + WindowSize - 1) / WindowSize - 1); in DumpBinary() 34 WriteBinaryMemoryChunk(writer, memory, offset, i, context); in DumpBinary() 37 var lastChunkSize = (size - offset) % WindowSize; in DumpBinary() 39 WriteBinaryMemoryChunk(writer, memory, offset, windows, context, lastChunkSize); in DumpBinary() 48 …public static void DumpHEX(this IMemory memory, SequencedFilePath fileName, ulong offset = 0, ICPU… in DumpHEX() argument 50 memory.DumpHEX(fileName, offset, (ulong)memory.Size - offset, context, addressOption); in DumpHEX() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/ |
| D | BitStream.cs | 61 var offset = (int)(Length % BitsPerSegment); in EnsureIsAligned() 62 if(offset != 0) in EnsureIsAligned() 70 var offset = (int)(Length % BitsPerSegment); in AppendBit() 71 if(offset == 0) in AppendBit() 79 segments[segmentId] |= (byte)(1 << offset); in AppendBit() 88 … public void AppendMaskedValue(uint value, uint offset = 0, uint length = 32, bool msbFirst = true) in AppendMaskedValue() argument 91 var bits = BitHelper.GetBits(value).Skip((int)offset).Take((int)length); in AppendMaskedValue() 102 public byte AsByte(uint offset = 0, int length = 8) in AsByte() argument 109 if(offset >= Length || length <= 0) in AsByte() 115 var firstSegment = (int)(offset / BitsPerSegment); in AsByte() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/ |
| D | Redirector.cs | 36 public byte ReadByte(long offset) in ReadByte() argument 38 return systemBus.ReadByte(redirectedAddress + checked((ulong)offset)); in ReadByte() 41 public void WriteByte(long offset, byte value) in WriteByte() argument 43 systemBus.WriteByte(redirectedAddress + checked((ulong)offset), value); in WriteByte() 46 public ushort ReadWord(long offset) in ReadWord() argument 48 return systemBus.ReadWord(redirectedAddress + checked((ulong)offset)); in ReadWord() 51 public void WriteWord(long offset, ushort value) in WriteWord() argument 53 systemBus.WriteWord(checked((ulong)offset), value); in WriteWord() 56 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 58 return systemBus.ReadDoubleWord(redirectedAddress + checked((ulong)offset)); in ReadDoubleWord() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Timers/ |
| D | OMAP_GPTimer.cs | 39 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 41 if(offset == 0x10) in ReadDoubleWord() 45 if(offset == 0x14) in ReadDoubleWord() 49 if(offset == 0x2c) in ReadDoubleWord() 53 if(offset == 0x28) in ReadDoubleWord() 60 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument 62 if(offset == 0x10) in WriteDoubleWord() 66 if(offset == 0x1c) in WriteDoubleWord() 70 if(offset == 0x24) in WriteDoubleWord() 82 if(offset == 0x2C) in WriteDoubleWord() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/PCI/ |
| D | PCIeBasePeripheral.cs | 87 public virtual uint ConfigurationReadDoubleWord(long offset) in ConfigurationReadDoubleWord() argument 89 var value = registers.Read(offset); in ConfigurationReadDoubleWord() 90 …Configuration space, reading from {0} (0x{1:X}), read 0x{2:X}.", (Registers)offset, offset, value); in ConfigurationReadDoubleWord() 99 public virtual void ConfigurationWriteDoubleWord(long offset, uint value) in ConfigurationWriteDoubleWord() argument 101 …ng Configuration space, writing to {0} (0x{1:X}), value {2:X}.", (Registers)offset, offset, value); in ConfigurationWriteDoubleWord() 102 registers.Write(offset, value); in ConfigurationWriteDoubleWord() 105 public uint MemoryReadDoubleWord(uint bar, long offset) in MemoryReadDoubleWord() argument 109 …s.Log(LogLevel.Warning, "Trying to read from unimplemented BAR {0}, offset 0x{1:X}.", bar, offset); in MemoryReadDoubleWord() 112 if(baseAddressRegisters[bar].RequestedSize < offset) in MemoryReadDoubleWord() 114 …ested 0x{2:X} bytes. This may indicate a problem in PCIe routing.", bar, offset, baseAddressRegist… in MemoryReadDoubleWord() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/GPIOPort/ |
| D | XilinxGPIOPS.cs | 27 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 29 if(offset > 0x200) in ReadDoubleWord() 31 var portNumber = (uint)((offset - 0x200) / 0x40); in ReadDoubleWord() 32 return portControllers[portNumber].ReadRegister(offset % 0x40); in ReadDoubleWord() 34 switch((registersOffsets)offset) in ReadDoubleWord() 69 this.LogUnhandledRead(offset); in ReadDoubleWord() 74 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument 76 if(offset > 0x200) in WriteDoubleWord() 78 var portNumber = (uint)((offset - 0x200) / 0x40); in WriteDoubleWord() 79 portControllers[portNumber].WriteRegister(offset % 0x40, value); in WriteDoubleWord() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/ |
| D | STM32DMA.cs | 49 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 51 switch((Registers)offset) in ReadDoubleWord() 55 return HandleInterruptRead((int)(offset/4)); in ReadDoubleWord() 57 if(offset >= StreamOffsetStart && offset <= StreamOffsetEnd) in ReadDoubleWord() 59 offset -= StreamOffsetStart; in ReadDoubleWord() 60 return streams[offset / StreamSize].Read(offset % StreamSize); in ReadDoubleWord() 62 this.LogUnhandledRead(offset); in ReadDoubleWord() 67 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument 69 switch((Registers)offset) in WriteDoubleWord() 73 HandleInterruptClear((int)((offset - 8)/4), value); in WriteDoubleWord() [all …]
|
| D | STM32LDMA.cs | 29 public uint ReadDoubleWord(long offset) in ReadDoubleWord() argument 31 if(offset >= 0x08 && offset <= 0x8C) in ReadDoubleWord() 33 … return channels[(offset - 0x08) / 0x14].Read(offset - 0x08 - ((offset - 0x08) / 0x14) * 0x14); in ReadDoubleWord() 35 switch((Offset)offset) in ReadDoubleWord() 40 this.LogUnhandledRead(offset); in ReadDoubleWord() 45 public void WriteDoubleWord(long offset, uint value) in WriteDoubleWord() argument 47 if(offset >= 0x08 && offset <= 0x8C) in WriteDoubleWord() 49 var channelNo = (offset - 0x08) / 0x14; in WriteDoubleWord() 50 channels[channelNo].Write(offset - 0x08 - channelNo * 0x14, value); in WriteDoubleWord() 53 switch((Offset)offset) in WriteDoubleWord() [all …]
|