Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/hotplug/hpctrl.h
          +++ new/usr/src/uts/common/sys/hotplug/hpctrl.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  #ifndef _SYS_HOTPLUG_HPCTRL_H
  28   30  #define _SYS_HOTPLUG_HPCTRL_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  /*
  33   33   * ****************************************************************
  34   34   * Hot Plug Controller interfaces for PCI and CompactPCI platforms.
  35   35   * ****************************************************************
  36   36   */
  37   37  #include <sys/types.h>
  38   38  
  39   39  #ifdef  __cplusplus
  40   40  extern "C" {
  41   41  #endif
↓ open down ↓ 221 lines elided ↑ open up ↑
 263  263  #define HPC_EVENT_UNCLAIMED             -1      /* HPC event is not claimed */
 264  264  
 265  265  /* definitions for slot (un)registration events */
 266  266  #define HPC_SLOT_ONLINE         1       /* slot is registered */
 267  267  #define HPC_SLOT_OFFLINE        2       /* slot is unregistered */
 268  268  
 269  269  /*
 270  270   * function prototype definitions for interfaces between HPC driver
 271  271   * and Hot Plug Services framework.
 272  272   */
 273      -#ifdef  __STDC__
 274  273  extern int hpc_slot_register(dev_info_t *dip, char *bus_path,
 275  274          hpc_slot_info_t *slot_info, hpc_slot_t *slot_hdl,
 276  275          hpc_slot_ops_t *slot_ops, caddr_t ops_arg, uint_t flags);
 277  276  extern int hpc_slot_unregister(hpc_slot_t *slot_hdl);
 278  277  extern struct hpc_slot_ops *hpc_alloc_slot_ops(int sleepflag);
 279  278  extern void hpc_free_slot_ops(hpc_slot_ops_t *ops);
 280  279  extern int hpc_slot_event_notify(hpc_slot_t slot_hdl, uint_t event,
 281  280          uint_t flags);
 282  281  extern boolean_t hpc_bus_registered(hpc_slot_t slot_hdl);
 283      -#else
 284      -extern int hpc_slot_register();
 285      -extern int hpc_slot_unregister();
 286      -extern struct hpc_slot_ops *hpc_alloc_slot_ops();
 287      -extern void hpc_free_slot_ops();
 288      -extern int hpc_slot_event_notify();
 289      -extern boolean_t hpc_bus_registered();
 290      -#endif  /* __STDC__ */
 291  282  
 292  283  /*
 293  284   * *****************************************************************
 294  285   * Implementation specific data structures and definitons. These are
 295  286   * the private interfaces between cfgadm plug-in and the PCI nexus
 296  287   * driver.
 297  288   * *****************************************************************
 298  289   */
 299  290  
 300  291  /*
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX