dman_domain.c revision 03831d35f7499c87d51205817c93e9a8d42c4bae
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * CDDL HEADER START
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * The contents of this file are subject to the terms of the
8a40a695ee676a322b094e9afe5375567bfb51e3gavinm * Common Development and Distribution License (the "License").
8a40a695ee676a322b094e9afe5375567bfb51e3gavinm * You may not use this file except in compliance with the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * See the License for the specific language governing permissions
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * and limitations under the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * When distributing Covered Code, include this CDDL HEADER in each
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * If applicable, add the following below this CDDL HEADER, with the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * fields enclosed by brackets "[]" replaced with your own identifying
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * information: Portions Copyright [yyyy] [name of copyright owner]
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * CDDL HEADER END
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Use is subject to license terms.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#pragma ident "%Z%%M% %I% %E% SMI"
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Domain specific portion of the Starcat Management Network Driver
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Domain side function prototypes.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindistatic int man_dip_is_schizoxmits0_pcib(dev_info_t *, int *, int *);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindistatic int man_get_eri_dev_info(dev_info_t *, man_dev_t *);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#if defined(DEBUG)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#endif /* DEBUG */
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * man_mbox_initialized is protected by inner perimiter lock.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi status = mboxsc_init(IOSRAM_KEY_SCMD, MBOXSC_MBOX_IN, NULL);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi if (status != 0) {
8a40a695ee676a322b094e9afe5375567bfb51e3gavinm cmn_err(CE_WARN, "man_domain_configure: failed to initialize"
8a40a695ee676a322b094e9afe5375567bfb51e3gavinm status = mboxsc_init(IOSRAM_KEY_MDSC, MBOXSC_MBOX_OUT, NULL);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi if (status != 0) {
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi cmn_err(CE_WARN, "man_domain_configure: failed to initialize"
goto exit;
if (status != 0) {
exit:
return (status);
man_path_discovery(void)
int num_devs;
int status = 0;
goto exit;
goto exit;
if (num_devs <= 0) {
goto exit;
if (status) {
goto exit;
for (i = 0; i < num_devs; i++) {
exit:
return (status);
man_domain_deconfigure(void)
int status = 0;
goto exit;
goto exit;
goto exit;
if (man_ctl_wq)
exit:
return (status);
int status = 0;
int retries = 0;
goto exit;
retries++;
goto again;
if (status)
goto exit;
retries = 0;
retries++;
goto again;
exit:
return (status);
int status = 0;
goto exit;
if (man_ctl_wq)
exit:
return (status);
int status = 0;
req_tid = 0;
if (status != 0) {
goto exit;
if (status != 0) {
goto exit;
goto exit;
if (status != 0) {
status);
exit:
return (status);
int status;
return (EINVAL);
if (status) {
return (status);
return (status);
#if defined(MAN_NO_IOSRAM)
int status = 0;
return (EINVAL);
return (status);
int exp_id;
int found = 0;
int circ;
int circ2;
int xmits;
xmits = 0;
if (xmits) {
found++;
return (found);
int exp_id;
int xmits;
char *name;
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
int portid;
char *name;
return (FALSE);
return (FALSE);
goto notfound;
goto notfound;
goto notfound;
goto notfound;
return (TRUE);
return (FALSE);
int length = 0;
return (TRUE);
return (FALSE);
int state;
return (TRUE);
return (FALSE);
#if defined(DEBUG)