diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-13 23:36:01 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-13 23:36:01 +0000 |
commit | 9baa6d2f372d3e09280e1103d7bfcf048f6457ec (patch) | |
tree | cf3bfc3fb392fe58ed612a5a09c11d176eb17e99 /src/video_out/libdha/sysdep/pci_alpha.c | |
parent | 989188f25474868841d8a5148873a5995be58c6f (diff) | |
download | xine-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.c | 51 |
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); +} |