diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-11-16 17:18:09 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-11-16 17:18:09 +0000 |
commit | 4e6502e7006b2461f8523deb5f0213873f8cb5e8 (patch) | |
tree | b3aeb01e90ea42c070d69baa1bd13cd1854b1623 /src/video_out/libdha/kernelhelper/dhahelper.h | |
parent | 589a1b197b720d08ce0b6a34ab72b65dbf43c0fa (diff) | |
download | xine-lib-4e6502e7006b2461f8523deb5f0213873f8cb5e8.tar.gz xine-lib-4e6502e7006b2461f8523deb5f0213873f8cb5e8.tar.bz2 |
sync with vidix cvs
CVS patchset: 5755
CVS date: 2003/11/16 17:18:09
Diffstat (limited to 'src/video_out/libdha/kernelhelper/dhahelper.h')
-rw-r--r-- | src/video_out/libdha/kernelhelper/dhahelper.h | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/src/video_out/libdha/kernelhelper/dhahelper.h b/src/video_out/libdha/kernelhelper/dhahelper.h index 4c12840f4..7db56abb5 100644 --- a/src/video_out/libdha/kernelhelper/dhahelper.h +++ b/src/video_out/libdha/kernelhelper/dhahelper.h @@ -2,6 +2,7 @@ Direct Hardware Access kernel helper (C) 2002 Alex Beregszaszi <alex@naxine.org> + (C) 2002-2003 Nick Kurshev <nickols_k@mail.ru> */ #ifndef DHAHELPER_H @@ -12,7 +13,7 @@ /* feel free to change */ #define DEFAULT_MAJOR 252 /* 240-254 LOCAL/EXPERIMENTAL USE */ -#define API_VERSION 0x21 /* 2.1*/ +#define API_VERSION 0x30 /* 3.0*/ typedef struct dhahelper_port_s { @@ -29,14 +30,15 @@ typedef struct dhahelper_mtrr_s #define MTRR_OP_ADD 1 #define MTRR_OP_DEL 2 int operation; - int start; - int size; + long start; + long size; int type; + int privat; } dhahelper_mtrr_t; -typedef struct dhahelper_pci_s +typedef struct dhahelper_pci_config_s { -#define PCI_OP_READ 1 +#define PCI_OP_READ 0 #define PCI_OP_WRITE 1 int operation; int bus; @@ -44,8 +46,8 @@ typedef struct dhahelper_pci_s int func; int cmd; int size; - int ret; -} dhahelper_pci_t; + long ret; +} dhahelper_pci_config_t; typedef struct dhahelper_vmi_s { @@ -75,10 +77,19 @@ typedef struct dhahelper_cpu_flush_s unsigned long length; }dhahelper_cpu_flush_t; +typedef struct dhahelper_pci_device_s +{ + int bus,card,func; /* PCI/AGP bus:card:func */ + unsigned short vendor,device; /* Card vendor+device ID */ + unsigned long base0,base1,base2,baserom; /* Memory and I/O base addresses */ + unsigned long base3,base4,base5; /* Memory and I/O base addresses */ + unsigned char irq,ipin,gnt,lat; /* assigned IRQ parameters for this card */ +}dhahelper_pci_device_t; + #define DHAHELPER_GET_VERSION _IOW('D', 0, int) #define DHAHELPER_PORT _IOWR('D', 1, dhahelper_port_t) #define DHAHELPER_MTRR _IOWR('D', 2, dhahelper_mtrr_t) -#define DHAHELPER_PCI _IOWR('D', 3, dhahelper_pci_t) +#define DHAHELPER_PCI_CONFIG _IOWR('D', 3, dhahelper_pci_config_t) #define DHAHELPER_VIRT_TO_PHYS _IOWR('D', 4, dhahelper_vmi_t) #define DHAHELPER_VIRT_TO_BUS _IOWR('D', 5, dhahelper_vmi_t) #define DHAHELPER_ALLOC_PA _IOWR('D', 6, dhahelper_mem_t) @@ -89,5 +100,6 @@ typedef struct dhahelper_cpu_flush_s #define DHAHELPER_ACK_IRQ _IOWR('D', 11, dhahelper_irq_t) #define DHAHELPER_FREE_IRQ _IOWR('D', 12, dhahelper_irq_t) #define DHAHELPER_CPU_FLUSH _IOWR('D', 13, dhahelper_cpu_flush_t) +#define DHAHELPER_PCI_FIND _IOWR('D', 14, dhahelper_pci_device_t) #endif /* DHAHELPER_H */ |