xfree86: drop unused xf86EnableAGP()
This function doesn't seem to be used anymore, neither inside the xserver, nor by any drivers - so it can be dropped. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1404>
This commit is contained in:
parent
ba870af892
commit
a1c1f8b9d8
|
@ -352,23 +352,3 @@ xf86UnbindGARTMemory(int screenNum, int key)
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* XXX Interface may change. */
|
||||
Bool
|
||||
xf86EnableAGP(int screenNum, CARD32 mode)
|
||||
{
|
||||
agp_setup setup;
|
||||
|
||||
if (!GARTInit(screenNum) || acquiredScreen != screenNum)
|
||||
return FALSE;
|
||||
|
||||
setup.agp_mode = mode;
|
||||
if (ioctl(gartFd, AGPIOC_SETUP, &setup) != 0) {
|
||||
xf86DrvMsg(screenNum, X_WARNING, "xf86EnableAGP: "
|
||||
"AGPIOC_SETUP with mode %ld failed (%s)\n",
|
||||
(unsigned long) mode, strerror(errno));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -94,9 +94,3 @@ xf86UnbindGARTMemory(int screenNum, int key)
|
|||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Bool
|
||||
xf86EnableAGP(int screenNum, CARD32 mode)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -306,23 +306,3 @@ xf86UnbindGARTMemory(int screenNum, int key)
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* XXX Interface may change. */
|
||||
Bool
|
||||
xf86EnableAGP(int screenNum, CARD32 mode)
|
||||
{
|
||||
agp_setup_t setup;
|
||||
|
||||
if (!GARTInit(screenNum) || (acquiredScreen != screenNum))
|
||||
return FALSE;
|
||||
|
||||
setup.agps_mode = mode;
|
||||
if (ioctl(gartFd, AGPIOC_SETUP, &setup) != 0) {
|
||||
xf86DrvMsg(screenNum, X_WARNING, "xf86EnableAGP: "
|
||||
"AGPIOC_SETUP with mode %x failed (%s)\n",
|
||||
(unsigned int) mode, strerror(errno));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -157,7 +157,6 @@ extern _X_EXPORT Bool xf86DeallocateGARTMemory(int screenNum, int key);
|
|||
extern _X_EXPORT Bool xf86BindGARTMemory(int screenNum, int key,
|
||||
unsigned long offset);
|
||||
extern _X_EXPORT Bool xf86UnbindGARTMemory(int screenNum, int key);
|
||||
extern _X_EXPORT Bool xf86EnableAGP(int screenNum, CARD32 mode);
|
||||
extern _X_EXPORT Bool xf86GARTCloseScreen(int screenNum);
|
||||
|
||||
/* These routines are in shared/sigio.c and are not loaded as part of the
|
||||
|
|
Loading…
Reference in New Issue