summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorBogdan Diaconescu <b_diaconescu@yahoo.com>2005-04-17 23:26:36 +0000
committerBogdan Diaconescu <b_diaconescu@yahoo.com>2005-04-17 23:26:36 +0000
commit2b363e02c7c122f07e6fc406fb8ee52d97b55cad (patch)
treee200369b967480bd5b70c014fc68f86e7c55eef4 /src/radeon_driver.c
parent6286efeba564c63ec198c091e4bba22027586901 (diff)
Added new options for the ATI driver: RageTheatreMicrocPath and
RageTheatreMicrocType
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 3265aa8..e0a488e 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -169,6 +169,8 @@ typedef enum {
OPTION_RAGE_THEATRE_COMPOSITE_PORT,
OPTION_RAGE_THEATRE_SVIDEO_PORT,
OPTION_TUNER_TYPE,
+ OPTION_RAGE_THEATRE_MICROC_PATH,
+ OPTION_RAGE_THEATRE_MICROC_TYPE,
#endif
#ifdef RENDER
OPTION_RENDER_ACCEL,
@@ -226,6 +228,8 @@ static const OptionInfoRec RADEONOptions[] = {
{ OPTION_RAGE_THEATRE_COMPOSITE_PORT, "RageTheatreCompositePort", OPTV_INTEGER, {0}, FALSE },
{ OPTION_RAGE_THEATRE_SVIDEO_PORT, "RageTheatreSVideoPort", OPTV_INTEGER, {0}, FALSE },
{ OPTION_TUNER_TYPE, "TunerType", OPTV_INTEGER, {0}, FALSE },
+ { OPTION_RAGE_THEATRE_MICROC_PATH, "RageTheatreMicrocPath", OPTV_STRING, {0}, FALSE },
+ { OPTION_RAGE_THEATRE_MICROC_TYPE, "RageTheatreMicrocType", OPTV_STRING, {0}, FALSE },
#endif
#ifdef RENDER
{ OPTION_RENDER_ACCEL, "RenderAccel", OPTV_BOOLEAN, {0}, FALSE },
@@ -4445,6 +4449,9 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
xf86Int10InfoPtr pInt10 = NULL;
void *int10_save = NULL;
const char *s;
+ char* microc_path = NULL;
+ char* microc_type = NULL;
+
RADEONTRACE(("RADEONPreInit\n"));
if (pScrn->numEntities != 1) return FALSE;
@@ -4651,6 +4658,23 @@ Bool RADEONPreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Attempt to set tuner type to invalid value. Disabling setting\n");
info->tunerType=-1;
}
+
+ if((microc_path = xf86GetOptValString(info->Options, OPTION_RAGE_THEATRE_MICROC_PATH)) != NULL)
+ {
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "Rage Theatre Microcode path was specified as %s\n", microc_path);
+ info->RageTheatreMicrocPath = microc_path;
+ } else {
+ info->RageTheatreMicrocPath= NULL;
+ }
+
+ if((microc_type = xf86GetOptValString(info->Options, OPTION_RAGE_THEATRE_MICROC_TYPE)) != NULL)
+ {
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "Rage Theatre Microcode type was specified as %s\n", microc_type);
+ info->RageTheatreMicrocType = microc_type;
+ } else {
+ info->RageTheatreMicrocType= NULL;
+ }
+
#endif
info->DispPriority = 1;