p4tcc.c (241856) | p4tcc.c (241885) |
---|---|
1/*- 2 * Copyright (c) 2005 Nate Lawson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32 * Reference: Intel Developer's manual v.3 #245472-012 33 * 34 * The original version of this driver was written by Ted Unangst for 35 * OpenBSD and imported by Maxim Sobolev. It was rewritten by Nate Lawson 36 * for use with the cpufreq framework. 37 */ 38 39#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Nate Lawson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32 * Reference: Intel Developer's manual v.3 #245472-012 33 * 34 * The original version of this driver was written by Ted Unangst for 35 * OpenBSD and imported by Maxim Sobolev. It was rewritten by Nate Lawson 36 * for use with the cpufreq framework. 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/x86/cpufreq/p4tcc.c 241856 2012-10-22 03:41:14Z eadler $"); | 40__FBSDID("$FreeBSD: head/sys/x86/cpufreq/p4tcc.c 241885 2012-10-22 13:06:09Z eadler $"); |
41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/bus.h> 45#include <sys/cpu.h> 46#include <sys/kernel.h> 47#include <sys/module.h> 48 --- 85 unchanged lines hidden (view full) --- 134 */ 135 if (BUS_ADD_CHILD(parent, 10, "p4tcc", -1) == NULL) 136 device_printf(parent, "add p4tcc child failed\n"); 137} 138 139static int 140p4tcc_probe(device_t dev) 141{ | 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/bus.h> 45#include <sys/cpu.h> 46#include <sys/kernel.h> 47#include <sys/module.h> 48 --- 85 unchanged lines hidden (view full) --- 134 */ 135 if (BUS_ADD_CHILD(parent, 10, "p4tcc", -1) == NULL) 136 device_printf(parent, "add p4tcc child failed\n"); 137} 138 139static int 140p4tcc_probe(device_t dev) 141{ |
142 143 if (resource_disabled("p4tcc", 0)) 144 return (ENXIO); 145 |
|
142 device_set_desc(dev, "CPU Frequency Thermal Control"); 143 return (0); 144} 145 146static int 147p4tcc_attach(device_t dev) 148{ 149 struct p4tcc_softc *sc; --- 174 unchanged lines hidden --- | 146 device_set_desc(dev, "CPU Frequency Thermal Control"); 147 return (0); 148} 149 150static int 151p4tcc_attach(device_t dev) 152{ 153 struct p4tcc_softc *sc; --- 174 unchanged lines hidden --- |