132b578d3Smrg/* -*- mode: c; c-basic-offset: 3 -*- */
232b578d3Smrg/*
332b578d3Smrg * Copyright 2000 Gareth Hughes
432b578d3Smrg * All Rights Reserved.
532b578d3Smrg *
632b578d3Smrg * Permission is hereby granted, free of charge, to any person obtaining a
732b578d3Smrg * copy of this software and associated documentation files (the "Software"),
832b578d3Smrg * to deal in the Software without restriction, including without limitation
932b578d3Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1032b578d3Smrg * and/or sell copies of the Software, and to permit persons to whom the
1132b578d3Smrg * Software is furnished to do so, subject to the following conditions:
1232b578d3Smrg *
1332b578d3Smrg * The above copyright notice and this permission notice (including the next
1432b578d3Smrg * paragraph) shall be included in all copies or substantial portions of the
1532b578d3Smrg * Software.
1632b578d3Smrg *
1732b578d3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1832b578d3Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1932b578d3Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
2032b578d3Smrg * GARETH HUGHES BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
2132b578d3Smrg * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2232b578d3Smrg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2332b578d3Smrg */
2432b578d3Smrg
2532b578d3Smrg/*
2632b578d3Smrg * Authors:
2732b578d3Smrg *   Gareth Hughes <gareth@valinux.com>
2832b578d3Smrg *   Leif Delgass <ldelgass@retinalburn.net>
2932b578d3Smrg */
3032b578d3Smrg
3132b578d3Smrg#ifndef __ATIDRI_H__
3232b578d3Smrg#define __ATIDRI_H__ 1
3332b578d3Smrg
3432b578d3Smrg/* DRI driver defaults */
3532b578d3Smrg#define ATI_DEFAULT_AGP_SIZE     8 /* MB (must be a power of 2 and > 4MB) */
3632b578d3Smrg#define ATI_DEFAULT_AGP_MODE     1
3732b578d3Smrg#define ATI_DEFAULT_BUFFER_SIZE  2 /* MB (must be page aligned) */
3832b578d3Smrg
3932b578d3Smrg#define ATI_AGP_MAX_MODE	 2
4032b578d3Smrg
410b0ce0bfSmrg/* Imported from the radeon suspend code written by cpbotha@ieee.org
4232b578d3Smrg * to enable suspend/resume support for the mach64 card.
4332b578d3Smrg */
4432b578d3Smrgextern void ATIDRIResume(ScreenPtr pScreen);
4532b578d3Smrgextern Bool ATIDRIScreenInit(ScreenPtr);
4632b578d3Smrgextern Bool ATIDRIFinishScreenInit(ScreenPtr);
4732b578d3Smrgextern void ATIDRICloseScreen(ScreenPtr);
4832b578d3Smrg
4932b578d3Smrg#endif /* __ATIDRI_H__ */
50