Changeset 2423
- Timestamp:
- 04/07/04 20:36:19 (5 years ago)
- Files:
-
- lm-sensors/trunk/kernel/busses/dmi_scan.c (modified) (4 diffs)
- lm-sensors/trunk/kernel/busses/dmi_scan.h (deleted)
- lm-sensors/trunk/kernel/busses/i2c-piix4.c (modified) (2 diffs)
- lm-sensors/trunk/mkpatch/FILES (modified) (1 diff)
- lm-sensors/trunk/mkpatch/INCLUDES (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/kernel/busses/dmi_scan.c
r1931 r2423 17 17 #include <asm/system.h> 18 18 #include "version.h" 19 #include "dmi_scan.h" 19 20 int is_unsafe_smbus; 21 EXPORT_SYMBOL(is_unsafe_smbus); 20 22 21 23 struct dmi_header … … 24 26 u8 length; 25 27 u16 handle; 28 }; 29 30 enum 31 { 32 DMI_BIOS_VENDOR, 33 DMI_BIOS_VERSION, 34 DMI_BIOS_DATE, 35 DMI_SYS_VENDOR, 36 DMI_PRODUCT_NAME, 37 DMI_PRODUCT_VERSION, 38 DMI_BOARD_VENDOR, 39 DMI_BOARD_NAME, 40 DMI_BOARD_VERSION, 41 DMI_STRING_MAX 26 42 }; 27 43 … … 212 228 } 213 229 214 void__init dmi_scan_mach(void)230 int __init dmi_scan_mach(void) 215 231 { 216 232 int err; … … 221 237 else 222 238 printk("dmi_scan.o: SM BIOS found\n"); 239 240 if(dmi_ident[DMI_SYS_VENDOR] != NULL 241 && strncmp(dmi_ident[DMI_SYS_VENDOR], "IBM", 3) == 0) 242 is_unsafe_smbus = 1; 243 return 0; 223 244 } 224 245 225 246 MODULE_DESCRIPTION("SM BIOS DMI Scanner"); 226 247 MODULE_LICENSE("GPL"); 227 EXPORT_SYMBOL(dmi_ident); 228 EXPORT_SYMBOL(dmi_scan_mach);248 249 module_init(dmi_scan_mach); lm-sensors/trunk/kernel/busses/i2c-piix4.c
r2248 r2423 42 42 #include <asm/io.h> 43 43 #include "version.h" 44 #include "dmi_scan.h"45 44 46 45 … … 117 116 * Get DMI information. 118 117 */ 119 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,34)120 void dmi_scan_mach(void);121 #endif122 118 123 119 static int __devinit ibm_dmi_probe(void) 124 120 { 125 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,34)126 121 extern int is_unsafe_smbus; 127 122 return is_unsafe_smbus; 128 #else129 #define IBM_SIGNATURE "IBM"130 dmi_scan_mach();131 if(dmi_ident[DMI_SYS_VENDOR] == NULL)132 return 0;133 if(strncmp(dmi_ident[DMI_SYS_VENDOR], IBM_SIGNATURE,134 strlen(IBM_SIGNATURE)) == 0)135 return 1;136 return 0;137 #endif138 123 } 139 124 #endif lm-sensors/trunk/mkpatch/FILES
r2241 r2423 1 1 kernel/busses/dmi_scan.c drivers/i2c/dmi_scan.c 2 kernel/busses/dmi_scan.h include/linux/dmi_scan.h3 2 kernel/busses/i2c-ali1535.c drivers/i2c/i2c-ali1535.c 4 3 kernel/busses/i2c-ali15x3.c drivers/i2c/i2c-ali15x3.c lm-sensors/trunk/mkpatch/INCLUDES
r1810 r2423 1 "dmi_scan.h" <linux/dmi_scan.h>2 1 "sensors_compat.h" <linux/sensors_compat.h> 3 2 "sensors_vid.h" <linux/sensors_vid.h>
