14 #define rev16(x) ((((x)>>8)&0xff)|(((x)&0xff)<<8)) 15 #define rev32(x) ((((x)>>24)&0xff)|(((x)>>8)&0xff00)|(((x)&0xff00)<<8)|(((x)&0xff)<<24)) 16 #define pci_addr(bus,dev,fn,reg) \ 18 ((bus & 0xff) << 16) | \ 19 ((dev & 0x1f) << 11) | \ 23 #define pci_cfg_addr(bus,dev,fn,reg) \ 25 ((1 << (dev + 16)) | \ 28 ((reg & 0xfc) | 1)) : pci_addr(bus,dev,fn,reg)) 30 #define pci_cfg_addr(bus,dev,fn,reg) pci_addr(bus,dev,fn,reg) 34 unsigned long save_state =
desc->cfg->addr,
ret = 0;
52 desc->cfg->addr = save_state;
69 unsigned long save_state =
desc->cfg->addr;
79 desc->cfg->addr = save_state;
91 #define PCI_VENDORID 0 92 #define PCI_DEVICEID 2 93 #define PCI_HEADER_TYPE 0xe 94 #define PCI_BASECLASS 0xb 104 for( bus = 0; bus < 1; bus++ ) {
115 printf(
" %d:%d -> vendor:device:class %x:%x:%x\n",
118 if( devclass == 3 ) {
119 printf(
"Setting up vga...\n");
121 printf(
"Done with vga\n");
#define pci_cfg_addr(bus, dev, fn, reg)
static GLenum _GLUfuncptr fn
void print_bar(struct _pci_bar *bar)
void vga_setup(PCONFIGURATION_COMPONENT_DATA pci_bus, struct _pci_desc *pci_desc, struct _vga_desc *vga_desc, int bus, int dev, int fn)
static const WCHAR desc[]
struct _pci_desc pci_desc
static struct __wine_debug_functions funcs
struct _vga_desc vga1_desc
GLenum const GLvoid * addr
unsigned long pci_read(pci_desc *desc, int bus, int dev, int fn, int reg, int len)
void pci_write_bar(pci_desc *desc, int bus, int dev, int fn, int bar, struct _pci_bar *bar_data)
void pci_read_bar(pci_desc *desc, int bus, int dev, int fn, int bar, struct _pci_bar *bar_data)
GLuint GLuint GLsizei GLenum type
void pci_write(pci_desc *desc, int bus, int dev, int fn, int reg, int len, int val)
void pci_setup(PCONFIGURATION_COMPONENT_DATA pcibus, pci_desc *desc)