Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 1 | /** |
| 2 | * @file IxQMgrQCfg_p.h |
| 3 | * |
| 4 | * @author Intel Corporation |
| 5 | * @date 07-Feb-2002 |
| 6 | * |
| 7 | * @brief This file contains the internal functions for config |
| 8 | * |
| 9 | * |
| 10 | * @par |
| 11 | * IXP400 SW Release version 2.0 |
| 12 | * |
| 13 | * -- Copyright Notice -- |
| 14 | * |
| 15 | * @par |
| 16 | * Copyright 2001-2005, Intel Corporation. |
| 17 | * All rights reserved. |
| 18 | * |
| 19 | * @par |
Wolfgang Denk | c57eadc | 2013-07-28 22:12:47 +0200 | [diff] [blame] | 20 | * SPDX-License-Identifier: BSD-3-Clause |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 21 | * @par |
| 22 | * -- End of Copyright Notice -- |
| 23 | */ |
| 24 | |
| 25 | #ifndef IXQMGRQCFG_P_H |
| 26 | #define IXQMGRQCFG_P_H |
| 27 | |
| 28 | /* |
| 29 | * User defined header files |
| 30 | */ |
| 31 | #include "IxQMgr.h" |
| 32 | |
| 33 | /* |
| 34 | * Typedefs |
| 35 | */ |
| 36 | typedef struct |
| 37 | { |
| 38 | unsigned wmSetCnt; |
| 39 | |
| 40 | struct |
| 41 | { |
| 42 | char *qName; |
| 43 | BOOL isConfigured; |
| 44 | unsigned int qSizeInWords; |
| 45 | unsigned int qEntrySizeInWords; |
| 46 | unsigned int ne; |
| 47 | unsigned int nf; |
| 48 | unsigned int numEntries; |
| 49 | UINT32 baseAddress; |
| 50 | UINT32 readPtr; |
| 51 | UINT32 writePtr; |
| 52 | } qStats[IX_QMGR_MAX_NUM_QUEUES]; |
| 53 | |
| 54 | } IxQMgrQCfgStats; |
| 55 | |
| 56 | /* |
| 57 | * Initialize the QCfg subcomponent |
| 58 | */ |
| 59 | void |
| 60 | ixQMgrQCfgInit (void); |
| 61 | |
| 62 | /* |
| 63 | * Uninitialize the QCfg subcomponent |
| 64 | */ |
| 65 | void |
| 66 | ixQMgrQCfgUninit (void); |
| 67 | |
| 68 | /* |
| 69 | * Get the Q size in words |
| 70 | */ |
| 71 | IxQMgrQSizeInWords |
| 72 | ixQMgrQSizeInWordsGet (IxQMgrQId qId); |
| 73 | |
| 74 | /* |
| 75 | * Get the Q entry size in words |
| 76 | */ |
| 77 | IxQMgrQEntrySizeInWords |
| 78 | ixQMgrQEntrySizeInWordsGet (IxQMgrQId qId); |
| 79 | |
| 80 | /* |
| 81 | * Get the generic cfg stats |
| 82 | */ |
| 83 | IxQMgrQCfgStats* |
| 84 | ixQMgrQCfgStatsGet (void); |
| 85 | |
| 86 | /* |
| 87 | * Get queue specific stats |
| 88 | */ |
| 89 | IxQMgrQCfgStats* |
| 90 | ixQMgrQCfgQStatsGet (IxQMgrQId qId); |
| 91 | |
| 92 | /* |
| 93 | * Check is the queue configured |
| 94 | */ |
| 95 | BOOL |
| 96 | ixQMgrQIsConfigured(IxQMgrQId qId); |
| 97 | |
| 98 | #endif /* IX_QMGRQCFG_P_H */ |