Mon Jul 12 12:59:54 2021 UTC ()
 Add Jasper Lake support.


(msaitoh)
diff -r1.70 -r1.71 src/sys/dev/pci/ichsmb.c

cvs diff -r1.70 -r1.71 src/sys/dev/pci/ichsmb.c (expand / switch to unified diff)

--- src/sys/dev/pci/ichsmb.c 2021/04/24 23:36:57 1.70
+++ src/sys/dev/pci/ichsmb.c 2021/07/12 12:59:54 1.71
@@ -1,38 +1,38 @@ @@ -1,38 +1,38 @@
1/* $NetBSD: ichsmb.c,v 1.70 2021/04/24 23:36:57 thorpej Exp $ */ 1/* $NetBSD: ichsmb.c,v 1.71 2021/07/12 12:59:54 msaitoh Exp $ */
2/* $OpenBSD: ichiic.c,v 1.44 2020/10/07 11:23:05 jsg Exp $ */ 2/* $OpenBSD: ichiic.c,v 1.44 2020/10/07 11:23:05 jsg Exp $ */
3 3
4/* 4/*
5 * Copyright (c) 2005, 2006 Alexander Yurchenko <grange@openbsd.org> 5 * Copyright (c) 2005, 2006 Alexander Yurchenko <grange@openbsd.org>
6 * 6 *
7 * Permission to use, copy, modify, and distribute this software for any 7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above 8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies. 9 * copyright notice and this permission notice appear in all copies.
10 * 10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */ 18 */
19 19
20/* 20/*
21 * Intel ICH SMBus controller driver. 21 * Intel ICH SMBus controller driver.
22 */ 22 */
23 23
24#include <sys/cdefs.h> 24#include <sys/cdefs.h>
25__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.70 2021/04/24 23:36:57 thorpej Exp $"); 25__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.71 2021/07/12 12:59:54 msaitoh Exp $");
26 26
27#include <sys/param.h> 27#include <sys/param.h>
28#include <sys/device.h> 28#include <sys/device.h>
29#include <sys/errno.h> 29#include <sys/errno.h>
30#include <sys/kernel.h> 30#include <sys/kernel.h>
31#include <sys/mutex.h> 31#include <sys/mutex.h>
32#include <sys/condvar.h> 32#include <sys/condvar.h>
33#include <sys/module.h> 33#include <sys/module.h>
34 34
35#include <sys/bus.h> 35#include <sys/bus.h>
36 36
37#include <dev/pci/pcidevs.h> 37#include <dev/pci/pcidevs.h>
38#include <dev/pci/pcireg.h> 38#include <dev/pci/pcireg.h>
@@ -125,26 +125,27 @@ ichsmb_match(device_t parent, cfdata_t m @@ -125,26 +125,27 @@ ichsmb_match(device_t parent, cfdata_t m
125 case PCI_PRODUCT_INTEL_100SERIES_SMB: 125 case PCI_PRODUCT_INTEL_100SERIES_SMB:
126 case PCI_PRODUCT_INTEL_100SERIES_LP_SMB: 126 case PCI_PRODUCT_INTEL_100SERIES_LP_SMB:
127 case PCI_PRODUCT_INTEL_2HS_SMB: 127 case PCI_PRODUCT_INTEL_2HS_SMB:
128 case PCI_PRODUCT_INTEL_3HS_SMB: 128 case PCI_PRODUCT_INTEL_3HS_SMB:
129 case PCI_PRODUCT_INTEL_3HS_U_SMB: 129 case PCI_PRODUCT_INTEL_3HS_U_SMB:
130 case PCI_PRODUCT_INTEL_4HS_H_SMB: 130 case PCI_PRODUCT_INTEL_4HS_H_SMB:
131 case PCI_PRODUCT_INTEL_CORE4G_M_SMB: 131 case PCI_PRODUCT_INTEL_CORE4G_M_SMB:
132 case PCI_PRODUCT_INTEL_CORE5G_M_SMB: 132 case PCI_PRODUCT_INTEL_CORE5G_M_SMB:
133 case PCI_PRODUCT_INTEL_CMTLK_SMB: 133 case PCI_PRODUCT_INTEL_CMTLK_SMB:
134 case PCI_PRODUCT_INTEL_BAYTRAIL_PCU_SMB: 134 case PCI_PRODUCT_INTEL_BAYTRAIL_PCU_SMB:
135 case PCI_PRODUCT_INTEL_BSW_PCU_SMB: 135 case PCI_PRODUCT_INTEL_BSW_PCU_SMB:
136 case PCI_PRODUCT_INTEL_APL_SMB: 136 case PCI_PRODUCT_INTEL_APL_SMB:
137 case PCI_PRODUCT_INTEL_GLK_SMB: 137 case PCI_PRODUCT_INTEL_GLK_SMB:
 138 case PCI_PRODUCT_INTEL_JSL_SMB:
138 case PCI_PRODUCT_INTEL_C600_SMBUS: 139 case PCI_PRODUCT_INTEL_C600_SMBUS:
139 case PCI_PRODUCT_INTEL_C600_SMB_0: 140 case PCI_PRODUCT_INTEL_C600_SMB_0:
140 case PCI_PRODUCT_INTEL_C600_SMB_1: 141 case PCI_PRODUCT_INTEL_C600_SMB_1:
141 case PCI_PRODUCT_INTEL_C600_SMB_2: 142 case PCI_PRODUCT_INTEL_C600_SMB_2:
142 case PCI_PRODUCT_INTEL_C610_SMB: 143 case PCI_PRODUCT_INTEL_C610_SMB:
143 case PCI_PRODUCT_INTEL_C620_SMB: 144 case PCI_PRODUCT_INTEL_C620_SMB:
144 case PCI_PRODUCT_INTEL_C620_SMB_S: 145 case PCI_PRODUCT_INTEL_C620_SMB_S:
145 case PCI_PRODUCT_INTEL_EP80579_SMB: 146 case PCI_PRODUCT_INTEL_EP80579_SMB:
146 case PCI_PRODUCT_INTEL_DH89XXCC_SMB: 147 case PCI_PRODUCT_INTEL_DH89XXCC_SMB:
147 case PCI_PRODUCT_INTEL_DH89XXCL_SMB: 148 case PCI_PRODUCT_INTEL_DH89XXCL_SMB:
148 case PCI_PRODUCT_INTEL_C2000_PCU_SMBUS: 149 case PCI_PRODUCT_INTEL_C2000_PCU_SMBUS:
149 case PCI_PRODUCT_INTEL_C3K_SMBUS_LEGACY: 150 case PCI_PRODUCT_INTEL_C3K_SMBUS_LEGACY:
150 case PCI_PRODUCT_INTEL_495_YU_SMB: 151 case PCI_PRODUCT_INTEL_495_YU_SMB: