Mercurial > mplayer.hg
annotate vidix/sysdep/pci_powerpc.c @ 30270:02d2d9fc2009
-demuxer rawaudio data will often need parsing (e.g. when it is used for raw
AC3 instead of libavformat), so set needs_parsing.
author | reimar |
---|---|
date | Fri, 15 Jan 2010 19:01:03 +0000 |
parents | 0f1b5b68af32 |
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 | |
8503
9dbb9c710480
svgalib kernelhelper support (based on patch by Matan Ziv-Av <matan@svgalib.org>) and some reordering/cleanup (part #1 ;)
alex
parents:
8460
diff
changeset
|
7 #if defined(Lynx) || defined(__OpenBSD__) |
4164 | 8 static int pci_config_type( void ) { return 1; } |
9 | |
10 static int pci_get_vendor( | |
11 unsigned char bus, | |
12 unsigned char dev, | |
13 int func) | |
14 { | |
15 int retval; | |
16 pciconfig_read(bus, dev<<3, PCI_ID_REG, 4, &retval); | |
17 return retval; | |
18 } | |
19 | |
20 static long pci_config_read_long( | |
21 unsigned char bus, | |
22 unsigned char dev, | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
22900
diff
changeset
|
23 int func, |
4164 | 24 unsigned cmd) |
25 { | |
26 long retval; | |
27 pciconfig_read(bus, dev<<3, cmd, 4, &retval); | |
28 return retval; | |
29 } | |
7837
6d544beb655e
libdha on linux powerpc support by Colin Leroy <colin@colino.net>
alex
parents:
4164
diff
changeset
|
30 #endif /*Lynx/OpenBSD*/ |