Mercurial > mplayer.hg
annotate vidix/sysdep/pci_alpha.c @ 34061:fe03e0d5c7d0
Remove usage of glColor3f, there is not really a point in it.
author | reimar |
---|---|
date | Wed, 28 Sep 2011 18:52:11 +0000 |
parents | 32725ca88fed |
children |
rev | line source |
---|---|
4164 | 1 /* |
2 This file is based on: | |
3 $XFree86: xc/programs/Xserver/hw/xfree86/etc/scanpci.c,v 3.34.2.17 1998/11/10 11:55:40 dawes Exp $ | |
4 Modified for readability by Nick Kurshev | |
5 */ | |
6 | |
7 static int pci_config_type( void ) { return 1; } | |
8 | |
9 static int pci_get_vendor( | |
10 unsigned char bus, | |
11 unsigned char dev, | |
12 int func) | |
13 { | |
5702 | 14 unsigned long retval; |
4164 | 15 pciconfig_read(bus, dev<<3, PCI_ID_REG, 4, &retval); |
16 return retval; | |
17 } | |
18 | |
19 static long pci_config_read_long( | |
20 unsigned char bus, | |
21 unsigned char dev, | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
22900
diff
changeset
|
22 int func, |
4164 | 23 unsigned cmd) |
24 { | |
5702 | 25 unsigned long retval; |
4164 | 26 pciconfig_read(bus, dev<<3, cmd, 4, &retval); |
27 return retval; | |
28 } |