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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<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 CodeAppendix B Example Calling Source CodeB.1 Standard CallsSupport functions for the <strong>80310</strong> <strong>AAU</strong>===========================================Dave Jiang Last updated: 09/18/2001The <strong>Intel</strong>® 80312 I/O companion chip in the <strong>80310</strong> chipset contains an <strong>AAU</strong>. The<strong>AAU</strong> is capable of processing up to 8 data block sources and perform XORoperations on them. This unit is typically used to accelerated XORoperations utilized by RAID storage device drivers such as RAID 5. ThisAPI is designed to provide a set of functions to take advantage of the<strong>AAU</strong>. The <strong>AAU</strong> can also be used to transfer data blocks and used as a memorycopier. The <strong>AAU</strong> transfer the memory faster than the operation performed byusing CPU copy therefore it is recommended to use the <strong>AAU</strong> for memory copy.------------------int aau_request(u32 *aau_context, const char *device_id);This function allows the user the acquire the control of the <strong>AAU</strong>. Thefunction will return a context of <strong>AAU</strong> to the user and allocatean interrupt for the <strong>AAU</strong>. The user must pass the context as a parameter tovarious <strong>AAU</strong> API calls.int aau_queue_buffer(u32 aau_context, aau_head_t *listhead);This function starts the <strong>AAU</strong> operation. The user must create a SGLheader with a SGL attached. The format is presented below. The SGL isbuilt from kernel memory./* hardware descriptor */typedef struct _aau_desc{White Paper 67

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

Saved successfully!

Ooh no, something went wrong!