blob: a393e466399cdad21020cd1a5eb29ef1bc3ebc76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/** @file
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef _KTI_DISCOVERY_H_
#define _KTI_DISCOVERY_H_
#ifdef _MSC_VER
#pragma warning (disable: 4127 4214 4100) // disable C4127: constant conditional expression
#endif
#include "DataTypes.h"
#include "PlatformHost.h"
#include "KtiSi.h"
#define MAX_TREE_NODES (MAX_SOCKET + 2) // 2 additional nodes since a node will appear more than once in the tree when it is being constructed
#define MAX_RING_TREE_NODES 46 // A CPU with 3 links supported will have 1 + 1*3 + 3*2 + 6*2 + 12*2 = 46 nodes maximum in ring tree
#define MAX_RINGS 6 // Maximum number of rings possible in systems with upto 8 sockets (HyperCube)
#define CPUS_PER_RING 4 // # of CPUs in a CPU ring
#define VN0 0
#define VN1 1
#define TX 0
#define RX 1
#endif // _KTI_DISCOVERY_H_
|