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><strong>AAU</strong> Source Code460 /* we clean the cache for previous descriptor in chain */461 if(prev_desc)462 {463 prev_desc->aau_desc.NDA = sw_desc->aau_phys;464 cpu_dcache_clean_range((u32)&prev_desc->aau_desc,465 (u32)&prev_desc->aau_desc + <strong>AAU</strong>_DESC_SIZE);466 }467 else468 {469 /* no previous descriptor, so we set this to be head */470 head = sw_desc;471 }472473 sw_desc->head = head;474 /* set previous to current */475 prev_desc = sw_desc;476477 /* put descriptor on process */478 spin_lock_irq(&aau->process_lock);479 list_add_tail(&sw_desc->link, &aau->process_q);480 spin_unlock_irq(&aau->process_lock);481482 sw_desc = (sw_aau_t *)sw_desc->next;483 }484 DPRINTK("Done converting SGL to <strong>AAU</strong> Chain List\n");485486 /* if our tail exists */487 if(prev_desc)488 {489 /* set the head pointer on tail */490 prev_desc->head = head;491 /* set the header pointer's tail to tail */492 head->tail = prev_desc;493 prev_desc->tail = prev_desc;White Paper 47

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

Saved successfully!

Ooh no, something went wrong!