From 239156bc7f7f4a0b2351251823b3f674b53a417a Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 19 Apr 2023 01:42:14 +0000 Subject: handle some more manufacturer ids. --- sys/dev/sdmmc/sdmmc_scsi.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys') 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 @@ -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; -- cgit v1.2.3