Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts


   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
  24  * All rights reserved.
  25  */
  26 
  27 #pragma ident   "%Z%%M% %I%     %E% SMI"
  28 

  29 /*
  30  * s1394.c
  31  *    1394 Services Layer Initialization and Cleanup Routines
  32  *    The routines do all initialization and cleanup for the Sevices Layer
  33  */
  34 
  35 #include <sys/conf.h>
  36 #include <sys/ddi.h>
  37 #include <sys/sunddi.h>
  38 #include <sys/types.h>
  39 #include <sys/kmem.h>
  40 #include <sys/tnf_probe.h>
  41 
  42 #include <sys/1394/t1394.h>
  43 #include <sys/1394/s1394.h>
  44 #include <sys/1394/h1394.h>
  45 
  46 /* Driver State Pointer */
  47 s1394_state_t *s1394_statep;
  48 
  49 /* Module Driver Info */
  50 static struct modlmisc s1394_modlmisc = {
  51         &mod_miscops,
  52         "IEEE 1394 Services Library 1.0"
  53 };
  54 
  55 /* Module Linkage */
  56 static struct modlinkage s1394_modlinkage = {
  57         MODREV_1,
  58         &s1394_modlmisc,
  59         NULL
  60 };
  61 
  62 static int s1394_init();
  63 static void s1394_fini();
  64 
  65 #ifndef NPROBE
  66 extern int tnf_mod_load(void);
  67 extern int tnf_mod_unload(struct modlinkage *mlp);
  68 #endif
  69 
  70 int
  71 _init()
  72 {
  73         int status;
  74 
  75 #ifndef NPROBE
  76         (void) tnf_mod_load();
  77 #endif
  78         status = s1394_init();
  79         if (status != 0) {




   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
  24  * All rights reserved.
  25  */
  26 

  27 
  28 
  29 /*
  30  * s1394.c
  31  *    1394 Services Layer Initialization and Cleanup Routines
  32  *    The routines do all initialization and cleanup for the Sevices Layer
  33  */
  34 
  35 #include <sys/conf.h>
  36 #include <sys/ddi.h>
  37 #include <sys/sunddi.h>
  38 #include <sys/types.h>
  39 #include <sys/kmem.h>
  40 #include <sys/tnf_probe.h>
  41 
  42 #include <sys/1394/t1394.h>
  43 #include <sys/1394/s1394.h>
  44 #include <sys/1394/h1394.h>
  45 
  46 /* Driver State Pointer */
  47 s1394_state_t *s1394_statep;
  48 
  49 /* Module Driver Info */
  50 static struct modlmisc s1394_modlmisc = {
  51         &mod_miscops,
  52         "IEEE 1394 Services Library 1.0"
  53 };
  54 
  55 /* Module Linkage */
  56 static struct modlinkage s1394_modlinkage = {
  57         MODREV_1,
  58         {   &s1394_modlmisc,
  59             NULL }
  60 };
  61 
  62 static int s1394_init();
  63 static void s1394_fini();
  64 
  65 #ifndef NPROBE
  66 extern int tnf_mod_load(void);
  67 extern int tnf_mod_unload(struct modlinkage *mlp);
  68 #endif
  69 
  70 int
  71 _init()
  72 {
  73         int status;
  74 
  75 #ifndef NPROBE
  76         (void) tnf_mod_load();
  77 #endif
  78         status = s1394_init();
  79         if (status != 0) {