WDCDEBUG_PRINT
WDCDEBUG_PRINT(("%s: mode=0x%x, flags=0x%x\n", __func__,
WDCDEBUG_PRINT(("%s: after wdc_exec_command() wdc_c.flags=0x%x\n",
WDCDEBUG_PRINT(("ata_get_params\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("ata_get_params: no disks\n"),
WDCDEBUG_PRINT(("%s: wdc_exec_command failed: %d\n",
WDCDEBUG_PRINT(("%s: IDENTIFY failed: 0x%x\n", __func__,
WDCDEBUG_PRINT(("wdc_ata_bio_start %s:%d:%d\n",
WDCDEBUG_PRINT(("_wdc_ata_bio_start %s:%d:%d\n",
WDCDEBUG_PRINT(("wdc_ata_bio_intr %s:%d:%d\n",
WDCDEBUG_PRINT(("wdc_ata_done: wddone\n"), DEBUG_XFERS);
WDCDEBUG_PRINT(("wdc_ata_bio_done %s:%d:%d: flags 0x%x\n",
WDCDEBUG_PRINT(("wdc_ata_done: wddone\n"), DEBUG_XFERS);
WDCDEBUG_PRINT(("wdcstart from wdc_ata_done, flags 0x%x\n",
WDCDEBUG_PRINT(("wdc_ata_ctrl_intr: state %d\n", drvp->state),
WDCDEBUG_PRINT(("wdattach\n"), DEBUG_FUNCS | DEBUG_PROBE);
WDCDEBUG_PRINT(("%s: atap_dmatiming_mimi=%d, atap_dmatiming_recom=%d\n",
WDCDEBUG_PRINT(("wdstrategy (%s)\n", wd->sc_dev.dv_xname),
WDCDEBUG_PRINT(("wdstart %s\n", wd->sc_dev.dv_xname),
WDCDEBUG_PRINT(("wddone %s\n", wd->sc_dev.dv_xname),
WDCDEBUG_PRINT(("wdrestart %s\n", wd->sc_dev.dv_xname),
WDCDEBUG_PRINT(("wdread\n"), DEBUG_XFERS);
WDCDEBUG_PRINT(("wdwrite\n"), DEBUG_XFERS);
WDCDEBUG_PRINT(("wdopen\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("wdclose\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("wdgetdefaultlabel\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("wdgetdisklabel\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("wdioctl\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("wdsize\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("PHASE_COMPLETED\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("wdc_atapi_intr: request_sense aborted, "
WDCDEBUG_PRINT(("wdc_atapi_intr: bcount value is "
WDCDEBUG_PRINT(("wdc_atapi_intr: wdc_atapi_done() (end), error 0x%x "
WDCDEBUG_PRINT(("wdc_atapi_intr_for_us: wrong drive selected\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("Phase %d, (0x%b, 0x%x) ", as->protocol_phase,
WDCDEBUG_PRINT(("wdc_atapi_ctrl %s:%d:%d state %d\n",
WDCDEBUG_PRINT(("wdc_atapi_done %s:%d:%d: flags 0x%x error 0x%x\n",
WDCDEBUG_PRINT(("wdc_atapi_reset\n"), DEBUG_XFERS);
WDCDEBUG_PRINT(
WDCDEBUG_PRINT(("driver caps %04x\n", drvp->atapi_cap),
WDCDEBUG_PRINT(("wdc_atapi_send_cmd %s:%d:%d start\n",
WDCDEBUG_PRINT(("wdc_atapi_send_cmd %s:%d:%d ",
WDCDEBUG_PRINT((" %02x",
WDCDEBUG_PRINT(("\n"), DEBUG_XFERS | DEBUG_ERRORS);
WDCDEBUG_PRINT(("about to send cmd 0x%x ",
WDCDEBUG_PRINT(
WDCDEBUG_PRINT(("R/W %d blocks %d bytes\n",
WDCDEBUG_PRINT(("no media access\n"), DEBUG_DSC);
WDCDEBUG_PRINT(("Atapi error: %d ", (flags >> 4)), DEBUG_ERRORS);
WDCDEBUG_PRINT(("ABRT "), DEBUG_ERRORS);
WDCDEBUG_PRINT(("ILI "), DEBUG_ERRORS);
WDCDEBUG_PRINT(("EOM "), DEBUG_ERRORS);
WDCDEBUG_PRINT(("MCR "), DEBUG_ERRORS);
WDCDEBUG_PRINT(("\n"), DEBUG_ERRORS);
WDCDEBUG_PRINT(("wdc_atapi_start %s:%d:%d, scsi flags 0x%x, "
WDCDEBUG_PRINT(("wdc_atapi_send_packet %s:%d:%d command sent\n",
WDCDEBUG_PRINT(("%02x ", cmd[i]), DEBUG_INTR);
WDCDEBUG_PRINT((": PHASE_CMDOUT\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("set DSCBA\n"), DEBUG_DSC);
WDCDEBUG_PRINT(("clear DCSBA\n"), DEBUG_DSC);
WDCDEBUG_PRINT(("wdc_atapi_intr: %s\n", message),
WDCDEBUG_PRINT(("wdc_atapi_intr: c_bcount %d len %d "
WDCDEBUG_PRINT(("%s:%d: wdcwait_reset() end, st0=0x%b, er0=0x%x, "
WDCDEBUG_PRINT(("wdcwait %s:%d\n", chp->wdc ?chp->wdc->sc_dev.dv_xname
WDCDEBUG_PRINT(("wdcwait: timeout, status 0x%b "
WDCDEBUG_PRINT(("wdcwait: error %x\n", chp->ch_error),
WDCDEBUG_PRINT(("wdctimeout\n"), DEBUG_FUNCS);
WDCDEBUG_PRINT(("wdc_probe_caps: wdc_cap 0x%x cf_flags 0x%x\n",
WDCDEBUG_PRINT(("%s: atap_oldpiotiming=%d\n", __func__,
WDCDEBUG_PRINT(("%s: atap_extensions=0x%x, atap_piomode_supp=0x%x, "
WDCDEBUG_PRINT(("wdc_exec_command %s:%d:%d\n",
WDCDEBUG_PRINT(("wdc_exec_command sleeping\n"),
WDCDEBUG_PRINT(("__wdccommand_start %s:%d:%d\n",
WDCDEBUG_PRINT(("__wdccommand_intr %s:%d:%d\n",
WDCDEBUG_PRINT(("__wdccommand_intr returned\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("__wdccommand_done %s:%d:%d %02x\n",
WDCDEBUG_PRINT(("__wdccommand_done before callback\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("__wdccommand_done returned\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("wdccommand %s:%d:%d: command=0x%x cylin=%d head=%d "
WDCDEBUG_PRINT(("wdccommandext %s:%d:%d: command=0x%x blkno=%llu "
WDCDEBUG_PRINT(("wdccommandshort %s:%d:%d command 0x%x\n",
WDCDEBUG_PRINT(("wdc_exec_xfer %p flags 0x%x channel %d drive %d\n",
WDCDEBUG_PRINT(("wdcstart from wdc_exec_xfer, flags 0x%x\n",
WDCDEBUG_PRINT(("%s:%d:%d: floating bus detected\n",
WDCDEBUG_PRINT(("%s:%d:%d: not ready\n",
WDCDEBUG_PRINT(("%s:%d:%d: WDCC_RECAL failed\n",
WDCDEBUG_PRINT(("%s:%d:%d: DRDY test timed out with status"
WDCDEBUG_PRINT(("%s:%d:%d: status test for 0x50 failed with"
WDCDEBUG_PRINT(("%s:%d:%d: waiting for ready %d msec\n",
WDCDEBUG_PRINT(("%s:%d:%d: register writability failed\n",
WDCDEBUG_PRINT(("%s:%d: before reset, st0=0x%b, st1=0x%b\n",
WDCDEBUG_PRINT(("%s:%d: after reset, ret_value=0x%d\n",
WDCDEBUG_PRINT(("%s:%d:%d: after reset, st=0x%b, sc=0x%x"
WDCDEBUG_PRINT(("%s:%d:%d: IDENTIFY failed\n",
WDCDEBUG_PRINT(("wdcattach: ch_drive_flags 0x%x 0x%x\n",
WDCDEBUG_PRINT(("wdcstart: xfer %p channel %d drive %d\n", xfer,
WDCDEBUG_PRINT(("wdcintr: inactive controller\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("wdcintr\n"), DEBUG_INTR);
WDCDEBUG_PRINT(("ata_reset_channel %s:%d for drive %d\n",
WDCDEBUG_PRINT((" sc_pc=%p, sc_tag=0x%x, pa_class=0x%x\n", sc->sc_pc,
WDCDEBUG_PRINT(("pciide: command/status register=0x%x\n",
WDCDEBUG_PRINT(("%s: %s cmd regs mapping: %s\n",
WDCDEBUG_PRINT(("%s: %s ctl regs mapping: %s\n",
WDCDEBUG_PRINT(("pciide_dma_table_setup: table at %p len %ld, "
WDCDEBUG_PRINT(("pciide_dma_table_setup: phy addr of table 0x%lx\n",
WDCDEBUG_PRINT(("\t seg %d len %d addr 0x%x\n",
WDCDEBUG_PRINT(("pciide_dma_start\n"), DEBUG_XFERS);
WDCDEBUG_PRINT(("pciide_dma_finish: status 0x%x\n", status),
WDCDEBUG_PRINT(("sata_chip_map interface == 0\n"),
WDCDEBUG_PRINT(("piix_setup_chip: idetim=0x%x",
WDCDEBUG_PRINT((", sidetim=0x%x",
WDCDEBUG_PRINT((", udmareg 0x%x",
WDCDEBUG_PRINT((", IDE_CONTROL 0x%x",
WDCDEBUG_PRINT(("\n"), DEBUG_PROBE);
WDCDEBUG_PRINT(("%s(%s:%d:%d): 80-wire "
WDCDEBUG_PRINT(("apollo_chip_map: old APO_IDECONF=0x%x, "
WDCDEBUG_PRINT(("apollo_chip_map: APO_DATATIM=0x%x, APO_UDMA=0x%x\n",
WDCDEBUG_PRINT(("cmd0643_9_chip_map: old timings reg 0x%x 0x%x\n",
WDCDEBUG_PRINT(("cmd0643_9_chip_map: timings reg now 0x%x 0x%x\n",
WDCDEBUG_PRINT(("%s(%s:%d:%d): "
WDCDEBUG_PRINT(("cy693_chip_map: old timings reg 0x%x\n",
WDCDEBUG_PRINT(("cy693_chip_map: new timings reg 0x%x\n",
WDCDEBUG_PRINT(("sis96x_setup_channel: new timings reg for "
WDCDEBUG_PRINT(("sis_setup_channel: old timings reg for "
WDCDEBUG_PRINT(("sis_setup_channel: new timings reg for "
WDCDEBUG_PRINT(("%s: pio format %d\n", __func__, pioformat),
WDCDEBUG_PRINT(("%s:%d:%d: piotim=0x%x, dmatim=0x%x\n",
WDCDEBUG_PRINT(("%s:%d:%d: new piotim=0x%x, dmatim=0x%x\n",
WDCDEBUG_PRINT(("acer_setup_channel: old fifo/udma reg 0x%x\n",
WDCDEBUG_PRINT(("%s:%d: 80-wire cable not detected\n",
WDCDEBUG_PRINT(("acer_setup_channel: old timings reg for "
WDCDEBUG_PRINT(("acer_setup_channel: new fifo/udma reg 0x%x\n",
WDCDEBUG_PRINT(("%s(%s:%d:%d): 80-wire "
WDCDEBUG_PRINT(("%s: bus speed register set to 0x%08x "
WDCDEBUG_PRINT(("pdc202xx_setup_chip: controller state 0x%x\n",
WDCDEBUG_PRINT(("pdc202xx_setup_chip: channel %d "
WDCDEBUG_PRINT(("pdc202xx_setup_chip: channel %d "
WDCDEBUG_PRINT(("pdc202xx_setup_chip: initial SCR 0x%x, "
WDCDEBUG_PRINT(("pdc202xx_setup_chip: primary mode 0x%x", mode),
WDCDEBUG_PRINT((", secondary mode 0x%x\n", mode ), DEBUG_PROBE);
WDCDEBUG_PRINT(("pdc202xx_setup_chip: new controller state "
WDCDEBUG_PRINT(("pdc202xx_setup_channel %s: scr 0x%x\n",
WDCDEBUG_PRINT(("%s:%d: 80-wire cable not detected\n",
WDCDEBUG_PRINT(("pdc202xx_setup_channel %s:%d: ATAPI 0x%x\n",
WDCDEBUG_PRINT(("pdc202xx_setup_channel: %s:%d:%d "
WDCDEBUG_PRINT(("%s(%s:%d:%d): 80-wire "
WDCDEBUG_PRINT(("%s(%s:%d:%d): 80-wire "
WDCDEBUG_PRINT(("%s: conf register 0x%x\n",
WDCDEBUG_PRINT(("%s: new conf register 0x%x\n",
WDCDEBUG_PRINT(("%s: %s old timing values: piodmatim=0x%x, "
WDCDEBUG_PRINT(("%s: %s new timing values: piodmatim=0x%x, "
WDCDEBUG_PRINT(("%s: cfg=0x%x, modectl=0x%x\n",
WDCDEBUG_PRINT(("%s: cfg=0x%x, modectl=0x%x\n",
WDCDEBUG_PRINT(("%s:%d: tim=0x%x\n", sc->sc_wdcdev.sc_dev.dv_xname,
WDCDEBUG_PRINT(("%s(%s:%d:%d): "
WDCDEBUG_PRINT(("%s: tim=0x%x\n", sc->sc_wdcdev.sc_dev.dv_xname,
WDCDEBUG_PRINT(("%s: conf register 0x%x\n",
WDCDEBUG_PRINT(("%s: new conf register 0x%x\n",
WDCDEBUG_PRINT(("rdc_chip_map: old PATR=0x%x, "
WDCDEBUG_PRINT(("rdc_chip_map: PATR=0x%x, "