VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/cards.h@ 62425

最後變更 在這個檔案從62425是 43272,由 vboxsync 提交於 12 年 前

Additions/x11: more original X server headers.

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.9 KB
 
1/*
2 * Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * CONECTIVA LINUX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
19 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 *
22 * Except as contained in this notice, the name of Conectiva Linux shall
23 * not be used in advertising or otherwise to promote the sale, use or other
24 * dealings in this Software without prior written authorization from
25 * Conectiva Linux.
26 *
27 * Author: Paulo César Pereira de Andrade <[email protected]>
28 *
29 */
30
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>
34#include <ctype.h>
35#include <X11/Xfuncproto.h>
36#include <X11/Xmd.h>
37#include <X11/Intrinsic.h>
38#include <X11/Xmu/SysUtil.h>
39
40#ifndef _xf86cfg_cards_h
41#define _xf86cfg_cards_h
42
43#ifdef USE_MODULES
44#ifdef CARDS_PRIVATE
45#include "loader.h"
46
47#include "xf86PciStr.h"
48#include "xf86PciIds.h"
49#endif /* CARDS_PRIVATE */
50#endif /* USE_MODULES */
51
52/* Flags in CardsEntry */
53#define F_NOCLOCKPROBE 0x1 /* Never probe clocks of the card. */
54#define F_UNSUPPORTED 0x2 /* Card is not supported (only VGA). */
55
56/*
57 * Types
58 */
59typedef struct {
60 char *name; /* Name of the card. */
61 char *chipset; /* Chipset (decriptive). */
62 char *server; /* Server identifier. */
63 char *driver; /* Driver identifier. */
64 char *ramdac; /* Ramdac identifier. */
65 char *clockchip; /* Clockchip identifier. */
66 char *dacspeed; /* DAC speed rating. */
67 int flags;
68 char *lines; /* Additional Device section lines. */
69 char *see; /* Must resolve in a last step.
70 * Allow more than one SEE entry? */
71} CardsEntry;
72
73extern CardsEntry **CardsDB;
74extern int NumCardsEntry;
75
76/*
77 * Prototypes
78 */
79void ReadCardsDatabase(void);
80CardsEntry *LookupCard(char*);
81char **GetCardNames(int*);
82char **FilterCardNames(char*, int*);
83#ifdef USE_MODULES
84void InitializePciInfo(void);
85typedef struct _xf86cfgModuleOptions *xf86cfgModuleOptionsPtr;
86void CheckChipsets(xf86cfgModuleOptionsPtr, int*);
87#endif
88
89#endif /* _xf86cfg_cards_h */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette