WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_binarytree_pri.h
浏览该文件的文档.
1/* ----------------------------------------------------------------------------
2 * Copyright (c) Huawei Technologies Co., Ltd. 2013-2019. All rights reserved.
3 * Description: BinaryTree Private HeadFile
4 * Author: Huawei LiteOS Team
5 * Create: 2013-01-01
6 * Redistribution and use in source and binary forms, with or without modification,
7 * are permitted provided that the following conditions are met:
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 * conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
11 * of conditions and the following disclaimer in the documentation and/or other materials
12 * provided with the distribution.
13 * 3. Neither the name of the copyright holder nor the names of its contributors may be used
14 * to endorse or promote products derived from this software without specific prior written
15 * permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
20 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * --------------------------------------------------------------------------- */
28
29#ifndef _LOS_BINARYTREE_PRI_H
30#define _LOS_BINARYTREE_PRI_H
31
32#include "los_typedef.h"
33#ifdef __cplusplus
34extern "C" {
35#endif /* __cplusplus */
36
43
50
51#define LR_COUNT 4096
55
56typedef struct {
59} AddrNode;
60
61#define ADDR_COUNT 40960
64extern AddrNode *g_addrRoot;
65
70
71#define REQ_SIZE_COUNT 4096
75
76typedef struct {
80
81#define TASK_ID_COUNT 1024
82
83extern UINT32 OsBinTreeInsert(const VOID *node, UINT32 nodeLen, BinNode **leaf,
84 BinNode *(*GetMyBinNode)(UINT32 *nodeId),
85 INT32 (*CompareNode)(const VOID *node1, const VOID *node2));
86
87extern INT32 OsCompareLRNode(const VOID *node1, const VOID *node2);
88extern BinNode *OsGetLRBinNode(UINT32 *nodeId);
89
90extern INT32 OsCompareAddrNode(const VOID *node1, const VOID *node2);
92
93extern INT32 OsCompareReqSizeNode(const VOID *node1, const VOID *node2);
95
96extern INT32 OsCompareTaskIDNode(const VOID *node1, const VOID *node2);
98
99#ifdef __cplusplus
100}
101#endif /* __cplusplus */
102
103#endif /* _LOS_BINARYTREE_PRI_H */
AddrNode * g_addrRoot
BinNode * OsGetTaskIDBinNode(UINT32 *nodeId)
ReqSizeNode * g_reqSizeRoot
BinNode * OsGetLRBinNode(UINT32 *nodeId)
INT32 OsCompareTaskIDNode(const VOID *node1, const VOID *node2)
UINT32 g_reqSizeNodeIndex
BinNode * OsGetReqSizeBinNode(UINT32 *nodeId)
LinkRegNode g_linkRegNode[4096]
UINT32 g_addrNodeIndex
INT32 OsCompareReqSizeNode(const VOID *node1, const VOID *node2)
AddrNode g_addrNode[40960]
ReqSizeNode g_reqSizeNode[4096]
BinNode * OsGetAddrBinNode(UINT32 *nodeId)
LinkRegNode * g_linkRegRoot
UINT32 OsBinTreeInsert(const VOID *node, UINT32 nodeLen, BinNode **leaf, BinNode *(*GetMyBinNode)(UINT32 *nodeId), INT32(*CompareNode)(const VOID *node1, const VOID *node2))
struct tagBinNode BinNode
UINT32 g_linkRegNodeIndex
#define ADDR_COUNT
Definition los_binarytree_pri.h:61
INT32 OsCompareAddrNode(const VOID *node1, const VOID *node2)
#define LR_COUNT
Definition los_binarytree_pri.h:51
INT32 OsCompareLRNode(const VOID *node1, const VOID *node2)
#define REQ_SIZE_COUNT
Definition los_binarytree_pri.h:71
signed int INT32
Definition los_typedef.h:55
#define VOID
Definition los_typedef.h:88
unsigned int UINTPTR
Definition los_typedef.h:74
unsigned int UINT32
Definition los_typedef.h:52
char CHAR
Definition los_typedef.h:58
Definition los_binarytree_pri.h:56
UINTPTR addr
Definition los_binarytree_pri.h:58
BinNode leaf
Definition los_binarytree_pri.h:57
Definition los_binarytree_pri.h:44
UINTPTR linkReg2
Definition los_binarytree_pri.h:47
UINTPTR linkReg3
Definition los_binarytree_pri.h:48
UINTPTR linkReg1
Definition los_binarytree_pri.h:46
BinNode leaf
Definition los_binarytree_pri.h:45
Definition los_binarytree_pri.h:66
BinNode leaf
Definition los_binarytree_pri.h:67
UINT32 reqSize
Definition los_binarytree_pri.h:68
Definition los_binarytree_pri.h:76
BinNode leaf
Definition los_binarytree_pri.h:77
UINT32 taskId
Definition los_binarytree_pri.h:78
Definition los_binarytree_pri.h:37
struct tagBinNode * right
Definition los_binarytree_pri.h:39
struct tagBinNode * left
Definition los_binarytree_pri.h:38
CHAR keyValue[0]
Definition los_binarytree_pri.h:41
UINT32 nodeId
Definition los_binarytree_pri.h:40