asmc.c (241856) | asmc.c (241885) |
---|---|
1/*- 2 * Copyright (c) 2007, 2008 Rui Paulo <rpaulo@FreeBSD.org> 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 --- 19 unchanged lines hidden (view full) --- 28/* 29 * Driver for Apple's System Management Console (SMC). 30 * SMC can be found on the MacBook, MacBook Pro and Mac Mini. 31 * 32 * Inspired by the Linux applesmc driver. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007, 2008 Rui Paulo <rpaulo@FreeBSD.org> 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 --- 19 unchanged lines hidden (view full) --- 28/* 29 * Driver for Apple's System Management Console (SMC). 30 * SMC can be found on the MacBook, MacBook Pro and Mac Mini. 31 * 32 * Inspired by the Linux applesmc driver. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/asmc/asmc.c 241856 2012-10-22 03:41:14Z eadler $"); | 36__FBSDID("$FreeBSD: head/sys/dev/asmc/asmc.c 241885 2012-10-22 13:06:09Z eadler $"); |
37 38#include <sys/param.h> 39#include <sys/bus.h> 40#include <sys/conf.h> 41#include <sys/kernel.h> 42#include <sys/lock.h> 43#include <sys/malloc.h> 44#include <sys/module.h> --- 241 unchanged lines hidden (view full) --- 286 return (NULL); 287} 288 289static int 290asmc_probe(device_t dev) 291{ 292 struct asmc_model *model; 293 | 37 38#include <sys/param.h> 39#include <sys/bus.h> 40#include <sys/conf.h> 41#include <sys/kernel.h> 42#include <sys/lock.h> 43#include <sys/malloc.h> 44#include <sys/module.h> --- 241 unchanged lines hidden (view full) --- 286 return (NULL); 287} 288 289static int 290asmc_probe(device_t dev) 291{ 292 struct asmc_model *model; 293 |
294 if (resource_disabled("asmc", 0)) 295 return (ENXIO); |
|
294 if (ACPI_ID_PROBE(device_get_parent(dev), dev, asmc_ids) == NULL) 295 return (ENXIO); 296 297 model = asmc_match(dev); 298 if (!model) { 299 device_printf(dev, "model not recognized\n"); 300 return (ENXIO); 301 } --- 931 unchanged lines hidden --- | 296 if (ACPI_ID_PROBE(device_get_parent(dev), dev, asmc_ids) == NULL) 297 return (ENXIO); 298 299 model = asmc_match(dev); 300 if (!model) { 301 device_printf(dev, "model not recognized\n"); 302 return (ENXIO); 303 } --- 931 unchanged lines hidden --- |