summaryrefslogtreecommitdiff
path: root/src/video_out/libdha/sysdep
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-14 01:56:59 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-14 01:56:59 +0000
commit8cbefe95bd4c6e1e715af0f9667c0c2d3d1f9eff (patch)
tree29791509737b2f36e45d1686d73d6272b7a67f59 /src/video_out/libdha/sysdep
parent74641d0374d17b28fb4636f890bd62e43c9a603c (diff)
downloadxine-lib-8cbefe95bd4c6e1e715af0f9667c0c2d3d1f9eff.tar.gz
xine-lib-8cbefe95bd4c6e1e715af0f9667c0c2d3d1f9eff.tar.bz2
ops, missing files
CVS patchset: 3910 CVS date: 2003/01/14 01:56:59
Diffstat (limited to 'src/video_out/libdha/sysdep')
-rw-r--r--src/video_out/libdha/sysdep/AsmMacros_generic.h56
-rw-r--r--src/video_out/libdha/sysdep/Makefile.am3
-rw-r--r--src/video_out/libdha/sysdep/pci_generic_cpu.c79
-rw-r--r--src/video_out/libdha/sysdep/pci_generic_os.c15
4 files changed, 153 insertions, 0 deletions
diff --git a/src/video_out/libdha/sysdep/AsmMacros_generic.h b/src/video_out/libdha/sysdep/AsmMacros_generic.h
new file mode 100644
index 000000000..f3844c5ed
--- /dev/null
+++ b/src/video_out/libdha/sysdep/AsmMacros_generic.h
@@ -0,0 +1,56 @@
+/*
+ Generic stuff to compile VIDIX only on any system (SCRATCH)
+*/
+
+#ifndef __ASM_MACROS_GENERIC_H
+#define __ASM_MACROS_GENERIC_H
+
+#warn This stuff is not ported on yur system
+
+static __inline__ void outb(short port,char val)
+{
+ printf("outb: generic function call\n");
+ return;
+}
+
+static __inline__ void outw(short port,short val)
+{
+ printf("outw: generic function call\n");
+ return;
+}
+
+static __inline__ void outl(short port,unsigned int val)
+{
+ printf("outl: generic function call\n");
+ return;
+}
+
+static __inline__ unsigned int inb(short port)
+{
+ printf("inb: generic function call\n");
+ return 0;
+}
+
+static __inline__ unsigned int inw(short port)
+{
+ printf("inw: generic function call\n");
+ return 0;
+}
+
+static __inline__ unsigned int inl(short port)
+{
+ printf("inl: generic function call\n");
+ return 0;
+}
+
+static __inline__ void intr_disable()
+{
+ printf("intr_disable: generic function call\n");
+}
+
+static __inline__ void intr_enable()
+{
+ printf("intr_enable: generic function call\n");
+}
+
+#endif
diff --git a/src/video_out/libdha/sysdep/Makefile.am b/src/video_out/libdha/sysdep/Makefile.am
index 5dc3ef70f..014ef0cf0 100644
--- a/src/video_out/libdha/sysdep/Makefile.am
+++ b/src/video_out/libdha/sysdep/Makefile.am
@@ -6,6 +6,8 @@ EXTRA_DIST = \
pci_arm32.c \
pci_bsdi.c \
pci_freebsd.c \
+ pci_generic_cpu.c \
+ pci_generic_os.c \
pci_ia64.c \
pci_isc.c \
pci_linux.c \
@@ -24,6 +26,7 @@ EXTRA_DIST = \
noinst_HEADERS = \
AsmMacros_alpha.h \
AsmMacros_arm32.h \
+ AsmMacros_generic.h \
AsmMacros_ia64.h \
AsmMacros_powerpc.h \
AsmMacros_sparc.h \
diff --git a/src/video_out/libdha/sysdep/pci_generic_cpu.c b/src/video_out/libdha/sysdep/pci_generic_cpu.c
new file mode 100644
index 000000000..3a37890eb
--- /dev/null
+++ b/src/video_out/libdha/sysdep/pci_generic_cpu.c
@@ -0,0 +1,79 @@
+/*
+ Generic stuff to compile VIDIX only on any system (SCRATCH)
+*/
+#warn This stuff is not ported on yur system
+
+static int pci_config_type( void )
+{
+ printf("pci_config_type: generic function call\n");
+ return 0xFFFF;
+}
+
+static int pci_get_vendor(
+ unsigned char bus,
+ unsigned char dev,
+ int func)
+{
+ printf("pci_get_vendor: generic function call\n");
+ return 0;
+}
+
+static long pci_config_read_long(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd)
+{
+ printf("pci_config_read_long: generic function call\n");
+ return 0;
+}
+
+static long pci_config_read_word(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd)
+{
+ printf("pci_config_read_word: generic function call\n");
+ return 0;
+}
+
+static long pci_config_read_byte(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd)
+{
+ printf("pci_config_read_byte: generic function call\n");
+ return 0;
+}
+
+static void pci_config_write_long(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd,
+ long val)
+{
+ printf("pci_config_write_long: generic function call\n");
+}
+
+static void pci_config_write_word(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd,
+ long val)
+{
+ printf("pci_config_write_word: generic function call\n");
+}
+
+static void pci_config_write_byte(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd,
+ long val)
+{
+ printf("pci_config_write_byte: generic function call\n");
+}
diff --git a/src/video_out/libdha/sysdep/pci_generic_os.c b/src/video_out/libdha/sysdep/pci_generic_os.c
new file mode 100644
index 000000000..8855bb4ba
--- /dev/null
+++ b/src/video_out/libdha/sysdep/pci_generic_os.c
@@ -0,0 +1,15 @@
+/*
+ Generic stuff to compile VIDIX only on any system (SCRATCH)
+*/
+#warn This stuff is not ported on yur system
+static __inline__ int enable_os_io(void)
+{
+ printf("enable_os_io: generic function call\n");
+ return 0;
+}
+
+static __inline__ int disable_os_io(void)
+{
+ printf("disable_os_io: generic function call\n");
+ return 0;
+}