4 Original author: Michael Roßberg
6 Rewritten by: Joshua Wise
8 Description: Ambien is a kernel extension to disable sleep-on-clamshell.
10 Ambien is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 Ambien is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with Ambien; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include <IOKit/IOService.h>
26 #include <IOKit/IOWorkLoop.h>
27 #include <IOKit/IONotifier.h>
29 class Ambien : public IOService {
30 OSDeclareDefaultStructors(Ambien);
33 // driver startup and shutdown
34 virtual bool init(OSDictionary * = 0);
35 virtual bool start(IOService* provider);
36 virtual void stop(IOService* provider);
39 virtual IOWorkLoop* getWorkLoop();
40 virtual IOReturn message(UInt32 type, IOService *provider, void *arg);
41 virtual IOReturn setPowerState(unsigned long which, IOService *dev);
45 IOWorkLoop* _workLoop;