Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ddidmareq.h
          +++ new/usr/src/uts/common/sys/ddidmareq.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  23   25   */
  24      -/*
  25      - * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26      - */
  27   26  
  28   27  #ifndef _SYS_DDIDMAREQ_H
  29   28  #define _SYS_DDIDMAREQ_H
  30   29  
  31   30  #ifdef  __cplusplus
  32   31  extern "C" {
  33   32  #endif
  34   33  
  35   34  /*
  36   35   * Memory Objects
↓ open down ↓ 465 lines elided ↑ open up ↑
 502  501  
 503  502  } ddi_dma_req_t;
 504  503  
 505  504  /*
 506  505   * Defines for the DMA mapping allocation functions
 507  506   *
 508  507   * If a DMA callback funtion is set to anything other than the following
 509  508   * defines then it is assumed that one wishes a callback and is providing
 510  509   * a function address.
 511  510   */
 512      -#ifdef __STDC__
 513  511  #define DDI_DMA_DONTWAIT        ((int (*)(caddr_t))0)
 514  512  #define DDI_DMA_SLEEP           ((int (*)(caddr_t))1)
 515      -#else
 516      -#define DDI_DMA_DONTWAIT        ((int (*)())0)
 517      -#define DDI_DMA_SLEEP           ((int (*)())1)
 518      -#endif
 519  513  
 520  514  /*
 521  515   * Return values from callback functions.
 522  516   */
 523  517  #define DDI_DMA_CALLBACK_RUNOUT 0
 524  518  #define DDI_DMA_CALLBACK_DONE   1
 525  519  
 526  520  /*
 527  521   * Flag definitions for the allocation functions.
 528  522   */
↓ open down ↓ 277 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX