1/* 2 * Copyright 1997 through 2004 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org 3 * 4 * Permission to use, copy, modify, distribute, and sell this software and its 5 * documentation for any purpose is hereby granted without fee, provided that 6 * the above copyright notice appear in all copies and that both that copyright 7 * notice and this permission notice appear in supporting documentation, and 8 * that the name of Marc Aurele La France not be used in advertising or 9 * publicity pertaining to distribution of the software without specific, 10 * written prior permission. Marc Aurele La France makes no representations 11 * about the suitability of this software for any purpose. It is provided 12 * "as-is" without express or implied warranty. 13 * 14 * MARC AURELE LA FRANCE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO 16 * EVENT SHALL MARC AURELE LA FRANCE BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 * PERFORMANCE OF THIS SOFTWARE. 21 */ 22 23#ifdef HAVE_CONFIG_H 24#include "config.h" 25#endif 26 27#include "ati.h" 28#include "ativersion.h" 29 30/* Module loader interface */ 31 32static XF86ModuleVersionInfo ATIVersionRec = 33{ 34 ATI_DRIVER_NAME, 35 MODULEVENDORSTRING, 36 MODINFOSTRING1, 37 MODINFOSTRING2, 38 XORG_VERSION_CURRENT, 39 ATI_VERSION_MAJOR, ATI_VERSION_MINOR, ATI_VERSION_PATCH, 40 ABI_CLASS_VIDEODRV, 41 ABI_VIDEODRV_VERSION, 42 MOD_CLASS_VIDEODRV, 43 {0, 0, 0, 0} 44}; 45 46/* 47 * ATISetup -- 48 * 49 * This function is called every time the module is loaded. 50 */ 51static pointer 52ATISetup 53( 54 pointer Module, 55 pointer Options, 56 int *ErrorMajor, 57 int *ErrorMinor 58) 59{ 60 static Bool Inited = FALSE; 61 62 if (!Inited) 63 { 64 Inited = TRUE; 65 ati_gdev_subdriver(Options); 66 } 67 68 return (pointer)1; 69} 70 71/* The following record must be called atiModuleData */ 72_X_EXPORT XF86ModuleData atiModuleData = 73{ 74 &ATIVersionRec, 75 ATISetup, 76 NULL 77}; 78