gc_jd_queue.h File Reference

#include <gcell/gc_jd_queue_data.h>
Include dependency graph for spu/gc_jd_queue.h:

Go to the source code of this file.

Enumerations

enum  gc_dequeue_status_t { GCQ_OK, GCQ_EMPTY, GCQ_LOCKED }

Functions

gc_dequeue_status_t gc_jd_queue_dequeue (gc_eaddr_t q, gc_eaddr_t *item_ea, int jd_tag, gc_job_desc_t *item)
 Remove and return item at head of queue.

Enumeration Type Documentation

Enumerator:
GCQ_OK 
GCQ_EMPTY 
GCQ_LOCKED 

Function Documentation

gc_dequeue_status_t gc_jd_queue_dequeue ( gc_eaddr_t  q,
gc_eaddr_t item_ea,
int  jd_tag,
gc_job_desc_t item 
)

Remove and return item at head of queue.

Parameters:
[in] q is EA address of queue structure.
[out] item_ea is EA address of item at head of queue.
[in] jd_tag is the tag to use to get the LS copy of the item.
[out] item is local store copy of item at head of queue.
Returns:
false if the queue is empty, otherwise returns true and sets item_ea and DMA's job descriptor into item

If return is not GCQ_OK, we're holding a lock-line reservation that covers the queue.


Generated by  doxygen 1.6.2