You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
759 B
28 lines
759 B
#ifndef TinyGPUDriverUserClient_h
|
|
#define TinyGPUDriverUserClient_h
|
|
|
|
#include <DriverKit/IOUserClient.iig>
|
|
|
|
enum TinyGPURPC
|
|
{
|
|
ReadCfg,
|
|
WriteCfg,
|
|
Reset
|
|
};
|
|
|
|
class TinyGPUDriverUserClient : public IOUserClient
|
|
{
|
|
public:
|
|
virtual bool init() final;
|
|
virtual void free() final;
|
|
|
|
virtual kern_return_t Start(IOService* in_provider) final;
|
|
virtual kern_return_t Stop(IOService* in_provider) final;
|
|
|
|
virtual kern_return_t ExternalMethod(uint64_t in_selector, IOUserClientMethodArguments* in_arguments, const IOUserClientMethodDispatch* in_dispatch, OSObject* in_target, void* in_reference) final;
|
|
|
|
virtual kern_return_t CopyClientMemoryForType(
|
|
uint64_t type, uint64_t *options, IOMemoryDescriptor **memory) final;
|
|
};
|
|
|
|
#endif /* TinyGPUDriverUserClient_h */
|
|
|