-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathFakeIrisXEAccelDevice.hpp
More file actions
37 lines (23 loc) · 1.01 KB
/
FakeIrisXEAccelDevice.hpp
File metadata and controls
37 lines (23 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <IOKit/IOService.h>
#include <FakeIrisXEFramebuffer.hpp>
class FakeIrisXEAccelDevice final : public IOService {
OSDeclareDefaultStructors(FakeIrisXEAccelDevice)
public:
bool init(OSDictionary* dict = nullptr) override;
void free(void) override;
IOService* probe(IOService* provider, SInt32* score) override;
bool start(IOService* provider) override;
void stop(IOService* provider) override;
// Allow the SharedUserClient to find the FB (optional but handy)
FakeIrisXEFramebuffer* fFB{nullptr};
FakeIrisXEFramebuffer* getFramebuffer() const { return fFB; }
// newUserClient → create our shared client
IOReturn newUserClient(task_t owningTask,
void* securityID,
UInt32 type,
OSDictionary* properties,
IOUserClient** handler) override;
private:
void publishAccelProperties();
};