chip.h (f2dbfd32) chip.h (d0caeb89)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 7 unchanged lines hidden (view full) ---

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright 2019, Joyent, Inc.
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 7 unchanged lines hidden (view full) ---

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright 2019, Joyent, Inc.
24 * Copyright 2020 Oxide Computer Company
24 */
25
26#ifndef _CHIP_H
27#define _CHIP_H
28
29#include <kstat.h>
30#include <libnvpair.h>
31#include <fm/libtopo.h>

--- 37 unchanged lines hidden (view full) ---

69
70/*
71 * chip-properties
72 */
73#define CHIP_BRAND "brand"
74#define CHIP_FAMILY "family"
75#define CHIP_MODEL "model"
76#define CHIP_NCORE "ncore_per_chip"
25 */
26
27#ifndef _CHIP_H
28#define _CHIP_H
29
30#include <kstat.h>
31#include <libnvpair.h>
32#include <fm/libtopo.h>

--- 37 unchanged lines hidden (view full) ---

70
71/*
72 * chip-properties
73 */
74#define CHIP_BRAND "brand"
75#define CHIP_FAMILY "family"
76#define CHIP_MODEL "model"
77#define CHIP_NCORE "ncore_per_chip"
78#define CHIP_SOCKET "socket"
77#define CHIP_STEPPING "stepping"
78#define CHIP_VENDOR_ID "vendor_id"
79
80/*
81 * memory-controller-properties
82 * check usr/src/uts/i86pc/os/cpuid.c to understand more
83 * on procnodeid values for AMD & Intel
84 */

--- 68 unchanged lines hidden (view full) ---

153extern int add_nvlist_longprop(topo_mod_t *, tnode_t *, nvlist_t *,
154 const char *, const char *, int32_t *);
155extern int add_nvlist_longprops(topo_mod_t *, tnode_t *, nvlist_t *,
156 const char *, int32_t *, ...);
157extern int mkrsrc(topo_mod_t *, tnode_t *, const char *, int,
158 nvlist_t *, nvlist_t **);
159extern nvlist_t *cpu_fmri_create(topo_mod_t *, uint32_t, char *, uint8_t);
160extern boolean_t is_xpv();
79#define CHIP_STEPPING "stepping"
80#define CHIP_VENDOR_ID "vendor_id"
81
82/*
83 * memory-controller-properties
84 * check usr/src/uts/i86pc/os/cpuid.c to understand more
85 * on procnodeid values for AMD & Intel
86 */

--- 68 unchanged lines hidden (view full) ---

155extern int add_nvlist_longprop(topo_mod_t *, tnode_t *, nvlist_t *,
156 const char *, const char *, int32_t *);
157extern int add_nvlist_longprops(topo_mod_t *, tnode_t *, nvlist_t *,
158 const char *, int32_t *, ...);
159extern int mkrsrc(topo_mod_t *, tnode_t *, const char *, int,
160 nvlist_t *, nvlist_t **);
161extern nvlist_t *cpu_fmri_create(topo_mod_t *, uint32_t, char *, uint8_t);
162extern boolean_t is_xpv();
161extern const char *get_chip_brand(topo_mod_t *, kstat_ctl_t *, int32_t);
163extern void get_chip_kstat_strs(topo_mod_t *, kstat_ctl_t *, int32_t, char **,
164 char **);
162
163/*
164 * topo methods
165 */
166extern int mem_asru_compute(topo_mod_t *, tnode_t *, topo_version_t,
167 nvlist_t *, nvlist_t **);
168extern int rank_fmri_present(topo_mod_t *, tnode_t *, topo_version_t,
169 nvlist_t *, nvlist_t **);

--- 65 unchanged lines hidden ---
165
166/*
167 * topo methods
168 */
169extern int mem_asru_compute(topo_mod_t *, tnode_t *, topo_version_t,
170 nvlist_t *, nvlist_t **);
171extern int rank_fmri_present(topo_mod_t *, tnode_t *, topo_version_t,
172 nvlist_t *, nvlist_t **);

--- 65 unchanged lines hidden ---