chip_subr.c (c26bf377) | chip_subr.c (f2dbfd32) |
---|---|
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 --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. | 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 --- 8 unchanged lines hidden (view full) --- 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. |
25 * Copyright (c) 2018, Joyent, Inc. | 25 * Copyright 2019, Joyent, Inc. |
26 */ 27 28/* 29 * Support function for the i86pc chip enumerator 30 */ 31 32#include <sys/types.h> 33#include <stdarg.h> --- 191 unchanged lines hidden (view full) --- 225 * instance number inst, parented by the given parent node pnode. 226 */ 227int 228mkrsrc(topo_mod_t *mod, tnode_t *pnode, const char *name, int inst, 229 nvlist_t *auth, nvlist_t **nvl) 230{ 231 *nvl = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, name, 232 inst, NULL, auth, NULL, NULL, NULL); | 26 */ 27 28/* 29 * Support function for the i86pc chip enumerator 30 */ 31 32#include <sys/types.h> 33#include <stdarg.h> --- 191 unchanged lines hidden (view full) --- 225 * instance number inst, parented by the given parent node pnode. 226 */ 227int 228mkrsrc(topo_mod_t *mod, tnode_t *pnode, const char *name, int inst, 229 nvlist_t *auth, nvlist_t **nvl) 230{ 231 *nvl = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, name, 232 inst, NULL, auth, NULL, NULL, NULL); |
233 return (nvl != NULL ? 0 : -1); /* caller must free nvlist */ | 233 return (*nvl != NULL ? 0 : -1); /* caller must free nvlist */ |
234} 235 236/* 237 * Construct a cpu scheme FMRI with the given data; the caller must free 238 * the allocated nvlist with nvlist_free(). 239 */ 240nvlist_t * 241cpu_fmri_create(topo_mod_t *mod, uint32_t cpuid, char *s, uint8_t cpumask) --- 641 unchanged lines hidden --- | 234} 235 236/* 237 * Construct a cpu scheme FMRI with the given data; the caller must free 238 * the allocated nvlist with nvlist_free(). 239 */ 240nvlist_t * 241cpu_fmri_create(topo_mod_t *mod, uint32_t cpuid, char *s, uint8_t cpumask) --- 641 unchanged lines hidden --- |