Remove xf86GetResourcesImplicitly
This commit is contained in:
parent
599a0f3f1e
commit
51e105ccc3
|
@ -1439,24 +1439,6 @@ RemoveOverlaps(resPtr target, resPtr list, Bool pow2Alignment, Bool useEstimated
|
||||||
* Resource registration
|
* Resource registration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static resList
|
|
||||||
xf86GetResourcesImplicitly(int entityIndex)
|
|
||||||
{
|
|
||||||
if (entityIndex >= xf86NumEntities) return NULL;
|
|
||||||
|
|
||||||
switch (xf86Entities[entityIndex]->bus.type) {
|
|
||||||
case BUS_ISA:
|
|
||||||
case BUS_NONE:
|
|
||||||
case BUS_SBUS:
|
|
||||||
return NULL;
|
|
||||||
case BUS_PCI:
|
|
||||||
return NULL;
|
|
||||||
case BUS_last:
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
convertRange2Host(int entityIndex, resRange *pRange)
|
convertRange2Host(int entityIndex, resRange *pRange)
|
||||||
{
|
{
|
||||||
|
@ -1487,8 +1469,7 @@ xf86ConvertListToHost(int entityIndex, resPtr list)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* xf86RegisterResources() -- attempts to register listed resources.
|
* xf86RegisterResources() -- attempts to register listed resources.
|
||||||
* If list is NULL it tries to obtain resources implicitly. Function
|
* Returns a resPtr listing all resources not successfully registered.
|
||||||
* returns a resPtr listing all resources not successfully registered.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_X_EXPORT resPtr
|
_X_EXPORT resPtr
|
||||||
|
@ -1498,12 +1479,8 @@ xf86RegisterResources(int entityIndex, resList list, unsigned long access)
|
||||||
resRange range;
|
resRange range;
|
||||||
resList list_f = NULL;
|
resList list_f = NULL;
|
||||||
|
|
||||||
if (!list) {
|
if (!list)
|
||||||
list = xf86GetResourcesImplicitly(entityIndex);
|
return NULL;
|
||||||
/* these resources have to be in host address space already */
|
|
||||||
if (!list) return NULL;
|
|
||||||
list_f = list;
|
|
||||||
}
|
|
||||||
|
|
||||||
while(list->type != ResEnd) {
|
while(list->type != ResEnd) {
|
||||||
range = *list;
|
range = *list;
|
||||||
|
|
Loading…
Reference in New Issue