s1394_fa.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* 1394 Services Layer Fixed Address Support Routines
* Currently used for FCP support.
*/
#include <sys/tnf_probe.h>
/*
* s1394_fa_claim_addr_blk()
* Claim fixed address block.
*/
int
{
int ret;
/* Might have been claimed already */
S1394_TNF_SL_FA_STACK, "");
return (DDI_SUCCESS);
}
if (ret != DDI_SUCCESS) {
} else {
}
return (ret);
}
/*
* s1394_fa_free_addr_blk()
* Free fixed address block.
*/
void
{
int ret;
/* Might have been freed already */
if (ret != DDI_SUCCESS) {
}
}
}
/*
* s1394_fa_list_add()
* Add target to the list of FA clients.
* target_list_rwlock should be writer-held.
*/
void
{
} else {
}
}
/*
* s1394_fa_list_remove()
* Remove target from the list of FA clients.
* target_list_rwlock should be writer-held.
*/
int
{
}
return (DDI_SUCCESS);
}
}
return (DDI_FAILURE);
}
/*
* s1394_fa_list_is_empty()
* Returns B_TRUE if the target list is empty
* target_list_rwlock should be at least reader-held.
*/
{
}
/*
* s1394_fa_list_gen()
* Returns list generation number.
* target_list_rwlock should be at least reader-held.
*/
{
}
/*
* s1394_fa_init_cmd()
* initialize the FA specific part of the command
*/
void
{
}
/*
* s1394_fa_convert_cmd()
* convert an FA command (with a relative address) to a regular 1394 command
*/
void
{
}
/*
* s1394_fa_restore_cmd()
* opposite of s1394_fa_convert_cmd(): regular 1394 command to FA command
*/
void
{
}
/*
* s1394_fa_check_restore_cmd()
* if a command has FA extension, do s1394_fa_restore_cmd()
*/
void
{
}
}
/*
* s1394_fa_completion_cb()
* FA completion callback: restore command and call original callback
*/
static void
{
S1394_TNF_SL_FA_STACK, "");
if (cmd->completion_callback) {
}
S1394_TNF_SL_FA_STACK, "");
}