943N/A# Copyright (c) 2008, 2009, Oracle
and/or its affiliates. All rights reserved.
517N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A#
and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
1124N/Aindex 5c6e721..64377d3 100644
517N/A "\tIdentifier\t" BUILTIN_DEVICE_NAME "\n" \
517N/A+ * Allow setting an arbitrary number of options.
517N/A+ * Each option should be indented with a tab and newline terminated.
517N/A+#define BUILTIN_DEVICE_SECTION_PRE_OPT \
517N/A+ "Section \"Device\"\n" \
517N/A+ "\tIdentifier\t" BUILTIN_DEVICE_NAME "\n" \
517N/A+ "\tDriver\t\"%s\"\n" \
517N/A #define BUILTIN_DEVICE_SECTION_POST \
517N/A BUILTIN_DEVICE_SECTION_PRE \
517N/A BUILTIN_DEVICE_SECTION_POST
517N/A+/* Device section with options */
517N/A+#define BUILTIN_DEVICE_SECTION_OPT \
517N/A+ BUILTIN_DEVICE_SECTION_PRE_OPT \
517N/A+ BUILTIN_DEVICE_SECTION_POST
606N/A #define BUILTIN_SCREEN_NAME \
606N/A "\"Builtin Default %s Screen %d\""
1088N/A@@ -151,6 +170,14 @@ xf86AutoConfig(void)
606N/A listPossibleVideoDrivers(deviceList, 20);
606N/A for (p = deviceList; *p; p++) {
606N/A+ const char *nvidia_string = "nvidia";
606N/A+ const char *nvidia_opt_no_logo = "\tOption \"NoLogo\" \"True\"\n";
606N/A+ if (!strncmp(*p, nvidia_string, sizeof(nvidia_string)))
606N/A+ snprintf(buf, sizeof(buf), BUILTIN_DEVICE_SECTION_OPT,
606N/A+ *p, 0, *p, nvidia_opt_no_logo);
606N/A snprintf(buf, sizeof(buf), BUILTIN_DEVICE_SECTION, *p, 0, *p);
606N/A snprintf(buf, sizeof(buf), BUILTIN_SCREEN_SECTION, *p, 0, *p, 0);