]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * The contents of this file constitute Original Code as defined in and | |
7 | * are subject to the Apple Public Source License Version 1.1 (the | |
8 | * "License"). You may not use this file except in compliance with the | |
9 | * License. Please obtain a copy of the License at | |
10 | * http://www.apple.com/publicsource and read it before using this file. | |
11 | * | |
12 | * This Original Code and all software distributed under the License are | |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the | |
17 | * License for the specific language governing rights and limitations | |
18 | * under the License. | |
19 | * | |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. | |
24 | * | |
25 | */ | |
26 | ||
27 | #ifndef _IOKIT_GOSSAMERCPU_H | |
28 | #define _IOKIT_GOSSAMERCPU_H | |
29 | ||
30 | #include <IOKit/IOCPU.h> | |
0b4e3aa0 | 31 | #include <IOKit/pci/IOPCIBridge.h> |
1c79356b | 32 | |
1c79356b A |
33 | #include "Gossamer.h" |
34 | ||
35 | class GossamerCPU : public IOCPU | |
36 | { | |
37 | OSDeclareDefaultStructors(GossamerCPU); | |
38 | ||
39 | private: | |
40 | IOService *pmu; | |
41 | IOService *heathrow; | |
42 | IOCPUInterruptController *cpuIC; | |
43 | static UInt32 restartAddress; | |
0b4e3aa0 | 44 | IOPCIBridge *grackle; |
1c79356b A |
45 | IOPCI2PCIBridge *pci2pciBridge; |
46 | unsigned long tbLow, tbHigh, tbHigh2; | |
47 | GossamerPE *gossamerPE; | |
48 | ||
49 | // callPlatformFunction symbols | |
50 | const OSSymbol *heathrow_sleepState; | |
51 | const OSSymbol *heathrow_set_light; | |
52 | const OSSymbol *cuda_check_any_interrupt; | |
53 | const OSSymbol *usb_remote_wakeup; | |
54 | ||
55 | protected: | |
56 | virtual IOService *findIOInterface(char*); | |
57 | virtual void ipiHandler(void *refCon, void *nub, int source); | |
58 | ||
59 | public: | |
60 | virtual bool start(IOService *provider); | |
61 | virtual void initCPU(bool boot); | |
62 | virtual void quiesceCPU(void); | |
63 | virtual const OSSymbol* getCPUName(void); | |
64 | virtual kern_return_t startCPU(vm_offset_t start_paddr, | |
65 | vm_offset_t arg_paddr); | |
66 | virtual void haltCPU(void); | |
67 | virtual void saveTimeBase(bool); | |
68 | }; | |
69 | ||
70 | #endif /* ! _IOKIT_GOSSAMERCPU_H */ |