xfree86: Remove Option "BiosBase" (v2)
Just no. The ddxDesign chunk removes the whole para about xf86FixPciResource, since it turns out that function doesn't exist at all anymore. The only drivers that reference this at all are i128 and mga, and even then only in the non-pciaccess path. v2: - Update commentary about i128/mga - Don't remove the BiosBase keyword from the config parser since that would turn a no-op into a fatal error (Aaron Plattner) Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
76ef102be3
commit
0b6f280602
|
@ -2105,7 +2105,6 @@ configDevice(GDevPtr devicep, XF86ConfDevicePtr conf_device, Bool active, Bool g
|
|||
devicep->driver = conf_device->dev_driver;
|
||||
devicep->active = active;
|
||||
devicep->videoRam = conf_device->dev_videoram;
|
||||
devicep->BiosBase = conf_device->dev_bios_base;
|
||||
devicep->MemBase = conf_device->dev_mem_base;
|
||||
devicep->IOBase = conf_device->dev_io_base;
|
||||
devicep->clockchip = conf_device->dev_clockchip;
|
||||
|
|
|
@ -268,7 +268,6 @@ configureDeviceSection(int screennum)
|
|||
for (i = 0; i < MAXDACSPEEDS; i++)
|
||||
ptr->dev_dacSpeeds[i] = DevToConfig[screennum].GDev.dacSpeeds[i];
|
||||
ptr->dev_videoram = DevToConfig[screennum].GDev.videoRam;
|
||||
ptr->dev_bios_base = DevToConfig[screennum].GDev.BiosBase;
|
||||
ptr->dev_mem_base = DevToConfig[screennum].GDev.MemBase;
|
||||
ptr->dev_io_base = DevToConfig[screennum].GDev.IOBase;
|
||||
ptr->dev_clockchip = DevToConfig[screennum].GDev.clockchip;
|
||||
|
|
|
@ -303,7 +303,6 @@ typedef struct {
|
|||
Bool active;
|
||||
Bool inUse;
|
||||
int videoRam;
|
||||
unsigned long BiosBase; /* Base address of video BIOS */
|
||||
unsigned long MemBase; /* Frame buffer base address */
|
||||
unsigned long IOBase;
|
||||
int chipID;
|
||||
|
@ -648,7 +647,6 @@ typedef struct _ScrnInfoRec {
|
|||
int numClocks; /* number of clocks */
|
||||
int clock[MAXCLOCKS]; /* list of clock frequencies */
|
||||
int videoRam; /* amount of video ram (kb) */
|
||||
unsigned long biosBase; /* Base address of video BIOS */
|
||||
unsigned long memPhysBase; /* Physical address of FB */
|
||||
unsigned long fbOffset; /* Offset of FB in the above */
|
||||
int memClk; /* memory clock */
|
||||
|
|
|
@ -1208,7 +1208,6 @@ Here is what <function>InitOutput()</function> does:
|
|||
numClocks (if not programmable)
|
||||
clock[] (if not programmable)
|
||||
videoRam
|
||||
biosBase
|
||||
memBase
|
||||
memClk
|
||||
driverPrivate
|
||||
|
@ -2920,34 +2919,6 @@ Two functions are provided to obtain a resource range of a given type:
|
|||
</para>
|
||||
|
||||
<para>
|
||||
Some PCI devices are broken in the sense that they return invalid size
|
||||
information for a certain resource. In this case the driver can supply
|
||||
the correct size and make sure that the resource range allocated for
|
||||
the card is large enough to hold the address range decoded by the card.
|
||||
The function <function>xf86FixPciResource()</function> can be used to do this:
|
||||
<blockquote><para>
|
||||
<programlisting>
|
||||
Bool xf86FixPciResource(int entityIndex, unsigned int prt,
|
||||
CARD32 alignment, long type);
|
||||
</programlisting>
|
||||
<blockquote><para>
|
||||
This function fixes a PCI resource allocation. The
|
||||
<parameter>prt</parameter> parameter contains the number of the PCI base
|
||||
register that needs to be fixed (<constant>0-5</constant>, and
|
||||
<constant>6</constant> for the BIOS base register). The size is
|
||||
specified by the alignment. Since PCI resources need to span an
|
||||
integral range of size <literal remap="tt">2ˆn</literal>, the alignm ent also
|
||||
specifies the number of addresses that will be decoded. If the
|
||||
driver specifies a type mask it can override the default type for
|
||||
PCI resources which is <constant>ResShared</constant>. The resource
|
||||
broker needs to know that to find a matching resource range. This
|
||||
function should be called before calling
|
||||
<function>xf86RegisterResources()</function>. The return value is
|
||||
<constant>TRUE</constant> when the function succeeds.
|
||||
</para>
|
||||
|
||||
</blockquote></para></blockquote>
|
||||
|
||||
<blockquote><para>
|
||||
<programlisting>
|
||||
Bool xf86CheckPciMemBase(pciVideoPtr pPci, memType base);
|
||||
|
|
|
@ -1470,12 +1470,6 @@ In most cases this is not required because the Xorg server probes
|
|||
the graphics board to determine this quantity.
|
||||
The driver-specific documentation should indicate when it might be needed.
|
||||
.TP 7
|
||||
.BI "BiosBase " "baseaddress"
|
||||
This optional entry specifies the base address of the video BIOS for
|
||||
the VGA board.
|
||||
This address is normally auto-detected, and should only be specified if the
|
||||
driver-specific documentation recommends it.
|
||||
.TP 7
|
||||
.BI "MemBase " "baseaddress"
|
||||
This optional entry specifies the memory base address of a graphics
|
||||
board's linear frame buffer.
|
||||
|
|
|
@ -172,7 +172,7 @@ xf86parseDeviceSection(void)
|
|||
case BIOSBASE:
|
||||
if (xf86getSubToken(&(ptr->dev_comment)) != NUMBER)
|
||||
Error(NUMBER_MSG, "BIOSBase");
|
||||
ptr->dev_bios_base = xf86_lex_val.num;
|
||||
/* ignored */
|
||||
break;
|
||||
case MEMBASE:
|
||||
if (xf86getSubToken(&(ptr->dev_comment)) != NUMBER)
|
||||
|
@ -285,8 +285,6 @@ xf86printDeviceSection(FILE * cf, XF86ConfDevicePtr ptr)
|
|||
}
|
||||
if (ptr->dev_videoram)
|
||||
fprintf(cf, "\tVideoRam %d\n", ptr->dev_videoram);
|
||||
if (ptr->dev_bios_base)
|
||||
fprintf(cf, "\tBiosBase 0x%lx\n", ptr->dev_bios_base);
|
||||
if (ptr->dev_mem_base)
|
||||
fprintf(cf, "\tMemBase 0x%lx\n", ptr->dev_mem_base);
|
||||
if (ptr->dev_io_base)
|
||||
|
|
|
@ -211,7 +211,6 @@ typedef struct {
|
|||
const char *dev_ramdac;
|
||||
int dev_dacSpeeds[CONF_MAXDACSPEEDS];
|
||||
int dev_videoram;
|
||||
unsigned long dev_bios_base;
|
||||
unsigned long dev_mem_base;
|
||||
unsigned long dev_io_base;
|
||||
const char *dev_clockchip;
|
||||
|
|
Loading…
Reference in New Issue