diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-05-01 22:07:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-05-01 22:07:43 +0000 |
commit | acb4271312c95b03a5a797b604f2841e1c46c399 (patch) | |
tree | 678c3755e08a4970a6e1b26f4ce0415eb7f56a50 /sys/dev | |
parent | 9428ee33f9f53c73a55b99a2820d91f96baa9c4c (diff) |
Print some capabilities.
ok deraadt@, patrick@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sdmmc/sdmmc.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmc.c b/sys/dev/sdmmc/sdmmc.c index 72b793e1d7a..c97669117e7 100644 --- a/sys/dev/sdmmc/sdmmc.c +++ b/sys/dev/sdmmc/sdmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc.c,v 1.41 2016/05/01 16:04:39 kettenis Exp $ */ +/* $OpenBSD: sdmmc.c,v 1.42 2016/05/01 22:07:42 kettenis Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -98,6 +98,18 @@ sdmmc_attach(struct device *parent, struct device *self, void *aux) struct sdmmcbus_attach_args *saa = aux; int error; + if (ISSET(saa->caps, SMC_CAPS_8BIT_MODE)) + printf(": 8-bit"); + else if (ISSET(saa->caps, SMC_CAPS_4BIT_MODE)) + printf(": 4-bit"); + else + printf(": 1-bit"); + if (ISSET(saa->caps, SMC_CAPS_SD_HIGHSPEED)) + printf(", sd high-speed"); + if (ISSET(saa->caps, SMC_CAPS_MMC_HIGHSPEED)) + printf(", mmc high-speed"); + if (ISSET(saa->caps, SMC_CAPS_DMA)) + printf(", dma"); printf("\n"); sc->sct = saa->sct; |