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 Code698 /*=======================================================================*/699 static void aau_process(iop310_aau_t * aau)700 {701 sw_aau_t *sw_desc;702 u8 same_addr = 0;703704 DPRINTK("Entering aau_process()\n");705706 while(!same_addr && !list_empty(&aau->process_q))707 {708 spin_lock(&aau->process_lock);709 sw_desc = SW_ENTRY(aau->process_q.next);710 list_del(aau->process_q.next);711 spin_unlock(&aau->process_lock);712713 if(sw_desc->head->tail->status & <strong>AAU</strong>_NEW_HEAD)714 {715 DPRINTK("Found new head\n");716 sw_desc->tail->head = sw_desc;717 sw_desc->head = sw_desc;718 sw_desc->tail->status &= ~<strong>AAU</strong>_NEW_HEAD;719 }720721 sw_desc->status |= <strong>AAU</strong>_DESC_DONE;722723 /* if we see end of chain, we set head status to DONE */724 if(sw_desc->aau_desc.DC & <strong>AAU</strong>_DCR_IE)725 {726 if(sw_desc->status & <strong>AAU</strong>_END_CHAIN)727 {728 sw_desc->tail->status |= <strong>AAU</strong>_COMPLETE;729 }730 else731 {54 White Paper

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

Saved successfully!

Ooh no, something went wrong!