| @@ -1,38 +1,38 @@ | | | @@ -1,38 +1,38 @@ |
1 | /* $NetBSD: ichsmb.c,v 1.55 2018/02/28 22:36:02 pgoyette Exp $ */ | | 1 | /* $NetBSD: ichsmb.c,v 1.56 2018/03/02 08:25:53 msaitoh Exp $ */ |
2 | /* $OpenBSD: ichiic.c,v 1.18 2007/05/03 09:36:26 dlg Exp $ */ | | 2 | /* $OpenBSD: ichiic.c,v 1.18 2007/05/03 09:36:26 dlg 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.55 2018/02/28 22:36:02 pgoyette Exp $"); | | 25 | __KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.56 2018/03/02 08:25:53 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/proc.h> | | 32 | #include <sys/proc.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> |
| @@ -117,26 +117,28 @@ ichsmb_match(device_t parent, cfdata_t m | | | @@ -117,26 +117,28 @@ ichsmb_match(device_t parent, cfdata_t m |
117 | case PCI_PRODUCT_INTEL_82801JI_SMB: | | 117 | case PCI_PRODUCT_INTEL_82801JI_SMB: |
118 | case PCI_PRODUCT_INTEL_3400_SMB: | | 118 | case PCI_PRODUCT_INTEL_3400_SMB: |
119 | case PCI_PRODUCT_INTEL_6SERIES_SMB: | | 119 | case PCI_PRODUCT_INTEL_6SERIES_SMB: |
120 | case PCI_PRODUCT_INTEL_7SERIES_SMB: | | 120 | case PCI_PRODUCT_INTEL_7SERIES_SMB: |
121 | case PCI_PRODUCT_INTEL_8SERIES_SMB: | | 121 | case PCI_PRODUCT_INTEL_8SERIES_SMB: |
122 | case PCI_PRODUCT_INTEL_9SERIES_SMB: | | 122 | case PCI_PRODUCT_INTEL_9SERIES_SMB: |
123 | case PCI_PRODUCT_INTEL_100SERIES_SMB: | | 123 | case PCI_PRODUCT_INTEL_100SERIES_SMB: |
124 | case PCI_PRODUCT_INTEL_100SERIES_LP_SMB: | | 124 | case PCI_PRODUCT_INTEL_100SERIES_LP_SMB: |
125 | case PCI_PRODUCT_INTEL_2HS_SMB: | | 125 | case PCI_PRODUCT_INTEL_2HS_SMB: |
126 | case PCI_PRODUCT_INTEL_CORE4G_M_SMB: | | 126 | case PCI_PRODUCT_INTEL_CORE4G_M_SMB: |
127 | case PCI_PRODUCT_INTEL_CORE5G_M_SMB: | | 127 | case PCI_PRODUCT_INTEL_CORE5G_M_SMB: |
128 | case PCI_PRODUCT_INTEL_BAYTRAIL_PCU_SMB: | | 128 | case PCI_PRODUCT_INTEL_BAYTRAIL_PCU_SMB: |
129 | case PCI_PRODUCT_INTEL_BSW_PCU_SMB: | | 129 | case PCI_PRODUCT_INTEL_BSW_PCU_SMB: |
| | | 130 | case PCI_PRODUCT_INTEL_APL_SMB: |
| | | 131 | case PCI_PRODUCT_INTEL_GLK_SMB: |
130 | case PCI_PRODUCT_INTEL_C600_SMBUS: | | 132 | case PCI_PRODUCT_INTEL_C600_SMBUS: |
131 | case PCI_PRODUCT_INTEL_C600_SMB_0: | | 133 | case PCI_PRODUCT_INTEL_C600_SMB_0: |
132 | case PCI_PRODUCT_INTEL_C600_SMB_1: | | 134 | case PCI_PRODUCT_INTEL_C600_SMB_1: |
133 | case PCI_PRODUCT_INTEL_C600_SMB_2: | | 135 | case PCI_PRODUCT_INTEL_C600_SMB_2: |
134 | case PCI_PRODUCT_INTEL_C610_SMB: | | 136 | case PCI_PRODUCT_INTEL_C610_SMB: |
135 | case PCI_PRODUCT_INTEL_C620_SMB: | | 137 | case PCI_PRODUCT_INTEL_C620_SMB: |
136 | case PCI_PRODUCT_INTEL_C620_SMB_S: | | 138 | case PCI_PRODUCT_INTEL_C620_SMB_S: |
137 | case PCI_PRODUCT_INTEL_EP80579_SMB: | | 139 | case PCI_PRODUCT_INTEL_EP80579_SMB: |
138 | case PCI_PRODUCT_INTEL_DH89XXCC_SMB: | | 140 | case PCI_PRODUCT_INTEL_DH89XXCC_SMB: |
139 | case PCI_PRODUCT_INTEL_DH89XXCL_SMB: | | 141 | case PCI_PRODUCT_INTEL_DH89XXCL_SMB: |
140 | case PCI_PRODUCT_INTEL_C2000_PCU_SMBUS: | | 142 | case PCI_PRODUCT_INTEL_C2000_PCU_SMBUS: |
141 | case PCI_PRODUCT_INTEL_C3K_SMBUS_LEGACY: | | 143 | case PCI_PRODUCT_INTEL_C3K_SMBUS_LEGACY: |
142 | return 1; | | 144 | return 1; |