Deleted Added
full compact
smist.c (182401) smist.c (187594)
1/*-
2 * Copyright (c) 2005 Bruno Ducrot
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 22 unchanged lines hidden (view full) ---

31 * Hiroshi Miura (function 0 of the GSI).
32 *
33 * Finally, the int 15h call interface was (partially) documented by Intel.
34 *
35 * Many thanks to Jon Noack for testing and debugging this driver.
36 */
37
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005 Bruno Ducrot
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 22 unchanged lines hidden (view full) ---

31 * Hiroshi Miura (function 0 of the GSI).
32 *
33 * Finally, the int 15h call interface was (partially) documented by Intel.
34 *
35 * Many thanks to Jon Noack for testing and debugging this driver.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/i386/cpufreq/smist.c 182401 2008-08-28 19:55:18Z jhb $");
39__FBSDID("$FreeBSD: head/sys/i386/cpufreq/smist.c 187594 2009-01-22 17:06:33Z jkim $");
40
41#include <sys/param.h>
42#include <sys/bus.h>
43#include <sys/cpu.h>
44#include <sys/kernel.h>
45#include <sys/module.h>
46#include <sys/systm.h>
47

--- 232 unchanged lines hidden (view full) ---

280{
281 struct piix4_pci_device *id;
282 device_t piix4 = NULL;
283
284 if (resource_disabled("ichst", 0))
285 return;
286
287 /* Check for a supported processor */
40
41#include <sys/param.h>
42#include <sys/bus.h>
43#include <sys/cpu.h>
44#include <sys/kernel.h>
45#include <sys/module.h>
46#include <sys/systm.h>
47

--- 232 unchanged lines hidden (view full) ---

280{
281 struct piix4_pci_device *id;
282 device_t piix4 = NULL;
283
284 if (resource_disabled("ichst", 0))
285 return;
286
287 /* Check for a supported processor */
288 if (strcmp(cpu_vendor, "GenuineIntel") != 0)
288 if (cpu_vendor_id != CPU_VENDOR_INTEL)
289 return;
290 switch (cpu_id & 0xff0) {
291 case 0x680: /* Pentium III [coppermine] */
292 case 0x6a0: /* Pentium III [Tualatin] */
293 break;
294 default:
295 return;
296 }

--- 217 unchanged lines hidden ---
289 return;
290 switch (cpu_id & 0xff0) {
291 case 0x680: /* Pentium III [coppermine] */
292 case 0x6a0: /* Pentium III [Tualatin] */
293 break;
294 default:
295 return;
296 }

--- 217 unchanged lines hidden ---