|
version 3.100, 1999/04/04 00:20:50
|
version 3.100.2.7, 1999/05/10 04:27:03
|
|
|
|
| /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86.h,v 3.99 1999/03/29 07:08:21 dawes Exp $ */ |
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86.h,v 3.100.2.6 1999/05/07 03:29:01 dawes Exp $ */ |
| | |
| /* | /* |
| * Copyright (c) 1997 by The XFree86 Project, Inc. | * Copyright (c) 1997 by The XFree86 Project, Inc. |
|
|
|
| /* General parameters */ | /* General parameters */ |
| extern int xf86ScreenIndex; /* Index into pScreen.devPrivates */ | extern int xf86ScreenIndex; /* Index into pScreen.devPrivates */ |
| extern int xf86PixmapIndex; | extern int xf86PixmapIndex; |
| |
extern Bool xf86ResAccessEnter; |
| extern ScrnInfoPtr *xf86Screens; /* List of pointers to ScrnInfoRecs */ | extern ScrnInfoPtr *xf86Screens; /* List of pointers to ScrnInfoRecs */ |
| extern const unsigned char byte_reversed[256]; | extern const unsigned char byte_reversed[256]; |
| | |
|
|
|
| | |
| /* xf86Bus.c */ | /* xf86Bus.c */ |
| | |
| Bool xf86CheckPciSlot(int bus, int device, int func, BusResource res); |
Bool xf86CheckPciSlot(int bus, int device, int func); |
| Bool xf86ClaimPciSlot(int bus, int device, int func, BusResource res, |
int xf86ClaimPciSlot(int bus, int device, int func, DriverPtr drvp, |
| DriverPtr drvp, int chipset, int scrnIndex); |
int chipset, GDevPtr dev, Bool active); |
| void xf86ReleasePciSlot(int bus, int device, int func); |
Bool xf86ParsePciBusString(const char *busID, int *bus, int *device, |
| |
int *func); |
| |
Bool xf86ComparePciBusString(const char *busID, int bus, int device, int func); |
| pciVideoPtr *xf86GetPciVideoInfo(void); | pciVideoPtr *xf86GetPciVideoInfo(void); |
| #ifdef _XF86PCI_H |
#if 0 |
| pciConfigPtr *xf86GetPciConfigInfo(void); | pciConfigPtr *xf86GetPciConfigInfo(void); |
| #endif | #endif |
| int xf86GetPciInfoForScreen(int scrnIndex, pciVideoPtr **pPciList, |
int xf86ClaimIsaSlot(DriverPtr drvp, int chipset, GDevPtr dev, Bool active); |
| BusResource **pRes); |
int xf86GetIsaInfoForScreen(int scrnIndex); |
| Bool xf86CheckIsaSlot(BusResource res); |
|
| Bool xf86ClaimIsaSlot(BusResource res, DriverPtr drvp, int chipset, |
|
| int scrnIndex); |
|
| void xf86ReleaseIsaSlot(BusResource res); |
|
| int xf86GetIsaInfoForScreen(int scrnIndex, BusResource **pRes); |
|
| Bool xf86ParsePciBusString(const char *busID, int *bus, int *device, |
|
| int *func); |
|
| Bool xf86ParseIsaBusString(const char *busID); | Bool xf86ParseIsaBusString(const char *busID); |
| Bool xf86ComparePciBusString(const char *busID, int bus, int device, int func); |
void xf86EnableAccess(ScrnInfoPtr pScrn); |
| void xf86DeleteBusSlotsForScreen(int scrnIndex); |
|
| Bool xf86IsPciBus(int scrnIndex); |
|
| Bool xf86IsIsaBus(int scrnIndex); |
|
| int xf86FindChipsetsForScreen(int scrnIndex, DriverPtr drv, int **chipsets); |
|
| void xf86AddControlledResource(ScrnInfoPtr pScreen, resType rt); |
|
| void xf86DelControlledResource(xf86ScrnAccessPtr pScAcc, Bool enable); |
|
| void xf86EnableAccess(xf86ScrnAccessPtr pScAcc); |
|
| Bool xf86IsPrimaryPci(pciVideoPtr pPci); | Bool xf86IsPrimaryPci(pciVideoPtr pPci); |
| Bool xf86IsPrimaryIsa(void); | Bool xf86IsPrimaryIsa(void); |
| int xf86CheckPciGAType(pciVideoPtr pPci); | int xf86CheckPciGAType(pciVideoPtr pPci); |
| /* new RAC */ | /* new RAC */ |
| resPtr xf86AddResToList(resPtr rlist, unsigned long begin, unsigned long end, |
void xf86ClaimFixedResources(resList list, int entityIndex); |
| int type, int busIndex); |
void xf86AddEntityToScreen(ScrnInfoPtr pScrn, int entityIndex); |
| resPtr xf86JoinResLists(resPtr rlist1, resPtr rlist2); |
void xf86RemoveEntityFromScreen(ScrnInfoPtr pScrn, int entityIndex); |
| resPtr xf86DupResList(const resPtr rlist); |
EntityInfoPtr xf86GetEntityInfo(int entityIndex); |
| void xf86FreeResList(resPtr rlist); |
pciVideoPtr xf86GetPciInfoForEntity(int entityIndex); |
| void xf86PrintResList(int verb, resPtr list); |
Bool xf86SetEntityFuncs(int entityIndex, EntityProc setup, |
| |
EntityProc enter, EntityProc leave, pointer); |
| |
void xf86DeallocateResourcesForEntity(int entityIndex, long type); |
| |
resPtr xf86RegisterResources(int entityIndex, resList list, int access); |
| |
Bool xf86CheckPciMemBase(pciVideoPtr pPci, unsigned long base); |
| |
void xf86SetAccessFuncs(EntityInfoPtr pEnt, xf86AccessPtr pAccess, |
| |
xf86AccessPtr *ppAccessOld); |
| |
Bool xf86IsEntityPrimary(int entityIndex); |
| | |
| | |
| /* xf86Cursor.c */ | /* xf86Cursor.c */ |
|
|
|
| int xf86MatchDevice(const char *drivername, GDevPtr **driversectlist); | int xf86MatchDevice(const char *drivername, GDevPtr **driversectlist); |
| int xf86MatchPciInstances(const char *driverName, int vendorID, | int xf86MatchPciInstances(const char *driverName, int vendorID, |
| SymTabPtr chipsets, PciChipsets *PCIchipsets, | SymTabPtr chipsets, PciChipsets *PCIchipsets, |
| GDevPtr *devList, int numDevs, |
GDevPtr *devList, int numDevs, DriverPtr drvp, |
| GDevPtr **foundDevs, pciVideoPtr **foundPCI, |
int **foundEntities); |
| int **foundChips); |
|
| BusResource xf86FindPciResource(int numChipset, PciChipsets *PCIchipsets); |
|
| int xf86MatchIsaInstances(const char *driverName, SymTabPtr chipsets, | int xf86MatchIsaInstances(const char *driverName, SymTabPtr chipsets, |
| IsaChipsets *ISAchipsets, FindIsaDevProc, |
IsaChipsets *ISAchipsets, DriverPtr drvp, |
| GDevPtr *devList, int numDevs, GDevPtr *foundDev); |
FindIsaDevProc FindIsaDevice, GDevPtr *devList, |
| BusResource xf86FindIsaResource(int numChipset, IsaChipsets *ISAchipsets); |
int numDevs, int **foundEntities); |
| void xf86GetClocks(ScrnInfoPtr pScrn, int num, | void xf86GetClocks(ScrnInfoPtr pScrn, int num, |
| Bool (*ClockFunc)(ScrnInfoPtr, int), | Bool (*ClockFunc)(ScrnInfoPtr, int), |
| void (*ProtectRegs)(ScrnInfoPtr, Bool), | void (*ProtectRegs)(ScrnInfoPtr, Bool), |
|
|
|
| int xf86NewSerialNumber(WindowPtr p, pointer unused); | int xf86NewSerialNumber(WindowPtr p, pointer unused); |
| pointer xf86FindXvOptions(int scrnIndex, int adapt_index, char *port_name, | pointer xf86FindXvOptions(int scrnIndex, int adapt_index, char *port_name, |
| char **adaptor_name, pointer *adaptor_options); | char **adaptor_name, pointer *adaptor_options); |
| |
Bool xf86ConfigActivePciEntity(ScrnInfoPtr pScrn, EntityInfoPtr pEnt, |
| |
PciChipsets *p_chip, resList res, |
| |
EntityProc setup, EntityProc enter, |
| |
EntityProc leave, pointer private); |
| |
Bool xf86ConfigActiveIsaEntity(ScrnInfoPtr pScrn, EntityInfoPtr pEnt, |
| |
IsaChipsets *i_chip, resList res, |
| |
EntityProc setup, EntityProc enter, |
| |
EntityProc leave, pointer private); |
| |
void xf86ConfigPciEntityInactive(EntityInfoPtr pEnt, PciChipsets *p_chip, |
| |
resList res, EntityProc setup, |
| |
EntityProc enter, EntityProc leave, |
| |
pointer private); |
| |
void xf86ConfigIsaEntityInactive(EntityInfoPtr pEnt, IsaChipsets *i_chip, |
| |
resList res, EntityProc setup, |
| |
EntityProc enter, EntityProc leave, |
| |
pointer private); |
| |
Bool xf86IsScreenPrimary(int scrnIndex); |
| | |
| | |
| /* xf86Init.c */ | /* xf86Init.c */ |