···230230/* the token that defines the data pool pointers address */231231#define SEP_EXT_CACHE_ADDR_VAL_TOKEN 0xBABABABA232232233233-/* rar handler */234234-#ifndef CONFIG_MRST_RAR_HANDLER235235-236236-/* This stub header is for non Moorestown driver only */237237-238238-/*239239- * @struct RAR_stat240240- *241241- * @brief This structure is used for @c RAR_HANDLER_STAT ioctl and for242242- * @c RAR_get_stat() user space wrapper function.243243- */244244-struct RAR_stat {245245- /* Type of RAR memory (e.g., audio vs. video) */246246- __u32 type;247247-248248- /*249249- * Total size of RAR memory region.250250- */251251- __u32 capacity;252252-253253- /* Size of the largest reservable block. */254254- __u32 largest_block_size;255255-};256256-257257-258258-/*259259- * @struct RAR_block_info260260- *261261- * @brief The argument for the @c RAR_HANDLER_RESERVE @c ioctl.262262- *263263- */264264-struct RAR_block_info {265265- /* Type of RAR memory (e.g., audio vs. video) */266266- __u32 type;267267-268268- /* Requested size of a block to be reserved in RAR. */269269- __u32 size;270270-271271- /* Handle that can be used to refer to reserved block. */272272- __u32 handle;273273-};274274-275275-/*276276- * @struct RAR_buffer277277- *278278- * Structure that contains all information related to a given block of279279- * memory in RAR. It is generally only used when retrieving bus280280- * addresses.281281- *282282- * @note This structure is used only by RAR-enabled drivers, and is283283- * not intended to be exposed to the user space.284284- */285285-struct RAR_buffer {286286- /* Structure containing base RAR buffer information */287287- struct RAR_block_info info;288288-289289- /* Buffer bus address */290290- __u32 bus_address;291291-};292292-293293-294294-#define RAR_IOCTL_BASE 0xE0295295-296296-/* Reserve RAR block. */297297-#define RAR_HANDLER_RESERVE _IOWR(RAR_IOCTL_BASE, 0x00, struct RAR_block_info)298298-299299-/* Release previously reserved RAR block. */300300-#define RAR_HANDLER_RELEASE _IOW(RAR_IOCTL_BASE, 0x01, __u32)301301-302302-/* Get RAR stats. */303303-#define RAR_HANDLER_STAT _IOWR(RAR_IOCTL_BASE, 0x02, struct RAR_stat)304304-305305-306306-/* -------------------------------------------------------------- */307307-/* Kernel Side RAR Handler Interface */308308-/* -------------------------------------------------------------- */309309-310310-/*311311- * @function rar_reserve312312- *313313- * @brief Reserve RAR buffers.314314- *315315- * This function will reserve buffers in the restricted access regions316316- * of given types.317317- *318318- * @return Number of successfully reserved buffers.319319- * Successful buffer reservations will have the corresponding320320- * @c bus_address field set to a non-zero value in the321321- * given @a buffers vector.322322- */323323-#define rar_reserve(a, b) ((size_t)NULL)324324-325325-/*326326- * @function rar_release327327- *328328- * @brief Release RAR buffers retrieved through call to329329- * @c rar_reserve() or @c rar_handle_to_bus().330330- *331331- * This function will release RAR buffers that were retrieved through332332- * a call to @c rar_reserve() or @c rar_handle_to_bus() by333333- * decrementing the reference count. The RAR buffer will be reclaimed334334- * when the reference count drops to zero.335335- *336336- * @return Number of successfully released buffers.337337- * Successful releases will have their handle field set to338338- * zero in the given @a buffers vector.339339- */340340-#define rar_release(a, b) ((size_t)NULL)341341-342342-/*343343- * @function rar_handle_to_bus344344- *345345- * @brief Convert a vector of RAR handles to bus addresses.346346- *347347- * This function will retrieve the RAR buffer bus addresses, type and348348- * size corresponding to the RAR handles provided in the @a buffers349349- * vector.350350- *351351- * @return Number of successfully converted buffers.352352- * The bus address will be set to @c 0 for unrecognized353353- * handles.354354- *355355- * @note The reference count for each corresponding buffer in RAR will356356- * be incremented. Call @c rar_release() when done with the357357- * buffers.358358- */359359-#define rar_handle_to_bus(a, b) ((size_t)NULL)360360-361361-#else /* using rear memrar */362362-363363-#include "../memrar/memrar.h"364364-365365-#endif /* MEMRAR */366233367234#endif /* SEP DRIVER CONFIG */