protected NandWriteOperationBase(double ProgressWeight, uint DataRamAddress, uint DestinationAddress, int DataLength,
                                  DataSectionPositionInformation PositionInformation, string DataName)
     : base(ProgressWeight)
 {
     this.DataRamAddress = DataRamAddress;
     this.DestinationAddress = DestinationAddress;
     this.DataLength = DataLength;
     this.PositionInformation = PositionInformation;
     _dataName = DataName;
 }
 public static DataSectionPositionInformation ScheduleWriteSectionOperation(this OperationsManager Manager, ILinuxImageSection Section,
                                                                            uint TemporaryAddress)
 {
     var position = new DataSectionPositionInformation();
     Manager.Schedule(new DnwSendOperation(Section.Data, TemporaryAddress, Section.DisplayName));
     switch (Section.Format)
     {
         case SectionFormat.Solid:
             Manager.Schedule(new NandSafeWriteOperation(TemporaryAddress, Section.Address, Section.PartitionSize, Section.Data.Length, Section.DisplayName, position));
             break;
         case SectionFormat.Yaffs2:
             Manager.Schedule(new YaffsWriteOperation(TemporaryAddress, Section.Address, Section.DisplayName, Section.Data.Length, Section.PartitionSize));
             position.PostInformation(Section.Address, Section.Data.Length);
             break;
     }
     return position;
 }
 public NandSafeWriteOperation(uint DataRamAddress, uint DestinationAddress, uint PartitionSize, int DataLength, string DataName,
                               DataSectionPositionInformation PositionInformation = null)
     : base(OperationDensity * DataLength, DataRamAddress, DestinationAddress, DataLength, PositionInformation, DataName)
 {
     _partitionSize = PartitionSize;
 }
 public NandWriteOperation(uint DataRamAddress, uint DestinationAddress, string DataName, int DataLength,
                           DataSectionPositionInformation PositionInformation = null)
     : base(OperationDensity * DataLength, DataRamAddress, DestinationAddress, DataLength, PositionInformation, DataName)
 {
 }
Esempio n. 5
0
 public SetEnvOperation(DataSectionPositionInformation KernlPosition, uint TemporaryAddress)
     : base(500)
 {
     _kernlPosition = KernlPosition;
     _temporaryAddress = TemporaryAddress;
 }