handle some more manufacturer ids.
authordlg <dlg@openbsd.org>
Wed, 19 Apr 2023 01:42:13 +0000 (01:42 +0000)
committerdlg <dlg@openbsd.org>
Wed, 19 Apr 2023 01:42:13 +0000 (01:42 +0000)
sys/dev/sdmmc/sdmmc_scsi.c

index 13cb910..c3bd7cc 100644 (file)
@@ -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;