public UDMA(Machine machine) { engine = new DmaEngine(machine); SystemBus = machine.SystemBus; channels = new Channel[32]; IRQ = new GPIO(); Reset(); }
public STM32LDMA(Machine machine) { engine = new DmaEngine(machine); channels = new Channel[8]; for (var i = 0; i < channels.Length; i++) { channels[i] = new Channel(this, i); } }
public STM32LDMA(Machine machine) { engine = new DmaEngine(machine); channels = new Channel[8]; for(var i = 0; i < channels.Length; i++) { channels[i] = new Channel(this, i); } }
public STM32DMA(Machine machine) { streamFinished = new bool[NumberOfStreams]; streams = new Stream[NumberOfStreams]; for(var i = 0; i < streams.Length; i++) { streams[i] = new Stream(this, i); } this.machine = machine; engine = new DmaEngine(machine); Reset(); }
public STM32DMA(Machine machine) { streamFinished = new bool[NumberOfStreams]; streams = new Stream[NumberOfStreams]; for (var i = 0; i < streams.Length; i++) { streams[i] = new Stream(this, i); } this.machine = machine; engine = new DmaEngine(machine); Reset(); }
public VybridDma(Machine mach) { machine = mach; engine = new DmaEngine(machine); channels = new Channel[32]; for (var i = 0; i < 32; i++) { channels[i] = new Channel(this, i); } IRQ = new GPIO(); }
public TegraDma(Machine machine) { dmaEngine = new DmaEngine(machine); channels = new Channel[ChannelNo]; var innerConnections = new Dictionary<int, IGPIO>(); for(var i = 0; i < channels.Length; i++) { channels[i] = new Channel(this, i); innerConnections[i] = channels[i].IRQ; } Connections = new ReadOnlyDictionary<int, IGPIO>(innerConnections); Reset(); }
public TegraDma(Machine machine) { dmaEngine = new DmaEngine(machine); channels = new Channel[ChannelNo]; var innerConnections = new Dictionary <int, IGPIO>(); for (var i = 0; i < channels.Length; i++) { channels[i] = new Channel(this, i); innerConnections[i] = channels[i].IRQ; } Connections = new ReadOnlyDictionary <int, IGPIO>(innerConnections); Reset(); }
public TegraDmaHost1X(Machine machine) { dmaEngine = new DmaEngine(machine); sysbus = machine.SystemBus; }
public SunxiDMADescriptor(uint address, DmaEngine dmaEngine) { Address = address; byte[] descriptorData = new byte[16]; Request getDescriptorData = new Request((long)Address, new Place(descriptorData, 0), 16, TransferType.DoubleWord, TransferType.DoubleWord); dmaEngine.IssueCopy(getDescriptorData); Status = BitConverter.ToUInt32(descriptorData, 0); BufferSize = BitConverter.ToUInt32(descriptorData, 4); BufferAddress = BitConverter.ToUInt32(descriptorData, 8); NextDescriptor = BitConverter.ToUInt32(descriptorData, 12); if(BufferSize == 0) // the driver assumes 0-sized blocks to be 64kB, which is inconsistent with the Allwinner user manual. { BufferSize = 0x10000; } }
public SunxiMMC(Machine machine) : base(machine) { SetupRegisters(); IRQ = new GPIO(); dmaEngine = new DmaEngine(machine); }