diff options
author | 2006-07-19 23:56:03 +0000 | |
---|---|---|
committer | 2006-07-19 23:56:03 +0000 | |
commit | f669793361ff6c386a7384c052caf8f0a0dc5f2c (patch) | |
tree | 3190c1f6600ed1edb705a6e1946dce4d7f84e95a | |
parent | no more "wine gin"; confirmed by many (diff) | |
download | wireguard-openbsd-f669793361ff6c386a7384c052caf8f0a0dc5f2c.tar.xz wireguard-openbsd-f669793361ff6c386a7384c052caf8f0a0dc5f2c.zip |
add some more debugging code.
-rw-r--r-- | sys/dev/sdmmc/sdhc.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdhc.c b/sys/dev/sdmmc/sdhc.c index 847dcc06c4c..e6fc16bd2e7 100644 --- a/sys/dev/sdmmc/sdhc.c +++ b/sys/dev/sdmmc/sdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdhc.c,v 1.9 2006/07/18 04:10:35 uwe Exp $ */ +/* $OpenBSD: sdhc.c,v 1.10 2006/07/19 23:56:03 fgsch Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -331,6 +331,8 @@ sdhc_host_reset(sdmmc_chipset_handle_t sch) sdmmc_delay(10000); } if (timo == 0) { + DPRINTF(("%s: timeout reg=%#x\n", HDEVNAME(hp), + HREAD1(hp, SDHC_SOFTWARE_RESET))); HWRITE1(hp, SDHC_SOFTWARE_RESET, 0); /* return ETIMEDOUT; but see above. */ } @@ -605,8 +607,9 @@ sdhc_start_command(struct sdhc_host *hp, struct sdmmc_command *cmd) int error; int s; - DPRINTF(("%s: start cmd %u arg=%#x proc=%#x\"%s\"\n", - HDEVNAME(hp), cmd->c_opcode, cmd->c_arg, curproc, + DPRINTF(("%s: start cmd %u arg=%#x data=%#x dlen=%d flags=%#x " + "proc=%#x \"%s\"\n", HDEVNAME(hp), cmd->c_opcode, cmd->c_arg, + cmd->c_data, cmd->c_datalen, cmd->c_flags, curproc, curproc ? curproc->p_comm : "")); /* @@ -681,6 +684,9 @@ sdhc_start_command(struct sdhc_host *hp, struct sdmmc_command *cmd) /* XXX: Set DMA start address if SHF_USE_DMA is set. */ + DPRINTF(("%s: writing cmd: blksize=%d blkcount=%d mode=%#x cmd=%#x\n", + HDEVNAME(hp), blksize, blkcount, mode, command)); + /* * Start a CPU data transfer. Writing to the high order byte * of the SDHC_COMMAND register triggers the SD command. (1.5) |