3
* Copyright (c) 1999-2002 by The XFree86 Project, Inc.
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:
12
* The above copyright notice and this permission notice shall be included in
13
* all copies or substantial portions of the Software.
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.
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).
29
#ifndef _XF86_RESOURCES_H
31
#define _XF86_RESOURCES_H
35
#define _END {ResEnd,0,0}
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}
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}
51
#define _VGA_SHARED_MEM \
52
{ResShrMemBlock | ResBios | ResBus, 0x000A0000, 0x000AFFFF},\
53
{ResShrMemBlock | ResBios | ResBus, 0x000B0000, 0x000B7FFF},\
54
{ResShrMemBlock | ResBios | ResBus, 0x000B8000, 0x000BFFFF}
56
#define _VGA_SHARED_IO \
57
{ResShrIoBlock | ResBios | ResBus, 0x03B0, 0x03BB},\
58
{ResShrIoBlock | ResBios | ResBus, 0x03C0, 0x03DF}
61
* Exclusive unused VGA: resources unneeded but cannot be disabled.
62
* Like old Millennium.
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}
72
* Shared unused VGA: resources unneeded but cannot be disabled
73
* independently. This is used to determine if a device needs RAC.
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}
83
* Sparse versions of the above for those adapters that respond to all ISA
84
* aliases of VGA ports.
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}
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}
102
#define _8514_EXCLUSIVE \
103
{ResExcIoSparse | ResBios | ResBus, 0x02E8, 0x03F8}
105
#define _8514_SHARED \
106
{ResShrIoSparse | ResBios | ResBus, 0x02E8, 0x03F8}
108
/* Predefined resources */
109
extern resRange resVgaExclusive[];
110
extern resRange resVgaShared[];
111
extern resRange resVgaIoShared[];
112
extern resRange resVgaMemShared[];
113
extern resRange resVgaUnusedExclusive[];
114
extern resRange resVgaUnusedShared[];
115
extern resRange resVgaSparseExclusive[];
116
extern resRange resVgaSparseShared[];
117
extern resRange res8514Exclusive[];
118
extern resRange res8514Shared[];
120
/* Less misleading aliases for xf86SetOperatingState() */
121
#define resVgaMem resVgaMemShared
122
#define resVgaIo resVgaIoShared
123
#define resVga resVgaShared
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
131
#define _PCI_AVOID_PC_STYLE \
132
{ResExcIoSparse | ResBus, 0x0100, 0x0300},\
133
{ResExcIoSparse | ResBus, 0x0200, 0x0200},\
134
{ResExcMemBlock | ResBus, 0xA0000,0xFFFFF}
136
#define RES_UNDEFINED NULL