1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Resources.h,v 1.14 2002/07/24 01:47:24 tsi Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _XF86_RESOURCES_H
|
---|
4 |
|
---|
5 | #define _XF86_RESOURCES_H
|
---|
6 |
|
---|
7 | #include "xf86str.h"
|
---|
8 |
|
---|
9 | #define _END {ResEnd,0,0}
|
---|
10 |
|
---|
11 | #define _VGA_EXCLUSIVE \
|
---|
12 | {ResExcMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
|
---|
13 | {ResExcMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
|
---|
14 | {ResExcMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
|
---|
15 | {ResExcIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
|
---|
16 | {ResExcIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
|
---|
17 |
|
---|
18 | #define _VGA_SHARED \
|
---|
19 | {ResShrMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
|
---|
20 | {ResShrMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
|
---|
21 | {ResShrMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
|
---|
22 | {ResShrIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
|
---|
23 | {ResShrIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
|
---|
24 |
|
---|
25 | #define _VGA_SHARED_MEM \
|
---|
26 | {ResShrMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
|
---|
27 | {ResShrMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
|
---|
28 | {ResShrMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF}
|
---|
29 |
|
---|
30 | #define _VGA_SHARED_IO \
|
---|
31 | {ResShrIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
|
---|
32 | {ResShrIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
|
---|
33 |
|
---|
34 | /*
|
---|
35 | * Exclusive unused VGA: resources unneeded but cannot be disabled.
|
---|
36 | * Like old Millennium.
|
---|
37 | */
|
---|
38 | #define _VGA_EXCLUSIVE_UNUSED \
|
---|
39 | {ResExcUusdMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
|
---|
40 | {ResExcUusdMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
|
---|
41 | {ResExcUusdMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
|
---|
42 | {ResExcUusdIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
|
---|
43 | {ResExcUusdIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
|
---|
44 |
|
---|
45 | /*
|
---|
46 | * Shared unused VGA: resources unneeded but cannot be disabled
|
---|
47 | * independently. This is used to determine if a device needs RAC.
|
---|
48 | */
|
---|
49 | #define _VGA_SHARED_UNUSED \
|
---|
50 | {ResShrUusdMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
|
---|
51 | {ResShrUusdMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
|
---|
52 | {ResShrUusdMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
|
---|
53 | {ResShrUusdIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
|
---|
54 | {ResShrUusdIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
|
---|
55 |
|
---|
56 | /*
|
---|
57 | * Sparse versions of the above for those adapters that respond to all ISA
|
---|
58 | * aliases of VGA ports.
|
---|
59 | */
|
---|
60 | #define _VGA_EXCLUSIVE_SPARSE \
|
---|
61 | {ResExcMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
|
---|
62 | {ResExcMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
|
---|
63 | {ResExcMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
|
---|
64 | {ResExcIoSparse | ResBios | ResBus, 0x03B0, 0x03F8},\
|
---|
65 | {ResExcIoSparse | ResBios | ResBus, 0x03B8, 0x03FC},\
|
---|
66 | {ResExcIoSparse | ResBios | ResBus, 0x03C0, 0x03E0}
|
---|
67 |
|
---|
68 | #define _VGA_SHARED_SPARSE \
|
---|
69 | {ResShrMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
|
---|
70 | {ResShrMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
|
---|
71 | {ResShrMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF},\
|
---|
72 | {ResShrIoSparse | ResBios | ResBus, 0x03B0, 0x03F8},\
|
---|
73 | {ResShrIoSparse | ResBios | ResBus, 0x03B8, 0x03FC},\
|
---|
74 | {ResShrIoSparse | ResBios | ResBus, 0x03C0, 0x03E0}
|
---|
75 |
|
---|
76 | #define _8514_EXCLUSIVE \
|
---|
77 | {ResExcIoSparse | ResBios | ResBus, 0x02E8, 0x03F8}
|
---|
78 |
|
---|
79 | #define _8514_SHARED \
|
---|
80 | {ResShrIoSparse | ResBios | ResBus, 0x02E8, 0x03F8}
|
---|
81 |
|
---|
82 | /* Predefined resources */
|
---|
83 | extern resRange resVgaExclusive[];
|
---|
84 | extern resRange resVgaShared[];
|
---|
85 | extern resRange resVgaIoShared[];
|
---|
86 | extern resRange resVgaMemShared[];
|
---|
87 | extern resRange resVgaUnusedExclusive[];
|
---|
88 | extern resRange resVgaUnusedShared[];
|
---|
89 | extern resRange resVgaSparseExclusive[];
|
---|
90 | extern resRange resVgaSparseShared[];
|
---|
91 | extern resRange res8514Exclusive[];
|
---|
92 | extern resRange res8514Shared[];
|
---|
93 |
|
---|
94 | /* Less misleading aliases for xf86SetOperatingState() */
|
---|
95 | #define resVgaMem resVgaMemShared
|
---|
96 | #define resVgaIo resVgaIoShared
|
---|
97 | #define resVga resVgaShared
|
---|
98 |
|
---|
99 | /* Old style names */
|
---|
100 | #define RES_EXCLUSIVE_VGA resVgaExclusive
|
---|
101 | #define RES_SHARED_VGA resVgaShared
|
---|
102 | #define RES_EXCLUSIVE_8514 res8514Exclusive
|
---|
103 | #define RES_SHARED_8514 res8514Shared
|
---|
104 |
|
---|
105 | #define _PCI_AVOID_PC_STYLE \
|
---|
106 | {ResExcIoSparse | ResBus, 0x0100, 0x0300},\
|
---|
107 | {ResExcIoSparse | ResBus, 0x0200, 0x0200},\
|
---|
108 | {ResExcMemBlock | ResBus, 0xA0000,0xFFFFF}
|
---|
109 |
|
---|
110 | extern resRange PciAvoid[];
|
---|
111 |
|
---|
112 | #define RES_UNDEFINED NULL
|
---|
113 | #endif
|
---|