summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2023-04-19 01:42:14 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2023-04-19 01:42:14 +0000
commit239156bc7f7f4a0b2351251823b3f674b53a417a (patch)
tree2fdf91e82970b01828058c8329c38941fa5fb3e3
parent82faea9e705d2b346f6575ef47e7edfb734bac2a (diff)
handle some more manufacturer ids.
-rw-r--r--sys/dev/sdmmc/sdmmc_scsi.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c
index 13cb9101085..c3bd7ccbcd1 100644
--- a/sys/dev/sdmmc/sdmmc_scsi.c
+++ b/sys/dev/sdmmc/sdmmc_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_scsi.c,v 1.61 2022/04/16 19:19:59 naddy Exp $ */
+/* $OpenBSD: sdmmc_scsi.c,v 1.62 2023/04/19 01:42:13 dlg Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -411,6 +411,7 @@ sdmmc_inquiry(struct scsi_xfer *xs)
memset(revision, 0, sizeof(revision));
switch (tgt->card->cid.mid) {
case 0x02:
+ case 0x03:
case 0x45:
strlcpy(vendor, "Sandisk", sizeof(vendor));
break;
@@ -423,9 +424,15 @@ sdmmc_inquiry(struct scsi_xfer *xs)
case 0x15:
strlcpy(vendor, "Samsung", sizeof(vendor));
break;
+ case 0x27:
+ strlcpy(vendor, "Apacer", sizeof(vendor));
+ break;
case 0x70:
strlcpy(vendor, "Kingston", sizeof(vendor));
break;
+ case 0x90:
+ strlcpy(vendor, "Hynix", sizeof(vendor));
+ break;
default:
strlcpy(vendor, "SD/MMC", sizeof(vendor));
break;