libtopo.h (e5dcf7be) | libtopo.h (c93c462e) |
---|---|
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 --- 15 unchanged lines hidden (view full) --- 24 * Use is subject to license terms. 25 */ 26 27#ifndef _LIBTOPO_H 28#define _LIBTOPO_H 29 30#include <sys/nvpair.h> 31#include <stdio.h> | 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 --- 15 unchanged lines hidden (view full) --- 24 * Use is subject to license terms. 25 */ 26 27#ifndef _LIBTOPO_H 28#define _LIBTOPO_H 29 30#include <sys/nvpair.h> 31#include <stdio.h> |
32#include <libdevinfo.h> |
|
32 33#ifdef __cplusplus 34extern "C" { 35#endif 36 37#define TOPO_VERSION 1 /* Library ABI Interface Version */ 38 39typedef struct topo_hdl topo_hdl_t; --- 25 unchanged lines hidden (view full) --- 65 * Snapshot walker support 66 */ 67typedef int (*topo_walk_cb_t)(topo_hdl_t *, tnode_t *, void *); 68 69extern topo_walk_t *topo_walk_init(topo_hdl_t *, const char *, topo_walk_cb_t, 70 void *, int *); 71extern int topo_walk_step(topo_walk_t *, int); 72extern void topo_walk_fini(topo_walk_t *); | 33 34#ifdef __cplusplus 35extern "C" { 36#endif 37 38#define TOPO_VERSION 1 /* Library ABI Interface Version */ 39 40typedef struct topo_hdl topo_hdl_t; --- 25 unchanged lines hidden (view full) --- 66 * Snapshot walker support 67 */ 68typedef int (*topo_walk_cb_t)(topo_hdl_t *, tnode_t *, void *); 69 70extern topo_walk_t *topo_walk_init(topo_hdl_t *, const char *, topo_walk_cb_t, 71 void *, int *); 72extern int topo_walk_step(topo_walk_t *, int); 73extern void topo_walk_fini(topo_walk_t *); |
74extern di_node_t topo_hdl_devinfo(topo_hdl_t *); 75extern di_prom_handle_t topo_hdl_prominfo(topo_hdl_t *); |
|
73 74/* 75 * Walk status returned from walker 76 */ 77#define TOPO_WALK_ERR -1 78#define TOPO_WALK_NEXT 0 79#define TOPO_WALK_TERMINATE 1 80 --- 915 unchanged lines hidden --- | 76 77/* 78 * Walk status returned from walker 79 */ 80#define TOPO_WALK_ERR -1 81#define TOPO_WALK_NEXT 0 82#define TOPO_WALK_TERMINATE 1 83 --- 915 unchanged lines hidden --- |