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