VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/xf86pciBus.h@ 78293

Last change on this file since 78293 was 69098, checked in by vboxsync, 7 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86pciBus.h,v 3.8 2002/09/16 16:55:33 tsi Exp $ */
2
3#ifndef _XF86_PCI_BUS_H
4#define _XF86_PCI_BUS_H
5
6#define PCITAG_SPECIAL pciTag(0xFF,0xFF,0xFF)
7
8typedef struct {
9 CARD32 command;
10 CARD32 base[6];
11 CARD32 biosBase;
12} pciSave, *pciSavePtr;
13
14typedef void (*SetBitsProcPtr)(PCITAG, int, CARD32, CARD32);
15typedef void (*WriteProcPtr)(PCITAG, int, CARD32);
16
17typedef struct {
18 PCITAG tag;
19 WriteProcPtr func;
20 CARD32 ctrl;
21} pciArg;
22
23typedef struct {
24 int busnum;
25 int devnum;
26 int funcnum;
27 pciArg arg;
28 xf86AccessRec ioAccess;
29 xf86AccessRec io_memAccess;
30 xf86AccessRec memAccess;
31 pciSave save;
32 pciSave restore;
33 Bool ctrl;
34} pciAccRec, *pciAccPtr;
35
36typedef union {
37 CARD16 control;
38} pciBridgesSave, *pciBridgesSavePtr;
39
40typedef struct pciBusRec {
41 int brbus, brdev, brfunc; /* ID of the bridge to this bus */
42 int primary, secondary, subordinate;
43 int subclass; /* bridge type */
44 int interface;
45 resPtr preferred_io; /* I/O range */
46 resPtr preferred_mem; /* non-prefetchable memory range */
47 resPtr preferred_pmem; /* prefetchable memory range */
48 resPtr io; /* for subtractive PCI-PCI bridges */
49 resPtr mem;
50 resPtr pmem;
51 int brcontrol; /* bridge_control byte */
52 struct pciBusRec *next;
53} PciBusRec, *PciBusPtr;
54
55void xf86PciProbe(void);
56void ValidatePci(void);
57resList GetImplicitPciResources(int entityIndex);
58void initPciState(void);
59void initPciBusState(void);
60void DisablePciAccess(void);
61void DisablePciBusAccess(void);
62void PciStateEnter(void);
63void PciBusStateEnter(void);
64void PciStateLeave(void);
65void PciBusStateLeave(void);
66resPtr ResourceBrokerInitPci(resPtr *osRes);
67void pciConvertRange2Host(int entityIndex, resRange *pRange);
68void isaConvertRange2Host(resRange *pRange);
69
70extern pciAccPtr * xf86PciAccInfo;
71
72#endif /* _XF86_PCI_BUS_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette