10.07.2015 Views

Intel 80310 I/O Processor Chipset AAU Coding Techniques

Intel 80310 I/O Processor Chipset AAU Coding Techniques

Intel 80310 I/O Processor Chipset AAU Coding Techniques

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Intel</strong> ® <strong>80310</strong> I/O <strong>Processor</strong> <strong>Chipset</strong> <strong>AAU</strong> <strong>Coding</strong> <strong>Techniques</strong>Example Calling Source Codehas been triggered.int aau_suspend(u32 aau_context);Stops/Suspends the <strong>AAU</strong> operationint aau_free(u32 aau_context);Frees the ownership of <strong>AAU</strong>. Called when no longer need <strong>AAU</strong> service.aau_sgl_t * aau_get_buffer(u32 aau_context, int num_buf);This function obtains an <strong>AAU</strong> SGL for the user. User must specify the numberof descriptors to be allocated in the chain that is returned.void aau_return_buffer(u32 aau_context, aau_sgl_t *list);This function returns all SGL back to the API after user is done.int aau_memcpy(void *dest, void *src, u32 size);This function is a short cut for user to do memory copy utilizing the <strong>AAU</strong> forbetter large block memory copy vs. using the CPU. This is similar to usingtypical memcopy() call.* User is responsible for the source address(es) and the destination address.The source and destination should all be cached memory.void aau_test(){u32 aau;char dev_id[] = "<strong>AAU</strong>";int size = 2;int err = 0;aau_head_t *head;aau_sgl_t *list;u32 i;White Paper 69

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!