diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-01-07 16:32:09 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-01-07 16:32:09 +1100 |
commit | 601f9adb59a44882ed4d40af1ae4e2232529565f (patch) | |
tree | 9eac7715017f6c40b827df161b20d0fdd920d5ba /drivers/staging/otus/80211core/queue.h | |
parent | 8a2d671c3aa030c5f29c76317624b1396ce3359b (diff) | |
parent | 82b5254ff446536791374041ee0336276f265a20 (diff) |
Merge branch 'quilt/staging'
Diffstat (limited to 'drivers/staging/otus/80211core/queue.h')
-rw-r--r-- | drivers/staging/otus/80211core/queue.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/staging/otus/80211core/queue.h b/drivers/staging/otus/80211core/queue.h new file mode 100644 index 000000000000..4526b882bd03 --- /dev/null +++ b/drivers/staging/otus/80211core/queue.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2007-2008 Atheros Communications Inc. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _QUEUE_H +#define _QUEUE_H + +#include "../oal_dt.h" + +struct zsQueueCell +{ + u32_t tick; + zbuf_t* buf; +}; + +struct zsQueue +{ + u16_t size; + u16_t sizeMask; + u16_t head; + u16_t tail; + struct zsQueueCell cell[1]; +}; + +#endif //#ifndef _QUEUE_H |