/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Utility DADA routines
*/
/*
* Polling support routines
*/
extern uintptr_t dcd_callback_id;
#ifdef NOT_NEEDED
#endif
/*
* Common buffer for dcd_lod
*/
extern kmutex_t dcd_log_mutex;
#ifdef NOT_NEEDED
int
{
void (*savec)();
/*
* Save old flags
*/
/*
* Set the Pkt_comp to NULL
*/
/*
* Set the Pkt time for the polled command
*/
}
/* Now transport the command */
break;
}
drv_usecwait(1000000);
break;
== STATUS_ATA_BUSY) {
drv_usecwait(1000000);
} else {
rval = 0;
break;
}
}
return (rval);
}
#endif
/*PRINTFLIKE4*/
void
{
int log_only = 0;
int boot_only = 0;
int console_only = 0;
if (dev) {
name[0] = '\0';
}
} else {
}
switch (dcd_log_buffer[0]) {
case '!':
log_only = 1;
break;
case '?':
boot_only = 1;
break;
case '^':
console_only = 1;
break;
}
switch (level) {
case CE_NOTE:
/* FALLTHROUGH */
case CE_CONT:
case CE_WARN:
case CE_PANIC:
if (boot_only) {
&dcd_log_buffer[1]);
} else if (console_only) {
&dcd_log_buffer[1]);
} else if (log_only) {
&dcd_log_buffer[1]);
} else {
}
break;
default:
break;
}
}