|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
20 #ifndef AAMPIONMEMORYSYSTEM_H
21 #define AAMPIONMEMORYSYSTEM_H
32 #include <linux/ion.h>
67 virtual bool encode(
const uint8_t *dataIn, uint32_t dataInSz, std::vector<uint8_t>& dataOut)
override;
75 virtual bool decode(
const uint8_t* dataIn, uint32_t dataInSz, uint8_t *dataOut, uint32_t dataOutSz)
override;
90 bool createBuffer(
size_t len);
91 bool share(
int& shareFd);
92 bool phyAddr(
unsigned long *addr);
95 ion_user_handle_t handle_;
97 const int AAMP_ION_MEMORY_REGION{RTK_PHOENIX_ION_HEAP_MEDIA_MASK};
98 const int AAMP_ION_MEMORY_FLAGS{(ION_FLAG_NONCACHED | ION_FLAG_SCPUACC | ION_FLAG_HWIPACC)};
99 const int AAMP_ION_MEMORY_ALIGN{0};
virtual ~AampIonMemorySystem()
AampIonMemorySystem distructor.
virtual bool encode(const uint8_t *dataIn, uint32_t dataInSz, std::vector< uint8_t > &dataOut) override
Encode a block of data to send over the divide.
virtual void terminateEarly() override
Call this if there's an failure external to the MS and it needs to tidy up unexpectedly.
AampIonMemorySystem(AampLogManager *logObj)
AampIonMemorySystem constructor.
virtual bool decode(const uint8_t *dataIn, uint32_t dataInSz, uint8_t *dataOut, uint32_t dataOutSz) override
Decode from getting back.
Memory handler for Aamp DRM process.
Stores the information on ION Memory to store data.
Handles ION memory storage to store data.
Handles the operations for AAMP memory managemnts.