source: svn/newcon3bcm2_21bu/BSEAV/lib/utils/blst_selist.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2007, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: blst_selist.h $
11 * $brcm_Revision: 1 $
12 * $brcm_Date: 2/8/07 4:34p $
13 *
14 * Module Description:
15 *
16 * Single linked list embeddable list (e.g. heead is the same as any element)
17 *
18 * Revision History:
19 *
20 * $brcm_Log: /BSEAV/lib/utils/blst_selist.h $
21 *
22 * 1   2/8/07 4:34p vsilyaev
23 * PR 25701: Embedded linked list
24 *
25 *
26 *******************************************************************************/
27#ifndef __BLST_SELIST_H__
28#define __BLST_SELIST_H__
29
30#define BLST_SE_ENTRY(type) struct type *sel_next
31#define BLST_SE_INIT(phead)    (phead)->sel_next = NULL
32#define BLST_SE_INITIALIZER(head) { NULL }
33#define BLST_SE_EMPTY(phead) ((phead)->sel_next==NULL)
34#define BLST_SE_FIRST(phead) (phead)->sel_next
35#define BLST_SE_NEXT(pitem) ((pitem)->sel_next)
36#define BLST_SE_INSERT_AFTER(elm, new_elm) do { \
37        (new_elm)->sel_next = (elm)->sel_next; \
38        (elm)->sel_next = new_elm; \
39      } while(0)
40#define BLST_SE_REMOVE_BEFORE(before_elm, elm) do { \
41        (before_elm)->sel_next = (elm)->sel_next; \
42      } while(0)
43
44#endif /* __BLST_SELIST_H__ */
45
Note: See TracBrowser for help on using the repository browser.