change console=tty0 to enable linux framebuffer console
[jz_uboot.git] / cpu / ixp / npe / include / IxQMgrQCfg_p.h
blobc9dae1ef0492b8da569eb6f0a3f384a034ffd41b
1 /**
2 * @file IxQMgrQCfg_p.h
4 * @author Intel Corporation
5 * @date 07-Feb-2002
7 * @brief This file contains the internal functions for config
9 *
10 * @par
11 * IXP400 SW Release version 2.0
13 * -- Copyright Notice --
15 * @par
16 * Copyright 2001-2005, Intel Corporation.
17 * All rights reserved.
19 * @par
20 * Redistribution and use in source and binary forms, with or without
21 * modification, are permitted provided that the following conditions
22 * are met:
23 * 1. Redistributions of source code must retain the above copyright
24 * notice, this list of conditions and the following disclaimer.
25 * 2. Redistributions in binary form must reproduce the above copyright
26 * notice, this list of conditions and the following disclaimer in the
27 * documentation and/or other materials provided with the distribution.
28 * 3. Neither the name of the Intel Corporation nor the names of its contributors
29 * may be used to endorse or promote products derived from this software
30 * without specific prior written permission.
32 * @par
33 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
34 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
37 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
38 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
39 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 * SUCH DAMAGE.
45 * @par
46 * -- End of Copyright Notice --
49 #ifndef IXQMGRQCFG_P_H
50 #define IXQMGRQCFG_P_H
53 * User defined header files
55 #include "IxQMgr.h"
58 * Typedefs
60 typedef struct
62 unsigned wmSetCnt;
64 struct
66 char *qName;
67 BOOL isConfigured;
68 unsigned int qSizeInWords;
69 unsigned int qEntrySizeInWords;
70 unsigned int ne;
71 unsigned int nf;
72 unsigned int numEntries;
73 UINT32 baseAddress;
74 UINT32 readPtr;
75 UINT32 writePtr;
76 } qStats[IX_QMGR_MAX_NUM_QUEUES];
78 } IxQMgrQCfgStats;
81 * Initialize the QCfg subcomponent
82 */
83 void
84 ixQMgrQCfgInit (void);
87 * Uninitialize the QCfg subcomponent
88 */
89 void
90 ixQMgrQCfgUninit (void);
93 * Get the Q size in words
94 */
95 IxQMgrQSizeInWords
96 ixQMgrQSizeInWordsGet (IxQMgrQId qId);
99 * Get the Q entry size in words
101 IxQMgrQEntrySizeInWords
102 ixQMgrQEntrySizeInWordsGet (IxQMgrQId qId);
105 * Get the generic cfg stats
107 IxQMgrQCfgStats*
108 ixQMgrQCfgStatsGet (void);
111 * Get queue specific stats
113 IxQMgrQCfgStats*
114 ixQMgrQCfgQStatsGet (IxQMgrQId qId);
117 * Check is the queue configured
119 BOOL
120 ixQMgrQIsConfigured(IxQMgrQId qId);
122 #endif /* IX_QMGRQCFG_P_H */