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
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 Codeu32 NDA; /* next descriptor address [READONLY] */u32 SAR[<strong>AAU</strong>_SAR_GROUP]; /* src addrs */u32 DAR; /* destination addr */u32 BC; /* byte count */u32 DC; /* descriptor control */u32 SARE[<strong>AAU</strong>_SAR_GROUP]; /* extended src addrs */} aau_desc_t;/* user SGL format */typedef struct _aau_sgl{aau_desc_t aau_desc; /* <strong>AAU</strong> HW Desc */u32 status; /* status of SGL [READONLY] */struct _aau_sgl*next; /* pointer to next SG [READONLY] */void *dest; /* destination addr */void *src[<strong>AAU</strong>_SAR_GROUP]; /* source addr[4] */void *ext_src[<strong>AAU</strong>_SAR_GROUP]; /* ext src addr[4] */u32 total_src; /* total number of source */} aau_sgl_t;/* header for user SGL */typedef struct _aau_head{u32 total; /* total descriptors allocated */u32 status; /* SGL status */aau_sgl_t *list; /* ptr to head of list */aau_callback_t callback; /* callback func ptr */} aau_head_t;The function will call aau_start() and start the <strong>AAU</strong> after it queuesthe SGL to the processing queue. When the function will eithera. Sleep on the wait queue aau->wait_q if no callback has been provided, orb. Continue and then call the provided callback function when DMA interrupt68 White Paper