IOFramebufferUserClient.h [plain text]
#ifndef _IOKIT_IOFRAMEBUFFERUSERCLIENT_H
#define _IOKIT_IOFRAMEBUFFERUSERCLIENT_H
#include <IOKit/IOUserClient.h>
#include <IOKit/graphics/IOFramebuffer.h>
#include <IOKit/pci/IOAGPDevice.h>
class IOFramebufferUserClient : public IOUserClient
{
OSDeclareDefaultStructors(IOFramebufferUserClient)
public:
IOFramebuffer * owner;
IOFramebuffer * other;
virtual IOReturn clientClose( void );
virtual IOService * getService( void );
virtual IOReturn clientMemoryForType( UInt32 type,
IOOptionBits * options, IOMemoryDescriptor ** memory );
virtual IOReturn externalMethod( uint32_t selector, IOExternalMethodArguments * args,
IOExternalMethodDispatch * dispatch, OSObject * target, void * reference );
virtual IOReturn registerNotificationPort( mach_port_t, UInt32, UInt32 );
virtual IOReturn getNotificationSemaphore( UInt32 interruptType,
semaphore_t * semaphore );
virtual IOReturn connectClient( IOUserClient * other );
static IOFramebufferUserClient * withTask( task_t owningTask );
virtual bool start( IOService * provider );
virtual IOReturn setProperties( OSObject * properties );
};
class IOFramebufferSharedUserClient : public IOUserClient
{
OSDeclareDefaultStructors(IOFramebufferSharedUserClient)
private:
IOFramebuffer * owner;
public:
virtual void free();
virtual void release() const;
virtual IOReturn clientClose( void );
virtual IOService * getService( void );
virtual IOReturn clientMemoryForType( UInt32 type,
IOOptionBits * options, IOMemoryDescriptor ** memory );
virtual IOReturn getNotificationSemaphore( UInt32 notification_type,
semaphore_t * semaphore );
static IOFramebufferSharedUserClient * withTask( task_t owningTask );
virtual bool start( IOService * provider );
};
#endif