-/* $OpenBSD: rtsx.c,v 1.11 2015/03/14 03:38:47 jsg Exp $ */
+/* $OpenBSD: rtsx.c,v 1.12 2015/04/28 07:55:13 stsp Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
*/
/*
- * Realtek RTS5209/RTS5227/RTS5229/RTL8402 Card Reader driver.
+ * Realtek RTS52xx/RTL84xx Card Reader driver.
*/
#include <sys/param.h>
-/* $OpenBSD: rtsxvar.h,v 1.3 2014/08/19 17:55:03 phessler Exp $ */
+/* $OpenBSD: rtsxvar.h,v 1.4 2015/04/28 07:55:13 stsp Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
#define RTSX_F_CARD_PRESENT 0x01
#define RTSX_F_SDIO_SUPPORT 0x02
#define RTSX_F_5209 0x04
-#define RTSX_F_5227 0x08
-#define RTSX_F_5229 0x10
-#define RTSX_F_5229_TYPE_C 0x20
+#define RTSX_F_5229 0x08
+#define RTSX_F_5229_TYPE_C 0x10
#endif
-/* $OpenBSD: rtsx_pci.c,v 1.11 2015/03/28 18:07:56 jcs Exp $ */
+/* $OpenBSD: rtsx_pci.c,v 1.12 2015/04/28 07:55:13 stsp Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
struct pci_attach_args *pa = aux;
/*
- * Explicitly match the UNDEFINED device class only. Some RTS5902
+ * Explicitly match the UNDEFINED device class only. Some RTS5209
* devices advertise a SYSTEM/SDHC class in addition to the UNDEFINED
* device class. Let sdhc(4) handle the SYSTEM/SDHC ones.
*/
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5227 ||
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5229 ||
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTS5249 ||
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8402 ||
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8411 ||
- PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8411B ||
- PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8402)
+ PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_REALTEK_RTL8411B)
return 1;
return 0;
case PCI_PRODUCT_REALTEK_RTS5209:
flags = RTSX_F_5209;
break;
- case PCI_PRODUCT_REALTEK_RTS5227:
- flags = RTSX_F_5227;
- break;
case PCI_PRODUCT_REALTEK_RTS5229:
case PCI_PRODUCT_REALTEK_RTS5249:
flags = RTSX_F_5229;