1/* 2 * Copyright 2000 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 "radeon_probe.h" 28#include "radeon_version.h" 29 30#include "xf86.h" 31 32/* Module loader interface for subsidiary driver module */ 33 34static XF86ModuleVersionInfo RADEONVersionRec = 35{ 36 RADEON_DRIVER_NAME, 37 MODULEVENDORSTRING, 38 MODINFOSTRING1, 39 MODINFOSTRING2, 40 XORG_VERSION_CURRENT, 41 RADEON_VERSION_MAJOR, RADEON_VERSION_MINOR, RADEON_VERSION_PATCH, 42 ABI_CLASS_VIDEODRV, 43 ABI_VIDEODRV_VERSION, 44 MOD_CLASS_VIDEODRV, 45 {0, 0, 0, 0} 46}; 47 48/* 49 * RADEONSetup -- 50 * 51 * This function is called every time the module is loaded. 52 */ 53static pointer 54RADEONSetup 55( 56 pointer Module, 57 pointer Options, 58 int *ErrorMajor, 59 int *ErrorMinor 60) 61{ 62 static Bool Inited = FALSE; 63 64 if (!Inited) { 65 Inited = TRUE; 66 xf86AddDriver(&RADEON, Module, HaveDriverFuncs); 67 } 68 69 return (pointer)TRUE; 70} 71 72/* The following record must be called radeonModuleData */ 73_X_EXPORT XF86ModuleData radeonModuleData = 74{ 75 &RADEONVersionRec, 76 RADEONSetup, 77 NULL 78}; 79