mirror of
https://github.com/Fennix-Project/Drivers.git
synced 2025-05-28 15:34:29 +00:00
Fix compiler warnings
This commit is contained in:
parent
25d7e952dd
commit
a3769735bc
@ -276,7 +276,7 @@ int CallbackHandler(KernelCallback *Data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (RemainingBDL >= DescriptorListLength - 1 && (!inw(BAR.BusMasterAddress + PCMOUT_Status) & TC_DMAControllerControl));
|
} while (RemainingBDL >= DescriptorListLength - 1 && !(inw(BAR.BusMasterAddress + PCMOUT_Status) & TC_DMAControllerControl));
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -298,7 +298,7 @@ int CallbackHandler(KernelCallback *Data)
|
|||||||
|
|
||||||
if (Wrote == 0)
|
if (Wrote == 0)
|
||||||
break;
|
break;
|
||||||
KAPI->Util.memcpy((void *)DescriptorList[NextBDL].Address, Buffer, Wrote);
|
KAPI->Util.memcpy((void *)((uint64_t)DescriptorList[NextBDL].Address), Buffer, Wrote);
|
||||||
DescriptorList[NextBDL].Flags = 0;
|
DescriptorList[NextBDL].Flags = 0;
|
||||||
|
|
||||||
Buffer += Wrote;
|
Buffer += Wrote;
|
||||||
|
@ -168,43 +168,43 @@ enum OutputPulseCodeModulationRegisters
|
|||||||
* @brief Physical Address of Buffer Descriptor List
|
* @brief Physical Address of Buffer Descriptor List
|
||||||
* @note Length: dword
|
* @note Length: dword
|
||||||
*/
|
*/
|
||||||
PCMOUT_BufferDescriptorList = NABM_PCMOutBox + NABMBOFF_BufferDescriptorList,
|
PCMOUT_BufferDescriptorList = (int)NABM_PCMOutBox + (int)NABMBOFF_BufferDescriptorList,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of Actual Processed Buffer Descriptor Entry
|
* @brief Number of Actual Processed Buffer Descriptor Entry
|
||||||
* @note Length: byte
|
* @note Length: byte
|
||||||
*/
|
*/
|
||||||
PCMOUT_BufferDescriptorEntry = NABM_PCMOutBox + NABMBOFF_BufferDescriptorEntry,
|
PCMOUT_BufferDescriptorEntry = (int)NABM_PCMOutBox + (int)NABMBOFF_BufferDescriptorEntry,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of all Descriptor Entries
|
* @brief Number of all Descriptor Entries
|
||||||
* @note Length: byte
|
* @note Length: byte
|
||||||
*/
|
*/
|
||||||
PCMOUT_DescriptorEntries = NABM_PCMOutBox + NABMBOFF_DescriptorEntries,
|
PCMOUT_DescriptorEntries = (int)NABM_PCMOutBox + (int)NABMBOFF_DescriptorEntries,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Status of transferring Data
|
* @brief Status of transferring Data
|
||||||
* @note Length: word
|
* @note Length: word
|
||||||
*/
|
*/
|
||||||
PCMOUT_Status = NABM_PCMOutBox + NABMBOFF_Status,
|
PCMOUT_Status = (int)NABM_PCMOutBox + (int)NABMBOFF_Status,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of transferred Samples in Actual Processed Entry
|
* @brief Number of transferred Samples in Actual Processed Entry
|
||||||
* @note Length: word
|
* @note Length: word
|
||||||
*/
|
*/
|
||||||
PCMOUT_TransferredSamples = NABM_PCMOutBox + NABMBOFF_TransferredSamples,
|
PCMOUT_TransferredSamples = (int)NABM_PCMOutBox + (int)NABMBOFF_TransferredSamples,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Number of next processed Buffer Entry
|
* @brief Number of next processed Buffer Entry
|
||||||
* @note Length: byte
|
* @note Length: byte
|
||||||
*/
|
*/
|
||||||
PCMOUT_NextProcessedBufferEntry = NABM_PCMOutBox + NABMBOFF_NextProcessedBufferEntry,
|
PCMOUT_NextProcessedBufferEntry = (int)NABM_PCMOutBox + (int)NABMBOFF_NextProcessedBufferEntry,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Transfer Control
|
* @brief Transfer Control
|
||||||
* @note Length: byte
|
* @note Length: byte
|
||||||
*/
|
*/
|
||||||
PCMOUT_TransferControl = NABM_PCMOutBox + NABMBOFF_TransferControl,
|
PCMOUT_TransferControl = (int)NABM_PCMOutBox + (int)NABMBOFF_TransferControl,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum TransferControlRegisters
|
enum TransferControlRegisters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user