Print this page
OS-2444 richmond hardware maps need to support ivy bridge

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/topo/libtopo/common/libtopo.h
          +++ new/usr/src/lib/fm/topo/libtopo/common/libtopo.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
       25 +/*
       26 + * Copyright (c) 2013, Joyent, Inc. All rights reserved.
       27 + */
  25   28  
  26   29  #ifndef _LIBTOPO_H
  27   30  #define _LIBTOPO_H
  28   31  
  29   32  #include <sys/nvpair.h>
  30   33  #include <stdio.h>
  31   34  #include <libdevinfo.h>
  32   35  
  33   36  #ifdef __cplusplus
  34   37  extern "C" {
↓ open down ↓ 347 lines elided ↑ open up ↑
 382  385  #define TOPO_PROP_PARGS "private-args"
 383  386  
 384  387  extern int topo_xml_print(topo_hdl_t *, FILE *, const char *scheme, int *);
 385  388  
 386  389  extern void *topo_hdl_alloc(topo_hdl_t *, size_t);
 387  390  extern void *topo_hdl_zalloc(topo_hdl_t *, size_t);
 388  391  extern void topo_hdl_free(topo_hdl_t *, void *, size_t);
 389  392  extern int topo_hdl_nvalloc(topo_hdl_t *, nvlist_t **, uint_t);
 390  393  extern int topo_hdl_nvdup(topo_hdl_t *, nvlist_t *, nvlist_t **);
 391  394  extern char *topo_hdl_strdup(topo_hdl_t *, const char *);
      395 +extern char *topo_hdl_strsplit(topo_hdl_t *, const char *, const char *,
      396 +    char **);
 392  397  
 393  398  /*
 394  399   * Interfaces for converting sensor/indicator types, units, states, etc to
 395  400   * a string
 396  401   */
 397  402  void topo_sensor_type_name(uint32_t type, char *buf, size_t len);
 398  403  void topo_sensor_units_name(uint8_t type, char *buf, size_t len);
 399  404  void topo_led_type_name(uint8_t type, char *buf, size_t len);
 400  405  void topo_led_state_name(uint8_t type, char *buf, size_t len);
 401  406  void topo_sensor_state_name(uint32_t sensor_type, uint8_t state, char *buf,
↓ open down ↓ 603 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX