Print this page
remove support for non-ANSI compilation


   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
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*

  22  * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 #ifndef _SYS_AVINTR_H
  26 #define _SYS_AVINTR_H
  27 
  28 
  29 #include <sys/mutex.h>
  30 #include <sys/dditypes.h>
  31 #include <sys/ddi_intr.h>
  32 
  33 #ifdef  __cplusplus
  34 extern "C" {
  35 #endif
  36 
  37 /*
  38  * Period of autovector structures (add this in to get the next level).
  39  */
  40 #define MAXIPL  16
  41 #define INT_IPL(x) (x)
  42 #define AV_INT_SPURIOUS -1
  43 
  44 #ifdef  __STDC__
  45 typedef uint_t (*avfunc)(caddr_t, caddr_t);
  46 #else
  47 typedef uint_t (*avfunc)();
  48 #endif  /* __STDC__ */
  49 
  50 struct autovec {
  51 
  52         /*
  53          * Interrupt handler and argument to pass to it.
  54          */
  55 
  56         struct autovec *av_link;        /* pointer to next on in chain */
  57         uint_t  (*av_vector)();
  58         caddr_t av_intarg1;
  59         caddr_t av_intarg2;
  60         uint64_t *av_ticksp;
  61         uint_t  av_prilevel;            /* priority level */
  62 
  63         /*
  64          * Interrupt handle/id (like intrspec structure pointer) used to
  65          * identify a specific instance of interrupt handler in case we
  66          * have to remove the interrupt handler later.
  67          *
  68          */




   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
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23  * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 
  26 #ifndef _SYS_AVINTR_H
  27 #define _SYS_AVINTR_H
  28 
  29 
  30 #include <sys/mutex.h>
  31 #include <sys/dditypes.h>
  32 #include <sys/ddi_intr.h>
  33 
  34 #ifdef  __cplusplus
  35 extern "C" {
  36 #endif
  37 
  38 /*
  39  * Period of autovector structures (add this in to get the next level).
  40  */
  41 #define MAXIPL  16
  42 #define INT_IPL(x) (x)
  43 #define AV_INT_SPURIOUS -1
  44 

  45 typedef uint_t (*avfunc)(caddr_t, caddr_t);



  46 
  47 struct autovec {
  48 
  49         /*
  50          * Interrupt handler and argument to pass to it.
  51          */
  52 
  53         struct autovec *av_link;        /* pointer to next on in chain */
  54         uint_t  (*av_vector)();
  55         caddr_t av_intarg1;
  56         caddr_t av_intarg2;
  57         uint64_t *av_ticksp;
  58         uint_t  av_prilevel;            /* priority level */
  59 
  60         /*
  61          * Interrupt handle/id (like intrspec structure pointer) used to
  62          * identify a specific instance of interrupt handler in case we
  63          * have to remove the interrupt handler later.
  64          *
  65          */