xfIOKit.h revision b8e299dddd091ae24e0c08c45d91b8f937bd14d2
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync/*
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync xfIOKit.h
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync IOKit specific functions and definitions
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync*/
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync/*
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * Copyright (c) 2001-2002 Torrey T. Lyons. All Rights Reserved.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync *
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * copy of this software and associated documentation files (the "Software"),
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * to deal in the Software without restriction, including without limitation
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * and/or sell copies of the Software, and to permit persons to whom the
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * Software is furnished to do so, subject to the following conditions:
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync *
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * The above copyright notice and this permission notice shall be included in
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * all copies or substantial portions of the Software.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync *
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * DEALINGS IN THE SOFTWARE.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync *
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * Except as contained in this notice, the name(s) of the above copyright
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * holders shall not be used in advertising or otherwise to promote the sale,
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync * use or other dealings in this Software without prior written authorization.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync */
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync/* $XFree86: xc/programs/Xserver/hw/darwin/xfIOKit.h,v 1.10 2003/03/15 18:02:08 torrey Exp $ */
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#ifndef _XFIOKIT_H
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#define _XFIOKIT_H
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#include <pthread.h>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#include <IOKit/graphics/IOFramebufferShared.h>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#include <X11/Xproto.h>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#include "screenint.h"
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#include "darwin.h"
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsynctypedef struct {
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync io_connect_t fbService;
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync StdFBShmem_t *cursorShmem;
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync unsigned char *framebuffer;
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync unsigned char *shadowPtr;
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync} XFIOKitScreenRec, *XFIOKitScreenPtr;
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#define XFIOKIT_SCREEN_PRIV(pScreen) \
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync ((XFIOKitScreenPtr)pScreen->devPrivates[xfIOKitScreenIndex].ptr)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncextern int xfIOKitScreenIndex; // index into pScreen.devPrivates
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncextern io_connect_t xfIOKitInputConnect;
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncBool XFIOKitInitCursor(ScreenPtr pScreen);
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#endif /* _XFIOKIT_H */
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync