Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Adam Jackson
xserver
Commits
6bc50de0
Commit
6bc50de0
authored
Nov 15, 2007
by
Adam Jackson
💣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify system resource range setup.
osRes only existed to get copied into Acc. Waste of effort.
parent
e1ff14a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
21 deletions
+3
-21
hw/xfree86/common/xf86Bus.c
hw/xfree86/common/xf86Bus.c
+3
-20
hw/xfree86/common/xf86Bus.h
hw/xfree86/common/xf86Bus.h
+0
-1
No files found.
hw/xfree86/common/xf86Bus.c
View file @
6bc50de0
...
...
@@ -75,7 +75,6 @@ static resPtr AccReducers = NULL;
/* resource lists */
resPtr
Acc
=
NULL
;
resPtr
osRes
=
NULL
;
/* predefined special resources */
_X_EXPORT
resRange
resVgaExclusive
[]
=
{
_VGA_EXCLUSIVE
,
_END
};
...
...
@@ -1357,28 +1356,12 @@ xf86AddRangesToList(resPtr list, resRange *pRange, int entityIndex)
void
xf86ResourceBrokerInit
(
void
)
{
#if 0
resPtr resPci;
#endif
osRes
=
NULL
;
Acc
=
NULL
;
/* Get the ranges used exclusively by the system */
osRes
=
xf86AccResFromOS
(
osRes
);
xf86MsgVerb
(
X_INFO
,
3
,
"OS-reported resource ranges:
\n
"
);
xf86PrintResList
(
3
,
osRes
);
/* Bus dep initialization */
#if 0
resPci = ResourceBrokerInitPci(&osRes);
Acc = xf86JoinResLists(xf86DupResList(osRes), resPci);
#else
Acc
=
xf86DupResList
(
osRes
);
#endif
xf86MsgVerb
(
X_INFO
,
3
,
"All system resource ranges:
\n
"
);
Acc
=
xf86AccResFromOS
(
Acc
);
xf86MsgVerb
(
X_INFO
,
3
,
"System resource ranges:
\n
"
);
xf86PrintResList
(
3
,
Acc
);
}
#define MEM_ALIGN (1024 * 1024)
...
...
hw/xfree86/common/xf86Bus.h
View file @
6bc50de0
...
...
@@ -132,7 +132,6 @@ extern int xf86NumEntities;
extern
xf86AccessRec
AccessNULL
;
extern
BusRec
primaryBus
;
extern
resPtr
Acc
;
extern
resPtr
osRes
;
extern
resPtr
ResRange
;
extern
BusAccPtr
xf86BusAccInfo
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment