Some doc clean up:
clean up legacy things in os-support/bus/Pci.c. Put InitOutput() comment to its right place.
This commit is contained in:
parent
7c582dd6de
commit
81272f7ec9
|
@ -198,13 +198,6 @@ xf86CreateRootWindow(WindowPtr pWin)
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
* InitOutput --
|
||||
* Initialize screenInfo for all actually accessible framebuffers.
|
||||
* That includes vt-manager setup, querying all possible devices and
|
||||
* collecting the pixmap formats.
|
||||
*/
|
||||
|
||||
static void
|
||||
PostConfigInit(void)
|
||||
{
|
||||
|
@ -467,7 +460,12 @@ xf86CallDriverProbe( DriverPtr drv, Bool detect_only )
|
|||
return foundScreen;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* InitOutput --
|
||||
* Initialize screenInfo for all actually accessible framebuffers.
|
||||
* That includes vt-manager setup, querying all possible devices and
|
||||
* collecting the pixmap formats.
|
||||
*/
|
||||
void
|
||||
InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
|
||||
{
|
||||
|
|
|
@ -1,64 +1,3 @@
|
|||
/*
|
||||
* Pci.c - New server PCI access functions
|
||||
*
|
||||
* The XFree86 server PCI access functions have been reimplemented as a
|
||||
* framework that allows each supported platform/OS to have their own
|
||||
* platform/OS specific pci driver.
|
||||
*
|
||||
* All of the public PCI access functions exported to the other parts of
|
||||
* the server are declared in Pci.h and defined herein. These include:
|
||||
* pciInit() - Initialize PCI access functions
|
||||
* pciReadLong() - Read a 32 bit value from a device's cfg space
|
||||
* pciReadWord() - Read a 16 bit value from a device's cfg space
|
||||
* pciReadByte() - Read an 8 bit value from a device's cfg space
|
||||
* pciWriteLong() - Write a 32 bit value to a device's cfg space
|
||||
* pciWriteWord() - Write a 16 bit value to a device's cfg space
|
||||
* pciWriteByte() - Write an 8 bit value to a device's cfg space
|
||||
* pciSetBitsLong() - Write a 32 bit value against a mask
|
||||
* pciSetBitsByte() - Write an 8 bit value against a mask
|
||||
* pciTag() - Return tag for a given PCI bus, device, &
|
||||
* function
|
||||
* pciBusAddrToHostAddr() - Convert a PCI address to a host address
|
||||
* xf86scanpci() - Return info about all PCI devices
|
||||
* xf86MapDomainMemory() - Like xf86MapPciMem() but can handle
|
||||
* domain/host address translation
|
||||
* xf86MapLegacyIO() - Maps PCI I/O spaces
|
||||
*
|
||||
* The actual PCI backend driver is selected by the pciInit() function
|
||||
* (see below) using either compile time definitions, run-time checks,
|
||||
* or both.
|
||||
*
|
||||
* Certain generic functions are provided that make the implementation
|
||||
* of certain well behaved platforms (e.g. those supporting PCI config
|
||||
* mechanism 1 or some thing close to it) very easy.
|
||||
*
|
||||
* Less well behaved platforms/OS's can roll their own functions.
|
||||
*
|
||||
* To add support for another platform/OS, add a call to fooPciInit() within
|
||||
* pciInit() below under the correct compile time definition or run-time
|
||||
* conditional.
|
||||
*
|
||||
* The fooPciInit() procedure must do three things:
|
||||
* 1) Initialize the pciBusTable[] for all primary PCI buses including
|
||||
* the per domain PCI access functions (readLong, writeLong,
|
||||
* addrBusToHost, and addrHostToBus).
|
||||
*
|
||||
* 2) Add entries to pciBusTable[] for configured secondary buses. This
|
||||
* step may be skipped if a platform is using the generic findFirst/
|
||||
* findNext functions because these procedures will automatically
|
||||
* discover and add secondary buses dynamically.
|
||||
*
|
||||
* 3) Overide default settings for global PCI access functions if
|
||||
* required. These include pciFindFirstFP, pciFindNextFP,
|
||||
* Of course, if you choose not to use one of the generic
|
||||
* functions, you will need to provide a platform specifc replacement.
|
||||
*
|
||||
* Gary Barton
|
||||
* Concurrent Computer Corporation
|
||||
* garyb@gate.net
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright 1998 by Concurrent Computer Corporation
|
||||
*
|
||||
|
@ -197,14 +136,6 @@
|
|||
|
||||
#include <pciaccess.h>
|
||||
|
||||
#if 0
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#define PCI_MFDEV_SUPPORT 1 /* Include PCI multifunction device support */
|
||||
#define PCI_BRIDGE_SUPPORT 1 /* Include support for PCI-to-PCI bridges */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user