/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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"
#include "ata_common.h"
#include "ata_disk.h"
#include "atapi.h"
#include "pciide.h"
#ifdef ATA_DEBUG
void
{
ghd_err("dip 0x%p flags 0x%x timing 0x%x\n",
ghd_err("drvp[0][0..7] 0x%p 0x%p 0x%p 0x%p 0x%p 0x%p 0x%p 0x%p\n",
ghd_err("drvp[1][0..7] 0x%p 0x%p 0x%p 0x%p 0x%p 0x%p 0x%p 0x%p\n",
ghd_err("max tran 0x%x &ccc_t 0x%p actv drvp 0x%p actv pktp 0x%p\n",
P->ac_max_transfer, &P->ac_ccc,
P->ac_active_drvp, P->ac_active_pktp);
ghd_err("iohdl1 0x%p 0x%p D 0x%p E 0x%p F 0x%p C 0x%p S 0x%p LC 0x%p "
"HC 0x%p HD 0x%p ST 0x%p CMD 0x%p\n",
ghd_err("iohdl2 0x%p 0x%p AST 0x%p DC 0x%p\n",
ghd_err("bm hdl 0x%p 0x%p pciide %d BM %d sg_list 0x%p paddr 0x%llx "
"acc hdl 0x%p sg hdl 0x%p\n",
P->ac_sg_list, (unsigned long long) P->ac_sg_paddr,
P->ac_sg_acc_handle, P->ac_sg_handle);
ghd_err("arq pktp 0x%p flt pktp 0x%p &cdb 0x%p\n",
}
void
{
ghd_err("ctlp 0x%p &ata_id 0x%p flags 0x%x pciide dma 0x%x\n",
ghd_err("targ %d lun %d driv 0x%x state %d cdb len %d "
P->ad_nec_bad_status);
ghd_err("ata &scsi_dev 0x%p &scsi_inquiry 0x%p &ctl_obj 0x%p\n",
ghd_err("ata rd cmd 0x%x wr cmd 0x%x acyl 0x%x\n",
ghd_err("ata bios cyl %d hd %d sec %d phs hd %d sec %d\n",
P->ad_phsec);
ghd_err("block factor %d bpb %d\n",
P->ad_block_factor, P->ad_bytes_per_block);
}
void
{
ghd_err("gcmdp 0x%p flags 0x%x v_addr 0x%p dma %d\n",
ghd_err("&sg_list 0x%p sg cnt 0x%x resid 0x%lx bcnt 0x%lx\n",
ghd_err("sec 0x%x cnt 0x%x lc 0x%x hc 0x%x hd 0x%x cmd 0x%x\n",
ghd_err("start 0x%p intr 0x%p complete 0x%p\n",
ghd_err("ata cdb 0x%x scb 0x%x bpb 0x%x wrt cnt 0x%x\n",
ghd_err("atapi cdbp 0x%p cdb len %d cdb pad %d\n",
}
#endif