diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2008-12-02 13:06:27 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2008-12-02 13:06:27 -0800 |
commit | c209ba8b41c96c2737662ff7b18aef5c7ceb7760 (patch) | |
tree | def16b36126b156fdf6b207d0f3a03c21933b2dc | |
parent | c4e199b93eea189ec6bcab354de5aad850e6742d (diff) |
180.11180.11
-rw-r--r-- | src/gtk+-2.x/ctkevent.c | 4 | ||||
-rw-r--r-- | src/libXNVCtrl/NVCtrl.h | 22 | ||||
-rw-r--r-- | src/parse.c | 4 |
3 files changed, 27 insertions, 3 deletions
diff --git a/src/gtk+-2.x/ctkevent.c b/src/gtk+-2.x/ctkevent.c index f56fa10..7dac617 100644 --- a/src/gtk+-2.x/ctkevent.c +++ b/src/gtk+-2.x/ctkevent.c @@ -264,6 +264,8 @@ static void ctk_event_class_init(CtkEventClass *ctk_event_class) MAKE_SIGNAL(NV_CTRL_PIXMAP_CACHE); MAKE_SIGNAL(NV_CTRL_PIXMAP_CACHE_ROUNDING_SIZE_KB); MAKE_SIGNAL(NV_CTRL_IS_GVO_DISPLAY); + MAKE_SIGNAL(NV_CTRL_PCI_ID); + MAKE_SIGNAL(NV_CTRL_GVO_FULL_RANGE_COLOR); #undef MAKE_SIGNAL @@ -274,7 +276,7 @@ static void ctk_event_class_init(CtkEventClass *ctk_event_class) * knows about. */ -#if NV_CTRL_LAST_ATTRIBUTE != NV_CTRL_IS_GVO_DISPLAY +#if NV_CTRL_LAST_ATTRIBUTE != NV_CTRL_GVO_FULL_RANGE_COLOR #warning "There are attributes that do not emit signals!" #endif diff --git a/src/libXNVCtrl/NVCtrl.h b/src/libXNVCtrl/NVCtrl.h index 79af282..a9e4f75 100644 --- a/src/libXNVCtrl/NVCtrl.h +++ b/src/libXNVCtrl/NVCtrl.h @@ -2276,8 +2276,28 @@ #define NV_CTRL_IS_GVO_DISPLAY_FALSE 0 #define NV_CTRL_IS_GVO_DISPLAY_TRUE 1 +/* + * NV_CTRL_PCI_ID - Returns the PCI vendor and device ID of the GPU. + * + * NV_CTRL_PCI_ID is a "packed" integer attribute; the PCI vendor ID is stored + * in the upper 16 bits of the integer, and the PCI device ID is stored in the + * lower 16 bits of the integer. + */ + +#define NV_CTRL_PCI_ID 301 /* R--G */ + +/* + * NV_CTRL_GVO_FULL_RANGE_COLOR - Allow full range color data [4-1019] + * without clamping to [64-940]. + */ + +#define NV_CTRL_GVO_FULL_RANGE_COLOR 302 /* R-- */ +#define NV_CTRL_GVO_FULL_RANGE_COLOR_DISABLED 0 +#define NV_CTRL_GVO_FULL_RANGE_COLOR_ENABLED 1 + +#define NV_CTRL_LAST_ATTRIBUTE NV_CTRL_GVO_FULL_RANGE_COLOR + -#define NV_CTRL_LAST_ATTRIBUTE NV_CTRL_IS_GVO_DISPLAY /**************************************************************************/ diff --git a/src/parse.c b/src/parse.c index 95cd9e0..016f8dc 100644 --- a/src/parse.c +++ b/src/parse.c @@ -146,6 +146,7 @@ AttributeTableEntry attributeTable[] = { { "PCIBus", NV_CTRL_PCI_BUS, N, "Returns the PCI bus number the GPU is using." }, { "PCIDevice", NV_CTRL_PCI_DEVICE, N, "Returns the PCI device number the GPU is using." }, { "PCIFunc", NV_CTRL_PCI_FUNCTION, N, "Returns the PCI function number the GPU is using." }, + { "PCIID", NV_CTRL_PCI_ID, N|P, "Returns the PCI vendor and device ID of the GPU." }, { "GPUErrors", NV_CTRL_NUM_GPU_ERRORS_RECOVERED, N, "Returns the number of GPU errors occurred." }, { "GPUPowerSource", NV_CTRL_GPU_POWER_SOURCE, N, "Reports the type of power source of the GPU." }, { "GPUCurrentPerfMode", NV_CTRL_GPU_CURRENT_PERFORMANCE_MODE, N, "Reports the current performance mode of the GPU driving the X screen. Running a 3D app, for example, will change this performance mode if Adaptive Clocking is enabled." }, @@ -208,6 +209,7 @@ AttributeTableEntry attributeTable[] = { { "GvoCompositeNumKeyRanges", NV_CTRL_GVO_COMPOSITE_NUM_KEY_RANGES, I|N, "Returns the number of ranges available for each channel (Y/Luma, Cr, and Cb) that are used SDI compositing through color keying." }, { "GvoFirmwareVersion", NV_CTRL_STRING_GVO_FIRMWARE_VERSION, I|S|N, "Indicates the version of the firmware on the GVO device." }, { "GvoSyncToDisplay", NV_CTRL_GVO_SYNC_TO_DISPLAY, I|N, "Controls synchronization of the non-SDI display to the SDI display when both are active." }, + { "GvoFullRangeColor", NV_CTRL_GVO_FULL_RANGE_COLOR, I, "Allow full range color data [4-1019]. If disabled, color data is clamped to [64-940]." }, { "IsGvoDisplay", NV_CTRL_IS_GVO_DISPLAY, N|D, "Returns whether or not the given display device is driven by the GVO device." }, /* Display */ @@ -283,7 +285,7 @@ AttributeTableEntry attributeTable[] = { * about. */ -#if NV_CTRL_LAST_ATTRIBUTE != NV_CTRL_IS_GVO_DISPLAY +#if NV_CTRL_LAST_ATTRIBUTE != NV_CTRL_GVO_FULL_RANGE_COLOR #warning "Have you forgotten to add a new integer attribute to attributeTable?" #endif |