VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/xf86Resources.h@ 37801

最後變更 在這個檔案從37801是 25078,由 vboxsync 提交於 15 年 前

Additions/x11/x11include: exported and set eol-style on new headers

  • 屬性 svn:eol-style 設為 native
檔案大小: 5.5 KB
 
1
2/*
3 * Copyright (c) 1999-2002 by The XFree86 Project, Inc.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
22 *
23 * Except as contained in this notice, the name of the copyright holder(s)
24 * and author(s) shall not be used in advertising or otherwise to promote
25 * the sale, use or other dealings in this Software without prior written
26 * authorization from the copyright holder(s) and author(s).
27 */
28
29#ifndef _XF86_RESOURCES_H
30
31#define _XF86_RESOURCES_H
32
33#include "xf86str.h"
34
35#define _END {ResEnd,0,0}
36
37#define _VGA_EXCLUSIVE \
38 {ResExcMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
39 {ResExcMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
40 {ResExcMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
41 {ResExcIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
42 {ResExcIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
43
44#define _VGA_SHARED \
45 {ResShrMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
46 {ResShrMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
47 {ResShrMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
48 {ResShrIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
49 {ResShrIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
50
51#define _VGA_SHARED_MEM \
52 {ResShrMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
53 {ResShrMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
54 {ResShrMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF}
55
56#define _VGA_SHARED_IO \
57 {ResShrIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
58 {ResShrIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
59
60/*
61 * Exclusive unused VGA: resources unneeded but cannot be disabled.
62 * Like old Millennium.
63 */
64#define _VGA_EXCLUSIVE_UNUSED \
65 {ResExcUusdMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
66 {ResExcUusdMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
67 {ResExcUusdMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
68 {ResExcUusdIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
69 {ResExcUusdIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
70
71/*
72 * Shared unused VGA: resources unneeded but cannot be disabled
73 * independently. This is used to determine if a device needs RAC.
74 */
75#define _VGA_SHARED_UNUSED \
76 {ResShrUusdMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
77 {ResShrUusdMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
78 {ResShrUusdMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
79 {ResShrUusdIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
80 {ResShrUusdIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
81
82/*
83 * Sparse versions of the above for those adapters that respond to all ISA
84 * aliases of VGA ports.
85 */
86#define _VGA_EXCLUSIVE_SPARSE \
87 {ResExcMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
88 {ResExcMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
89 {ResExcMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
90 {ResExcIoSparse | ResBios | ResBus, 0x03B0, 0x03F8},\
91 {ResExcIoSparse | ResBios | ResBus, 0x03B8, 0x03FC},\
92 {ResExcIoSparse | ResBios | ResBus, 0x03C0, 0x03E0}
93
94#define _VGA_SHARED_SPARSE \
95 {ResShrMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
96 {ResShrMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
97 {ResShrMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
98 {ResShrIoSparse | ResBios | ResBus, 0x03B0, 0x03F8},\
99 {ResShrIoSparse | ResBios | ResBus, 0x03B8, 0x03FC},\
100 {ResShrIoSparse | ResBios | ResBus, 0x03C0, 0x03E0}
101
102#define _8514_EXCLUSIVE \
103 {ResExcIoSparse | ResBios | ResBus, 0x02E8, 0x03F8}
104
105#define _8514_SHARED \
106 {ResShrIoSparse | ResBios | ResBus, 0x02E8, 0x03F8}
107
108/* Predefined resources */
109extern resRange resVgaExclusive[];
110extern resRange resVgaShared[];
111extern resRange resVgaIoShared[];
112extern resRange resVgaMemShared[];
113extern resRange resVgaUnusedExclusive[];
114extern resRange resVgaUnusedShared[];
115extern resRange resVgaSparseExclusive[];
116extern resRange resVgaSparseShared[];
117extern resRange res8514Exclusive[];
118extern resRange res8514Shared[];
119
120/* Less misleading aliases for xf86SetOperatingState() */
121#define resVgaMem resVgaMemShared
122#define resVgaIo resVgaIoShared
123#define resVga resVgaShared
124
125/* Old style names */
126#define RES_EXCLUSIVE_VGA resVgaExclusive
127#define RES_SHARED_VGA resVgaShared
128#define RES_EXCLUSIVE_8514 res8514Exclusive
129#define RES_SHARED_8514 res8514Shared
130
131#define _PCI_AVOID_PC_STYLE \
132 {ResExcIoSparse | ResBus, 0x0100, 0x0300},\
133 {ResExcIoSparse | ResBus, 0x0200, 0x0200},\
134 {ResExcMemBlock | ResBus, 0xA0000,0xFFFFF}
135
136extern resRange PciAvoid[];
137
138#define RES_UNDEFINED NULL
139#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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