summaryrefslogtreecommitdiff
path: root/src/nv_const.h
diff options
context:
space:
mode:
authorBen Skeggs <darktama@iinet.net.au>2006-09-03 06:41:52 +1000
committerBen Skeggs <darktama@iinet.net.au>2006-09-03 06:41:52 +1000
commit6fb7a63bf5d4f046583f9d14862c16ec5979a318 (patch)
treeba8457a499465322d6a8b86ee94524497195fac9 /src/nv_const.h
parente49d561d2328eeac7691661e28955a882bba2192 (diff)
Config options for cmdbuf location/size.
Will default to putting the cmdbuf in AGP (except for PowerPC) if an AGP card is detected. Won't currently be detected because something is wrong DRM-size. If you have an AGP card you can manually specify 'FBLocation "AGP"' in xorg.conf to make it work. Needs an updated DRM to have any effect.
Diffstat (limited to 'src/nv_const.h')
-rw-r--r--src/nv_const.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/nv_const.h b/src/nv_const.h
index 74990bd..b327145 100644
--- a/src/nv_const.h
+++ b/src/nv_const.h
@@ -7,5 +7,41 @@
#define NV_NAME "NOUVEAU"
#define NV_DRIVER_NAME "nouveau"
+typedef enum {
+ OPTION_SW_CURSOR,
+ OPTION_HW_CURSOR,
+ OPTION_NOACCEL,
+ OPTION_SHADOW_FB,
+ OPTION_ROTATE,
+ OPTION_VIDEO_KEY,
+ OPTION_FLAT_PANEL,
+ OPTION_FP_DITHER,
+ OPTION_CRTC_NUMBER,
+ OPTION_FP_SCALE,
+ OPTION_FP_TWEAK,
+ OPTION_ACCELMETHOD,
+ OPTION_CMDBUF_LOCATION,
+ OPTION_CMDBUF_SIZE
+} NVOpts;
+
+
+static const OptionInfoRec NVOptions[] = {
+ { OPTION_SW_CURSOR, "SWcursor", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_HW_CURSOR, "HWcursor", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_NOACCEL, "NoAccel", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_SHADOW_FB, "ShadowFB", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_ROTATE, "Rotate", OPTV_ANYSTR, {0}, FALSE },
+ { OPTION_VIDEO_KEY, "VideoKey", OPTV_INTEGER, {0}, FALSE },
+ { OPTION_FLAT_PANEL, "FlatPanel", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_FP_DITHER, "FPDither", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_CRTC_NUMBER, "CrtcNumber", OPTV_INTEGER, {0}, FALSE },
+ { OPTION_FP_SCALE, "FPScale", OPTV_BOOLEAN, {0}, FALSE },
+ { OPTION_FP_TWEAK, "FPTweak", OPTV_INTEGER, {0}, FALSE },
+ { OPTION_ACCELMETHOD, "AccelMethod", OPTV_STRING, {0}, FALSE },
+ { OPTION_CMDBUF_LOCATION, "CBLocation", OPTV_STRING, {0}, FALSE },
+ { OPTION_CMDBUF_SIZE, "CBSize", OPTV_INTEGER, {0}, FALSE },
+ { -1, NULL, OPTV_NONE, {0}, FALSE }
+};
+
#endif /* __NV_CONST_H__ */