summaryrefslogtreecommitdiff
path: root/src/video_out/libdha/sysdep/pci_alpha.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-13 23:36:01 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-13 23:36:01 +0000
commit9baa6d2f372d3e09280e1103d7bfcf048f6457ec (patch)
treecf3bfc3fb392fe58ed612a5a09c11d176eb17e99 /src/video_out/libdha/sysdep/pci_alpha.c
parent989188f25474868841d8a5148873a5995be58c6f (diff)
downloadxine-lib-9baa6d2f372d3e09280e1103d7bfcf048f6457ec.tar.gz
xine-lib-9baa6d2f372d3e09280e1103d7bfcf048f6457ec.tar.bz2
big vidix driver update by James Stembridge
CVS patchset: 3907 CVS date: 2003/01/13 23:36:01
Diffstat (limited to 'src/video_out/libdha/sysdep/pci_alpha.c')
-rw-r--r--src/video_out/libdha/sysdep/pci_alpha.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/video_out/libdha/sysdep/pci_alpha.c b/src/video_out/libdha/sysdep/pci_alpha.c
index e968b3e12..74c3eb687 100644
--- a/src/video_out/libdha/sysdep/pci_alpha.c
+++ b/src/video_out/libdha/sysdep/pci_alpha.c
@@ -27,3 +27,54 @@ static long pci_config_read_long(
return retval;
}
+static long pci_config_read_word(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd)
+{
+ unsigned long retval;
+ pciconfig_read(bus, dev<<3, cmd, 2, &retval);
+ return retval;
+}
+
+static long pci_config_read_byte(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd)
+{
+ unsigned long retval;
+ pciconfig_read(bus, dev<<3, cmd, 1, &retval);
+ return retval;
+}
+
+static void pci_config_write_long(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd,
+ long val)
+{
+ pciconfig_write(bus, dev<<3, cmd, 4, val);
+}
+
+static void pci_config_write_word(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd,
+ long val)
+{
+ pciconfig_write(bus, dev<<3, cmd, 2, val);
+}
+
+static void pci_config_write_byte(
+ unsigned char bus,
+ unsigned char dev,
+ int func,
+ unsigned cmd,
+ long val)
+{
+ pciconfig_write(bus, dev<<3, cmd, 1, val);
+}