/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1999-2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* s1394.c
* 1394 Services Layer Initialization and Cleanup Routines
* The routines do all initialization and cleanup for the Sevices Layer
*/
#include <sys/tnf_probe.h>
/* Driver State Pointer */
/* Module Driver Info */
"IEEE 1394 Services Library 1.0"
};
/* Module Linkage */
};
static int s1394_init();
static void s1394_fini();
#ifndef NPROBE
extern int tnf_mod_load(void);
#endif
int
_init()
{
int status;
#ifndef NPROBE
(void) tnf_mod_load();
#endif
status = s1394_init();
if (status != 0) {
#ifndef NPROBE
(void) tnf_mod_unload(&s1394_modlinkage);
#endif
return (status);
}
if (status != 0) {
#ifndef NPROBE
(void) tnf_mod_unload(&s1394_modlinkage);
#endif
}
return (status);
}
int
{
}
int
_fini()
{
int status;
if (status != 0) {
return (status);
}
s1394_fini();
#ifndef NPROBE
(void) tnf_mod_unload(&s1394_modlinkage);
#endif
return (status);
}
/*
* s1394_init()
* initializes the 1394 Software Framework's structures, i.e. the HAL list
* and associated mutex.
*/
static int
{
return (0);
}
/*
* s1394_fini()
* cleans up the 1394 Software Framework's structures that were allocated
* in s1394_init().
*/
static void
{
}