efb.h revision 1116
1116N/A/*
1116N/A * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
1116N/A *
1116N/A * Permission is hereby granted, free of charge, to any person obtaining a
1116N/A * copy of this software and associated documentation files (the "Software"),
1116N/A * to deal in the Software without restriction, including without limitation
1116N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1116N/A * and/or sell copies of the Software, and to permit persons to whom the
1116N/A * Software is furnished to do so, subject to the following conditions:
1116N/A *
1116N/A * The above copyright notice and this permission notice (including the next
1116N/A * paragraph) shall be included in all copies or substantial portions of the
1116N/A * Software.
1116N/A *
1116N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1116N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1116N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1116N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1116N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1116N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1116N/A * DEALINGS IN THE SOFTWARE.
1116N/A */
1116N/A
1116N/A#ifndef _EFB_H_
1116N/A#define _EFB_H_
1116N/A
1116N/A#include <sys/mman.h>
1116N/A#include "gfx_common.h"
1116N/A
1116N/Aextern pciVideoPtr EFBGetPciInfo(RADEONInfoPtr);
1116N/Aextern pointer EFBMapVidMem(ScrnInfoPtr, unsigned int, PCITAG,
1116N/A unsigned long, unsigned long);
1116N/Aextern void EFBUnmapVidMem(ScrnInfoPtr, pointer, unsigned long);
1116N/A
1116N/Aextern void EFBScreenInit(ScrnInfoPtr);
1116N/Aextern void EFBCloseScreen(ScrnInfoPtr);
1116N/Aextern DisplayModePtr efb_get_modes(xf86OutputPtr);
1116N/A
1116N/Aextern void EFBPreInitOutputConfiguration(ScrnInfoPtr, xf86CrtcConfigPtr);
1116N/A
1116N/A#endif /* _EFB_H_ */