added two tweak options to nv.settings: unhide_fw and pgm_panel
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8318 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9105df34ca
commit
586747b4de
@ -40,6 +40,8 @@ static status_t init_common(int the_fd) {
|
||||
// LOG is now available, si !NULL
|
||||
LOG(4,("init_common: logmask 0x%08x, memory %dMB, hardcursor %d, usebios %d, switchhead %d, force_pci %d\n",
|
||||
si->settings.logmask, si->settings.memory, si->settings.hardcursor, si->settings.usebios, si->settings.switchhead, si->settings.force_pci));
|
||||
LOG(4,("init_common: dumprom %d, unhide_fw %d, pgm_panel %d\n",
|
||||
si->settings.dumprom, si->settings.unhide_fw, si->settings.pgm_panel));
|
||||
|
||||
/*Check for R4.5.0 and if it is running, use work around*/
|
||||
{
|
||||
|
@ -258,6 +258,7 @@ static settings current_settings = { // see comments in nv.settings
|
||||
// for driver
|
||||
DRIVER_PREFIX ".accelerant",
|
||||
false, // dumprom
|
||||
false, // unhide_fw
|
||||
// for accelerant
|
||||
0x00000000, // logmask
|
||||
0, // memory
|
||||
@ -265,6 +266,7 @@ static settings current_settings = { // see comments in nv.settings
|
||||
false, // hardcursor
|
||||
false, // switchhead
|
||||
false, // force_pci
|
||||
true, // pgm_panel
|
||||
};
|
||||
|
||||
static void dumprom (void *rom, uint32 size)
|
||||
@ -377,6 +379,7 @@ init_driver(void) {
|
||||
strcpy (current_settings.accelerant, item);
|
||||
}
|
||||
current_settings.dumprom = get_driver_boolean_parameter (settings_handle, "dumprom", false, false);
|
||||
current_settings.unhide_fw = get_driver_boolean_parameter (settings_handle, "unhide_fw", false, false);
|
||||
|
||||
// for accelerant
|
||||
item = get_driver_parameter (settings_handle, "logmask", "0x00000000", "0x00000000");
|
||||
@ -391,6 +394,7 @@ init_driver(void) {
|
||||
current_settings.usebios = get_driver_boolean_parameter (settings_handle, "usebios", false, false);
|
||||
current_settings.switchhead = get_driver_boolean_parameter (settings_handle, "switchhead", false, false);
|
||||
current_settings.force_pci = get_driver_boolean_parameter (settings_handle, "force_pci", false, false);
|
||||
current_settings.pgm_panel = get_driver_boolean_parameter (settings_handle, "pgm_panel", false, false);
|
||||
|
||||
unload_driver_settings (settings_handle);
|
||||
}
|
||||
|
@ -8,21 +8,25 @@
|
||||
# accelerant "nv.accelerant"
|
||||
|
||||
# nv.accelerant parameters
|
||||
usebios false # if true rely on bios to coldstart the card: not functional (yet)
|
||||
usebios false # if true rely on bios to coldstart the card: not working yet, so always true
|
||||
#memory 2 # in MB, override builtin memory size detection
|
||||
hardcursor true # if true use on-chip cursor capabilities
|
||||
#logmask 0x00000000 # nothing logged, is default
|
||||
#logmask 0x08000604 # log overlay use in full
|
||||
#logmask 0x00000000 # nothing logged, is default
|
||||
#logmask 0x08000604 # log overlay use in full
|
||||
#logmask 0xffffffff # log everything
|
||||
dumprom false # dump bios rom in ~/nv.rom
|
||||
switchhead false # switch head assignment (dualhead cards only)
|
||||
force_pci false # block AGP mode use if true (AGP cards only)
|
||||
|
||||
# WARNING: tweak alert! modify stuff below on your own risk...
|
||||
unhide_fw false # if true 'unhide' cards AGP fastwrite support on cards that hide, it
|
||||
pgm_panel true # if false don't program DVI and laptop panel pixelclocks (refreshrates)
|
||||
#--------- that's all.
|
||||
|
||||
|
||||
#logmask setup info:
|
||||
#log level select:
|
||||
#logmask 0x0000000x # lowest digit: bitmask to select logging level.
|
||||
#logmask 0x0000000x # lowest digit: bitmask to select logging level.
|
||||
|
||||
#log modules select:
|
||||
#logmask 0xxxxxxxx0 # highest 7 digits: bitmask to select individual modules to log.
|
||||
|
Loading…
x
Reference in New Issue
Block a user