Print this page
11226 Remove NetraCT support

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
          +++ new/usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
↓ 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 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
       25 + *
       26 + * Copyright 2019 Peter Tribble.
  25   27   */
  26   28  
  27   29  /*
  28   30   * The MDESC picl plugin serves 2 different functionalities.
  29   31   * --The first is to look up certain CPU properties in the MDESC an to add
  30   32   * these properties in the already created CPU PICL nodes in the /platform
  31   33   * section of the tree.
  32   34   * --The second functionality is to create a /disk_discovery section of the
  33   35   * PICL tree which will have a disk node created for each disk node in the
  34   36   * machine description.
↓ open down ↓ 178 lines elided ↑ open up ↑
 213  215  {
 214  216          nvlist_t *nvl;
 215  217          char *packed_nvl;
 216  218          size_t nvl_size;
 217  219          int status;
 218  220  
 219  221          if (nvlist_alloc(&nvl, NV_UNIQUE_NAME_TYPE, NULL) != 0)
 220  222                  return;
 221  223  
 222  224          /*
 223      -         * Right now (Aug. 2007) snowbird is the only other platform
 224      -         * which uses this event.  Since that's a sun4u platform and
 225      -         * this is sun4v we do not have to worry about possible confusion
 226      -         * or interference between the two by grabbing this event for
 227      -         * our own use here.  This event is consumed by the devtree
      225 +         * This event is consumed by the devtree
 228  226           * plug-in.  The event signals the plug-in to re-run its
 229  227           * cpu initialization function, which will cause it to add
 230  228           * additional information to the cpu devtree nodes (particularly,
 231  229           * the administrative state of the cpus.)
 232  230           */
 233  231          if (nvlist_add_string(nvl, PICLEVENTARG_EVENT_NAME,
 234  232              PICLEVENT_CPU_STATE_CHANGE) != 0) {
 235  233                  free(nvl);
 236  234                  return;
 237  235          }
↓ open down ↓ 93 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX