diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-06-01 14:08:36 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2002-06-01 14:08:36 +0000 |
commit | bb7a31a69bac993ffb9cfb195b84c1e374308e08 (patch) | |
tree | dfa504dd8c27837562c4850308d668afef851dd2 /src/video_out/libdha/test.c | |
parent | c49645144f4d31c88610c449059d48493736b5b6 (diff) | |
download | xine-lib-bb7a31a69bac993ffb9cfb195b84c1e374308e08.tar.gz xine-lib-bb7a31a69bac993ffb9cfb195b84c1e374308e08.tar.bz2 |
Add vidix/libdha from mplayerxp and Miguel's video ouput vidix.
CVS patchset: 1976
CVS date: 2002/06/01 14:08:36
Diffstat (limited to 'src/video_out/libdha/test.c')
-rw-r--r-- | src/video_out/libdha/test.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/video_out/libdha/test.c b/src/video_out/libdha/test.c new file mode 100644 index 000000000..41aa466d1 --- /dev/null +++ b/src/video_out/libdha/test.c @@ -0,0 +1,27 @@ +#include "libdha.h" +#include <stdio.h> +#include <string.h> +#include <stdlib.h> + +int main( void ) +{ + pciinfo_t lst[MAX_PCI_DEVICES]; + unsigned i,num_pci; + int err; + err = pci_scan(lst,&num_pci); + if(err) + { + printf("Error occured during pci scan: %s\n",strerror(err)); + return EXIT_FAILURE; + } + else + { + printf(" Bus:card:func vend:dev base0 :base1 :base2 :baserom\n"); + for(i=0;i<num_pci;i++) + printf("%04X:%04X:%04X %04X:%04X %08X:%08X:%08X:%08X\n" + ,lst[i].bus,lst[i].card,lst[i].func + ,lst[i].vendor,lst[i].device + ,lst[i].base0,lst[i].base1,lst[i].base2,lst[i].baserom); + } + return EXIT_SUCCESS; +} |