| 1 |
/* |
| 2 |
* SPDX-License-Identifier: BSD-3-Clause |
| 3 |
* Copyright © 2009-2010 Oracle and/or its affiliates. All rights reserved. |
| 4 |
* Copyright © 2017 Inria. All rights reserved. |
| 5 |
* See COPYING in top-level directory. |
| 6 |
*/ |
| 7 |
|
| 8 |
|
| 9 |
#ifdef HWLOC_INSIDE_PLUGIN |
| 10 |
/* |
| 11 |
* these declarations are internal only, they are not available to plugins |
| 12 |
* (functions below are internal static symbols). |
| 13 |
*/ |
| 14 |
#error This file should not be used in plugins |
| 15 |
#endif |
| 16 |
|
| 17 |
|
| 18 |
#ifndef HWLOC_PRIVATE_SOLARIS_CHIPTYPE_H |
| 19 |
#define HWLOC_PRIVATE_SOLARIS_CHIPTYPE_H |
| 20 |
|
| 21 |
struct hwloc_solaris_chip_info_s { |
| 22 |
char *model; |
| 23 |
char *type; |
| 24 |
/* L1i, L1d, L2, L3 */ |
| 25 |
#define HWLOC_SOLARIS_CHIP_INFO_L1I 0 |
| 26 |
#define HWLOC_SOLARIS_CHIP_INFO_L1D 1 |
| 27 |
#define HWLOC_SOLARIS_CHIP_INFO_L2I 2 |
| 28 |
#define HWLOC_SOLARIS_CHIP_INFO_L2D 3 |
| 29 |
#define HWLOC_SOLARIS_CHIP_INFO_L3 4 |
| 30 |
long cache_size[5]; /* cleared to -1 if we don't want of that cache */ |
| 31 |
unsigned cache_linesize[5]; |
| 32 |
unsigned cache_associativity[5]; |
| 33 |
int l2_unified; |
| 34 |
}; |
| 35 |
|
| 36 |
/* fills the structure with 0 on error */ |
| 37 |
extern void hwloc_solaris_get_chip_info(struct hwloc_solaris_chip_info_s *info); |
| 38 |
|
| 39 |
#endif /* HWLOC_PRIVATE_SOLARIS_CHIPTYPE_H */ |