private void ResetTxRingBuffer() { ulong descBase; uint descBaseLo, descBaseHi; txRingBuffer.Reset(); descBase = txRingBuffer.BaseAddress.ToUInt64(); descBaseLo = (uint)(0xffffffff & descBase); descBaseHi = (uint)(0xffffffff & (descBase >> 32)); Write32(Register.TSMT_DESC_BASE_LO, ByteOrder.HostToLittleEndian(descBaseLo)); Write32(Register.TSMT_DESC_BASE_HI, ByteOrder.HostToLittleEndian(descBaseHi)); Write32(Register.TSMT_DESC_LENGTH, ByteOrder.HostToLittleEndian(txRingBuffer.DescLength)); Write32(Register.TSMT_DESC_HEAD, ByteOrder.HostToLittleEndian(txRingBuffer.Head)); Write32(Register.TSMT_DESC_TAIL, ByteOrder.HostToLittleEndian(txRingBuffer.Tail)); }