PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
v2u_id.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * $Id: v2u_id.h 13103 2011-05-18 22:04:14Z zhilin $
4  *
5  * Copyright (C) 2003-2011 Epiphan Systems Inc. All rights reserved.
6  *
7  * Defines vendor and product ids of VGA2USB hardware. Included by the
8  * driver and by the user level code.
9  *
10  ****************************************************************************/
11 
12 #ifndef _VGA2USB_ID_H_
13 #define _VGA2USB_ID_H_ 1
14 
22 #define EPIPHAN_VENDORID 0x5555
23 #define VGA2USB_VENDORID EPIPHAN_VENDORID
24 #define VGA2USB_PRODID_VGA2USB 0x1110
25 #define VGA2USB_PRODID_KVM2USB 0x1120
26 #define VGA2USB_PRODID_DVI2USB 0x2222
27 #define VGA2USB_PRODID_VGA2USB_LR 0x3340
28 #define VGA2USB_PRODID_VGA2USB_HR 0x3332
29 #define VGA2USB_PRODID_VGA2USB_PRO 0x3333
30 #define VGA2USB_PRODID_VGA2USB_LR_RESPIN 0x3382
31 #define VGA2USB_PRODID_KVM2USB_LR_RESPIN 0x3383
32 #define VGA2USB_PRODID_VGA2USB_HR_RESPIN 0x3392
33 #define VGA2USB_PRODID_VGA2USB_PRO_RESPIN 0x33A2
34 #define VGA2USB_PRODID_DVI2USB_RESPIN 0x3380
35 #define VGA2USB_PRODID_KVM2USB_LR 0x3344
36 #define VGA2USB_PRODID_KVM2USB_PRO 0x3337
37 #define VGA2USB_PRODID_DVI2USB_SOLO 0x3411
38 #define VGA2USB_PRODID_DVI2USB_DUO 0x3422
39 #define VGA2USB_PRODID_VGA2FIFO 0x4000
40 #define VGA2USB_PRODID_KVM2FIFO 0x4004
41 #define VGA2USB_PRODID_DVI2FIFO 0x4080
42 #define VGA2USB_PRODID_DAVINCI1 0x5000
43 #define VGA2USB_PRODID_VGA2PCI 0x3A00
44 #define VGA2USB_PRODID_DVI2PCI 0x3B00
45 #define VGA2USB_PRODID_GIOCONDA 0x5100
46 #define VGA2USB_PRODID_ORNITHOPTER 0x5200
47 
52 #define VGA2USB_IS_VGA2USB(idVendor,idProduct,iProduct,iMfg) \
53  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_VGA2USB && \
54  ((iProduct)>0 || (iMfg)>0))
55 
56 #define VGA2USB_IS_KVM2USB(idVendor,idProduct,iProduct,iMfg) \
57  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_KVM2USB && \
58  ((iProduct)>0 || (iMfg)>0))
59 
60 #define VGA2USB_IS_DVI2USB(idVendor,idProduct,iProduct,iMfg) \
61  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_DVI2USB && \
62  ((iProduct)>0 || (iMfg)>0))
63 
64 #define VGA2USB_IS_VGA2USB_PRO(idVendor,idProduct,iProduct,iMfg) \
65  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_VGA2USB_PRO && \
66  ((iProduct)>0 || (iMfg)>0))
67 
68 #define VGA2USB_IS_VGA2USB_HR(idVendor,idProduct,iProduct,iMfg) \
69  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_VGA2USB_HR && \
70  ((iProduct)>0 || (iMfg)>0))
71 
72 #define VGA2USB_IS_VGA2USB_LR(idVendor,idProduct,iProduct,iMfg) \
73  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_VGA2USB_LR && \
74  ((iProduct)>0 || (iMfg)>0))
75 
76 #define VGA2USB_IS_VGA2USB_LR_RESPIN(idVendor,idProduct,iProduct,iMfg) \
77  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_VGA2USB_LR_RESPIN && \
78  ((iProduct)>0 || (iMfg)>0))
79 
80 #define VGA2USB_IS_VGA2USB_HR_RESPIN(idVendor,idProduct,iProduct,iMfg) \
81  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_VGA2USB_HR_RESPIN && \
82  ((iProduct)>0 || (iMfg)>0))
83 
84 #define VGA2USB_IS_VGA2USB_PRO_RESPIN(idVendor,idProduct,iProduct,iMfg) \
85  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_VGA2USB_PRO_RESPIN && \
86  ((iProduct)>0 || (iMfg)>0))
87 
88 #define VGA2USB_IS_KVM2USB_LR(idVendor,idProduct,iProduct,iMfg) \
89  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_KVM2USB_LR && \
90  ((iProduct)>0 || (iMfg)>0))
91 
92 #define VGA2USB_IS_KVM2USB_PRO(idVendor,idProduct,iProduct,iMfg) \
93  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_KVM2USB_PRO && \
94  ((iProduct)>0 || (iMfg)>0))
95 
96 #define VGA2USB_IS_DVI2USB_SOLO(idVendor,idProduct,iProduct,iMfg) \
97  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_DVI2USB_SOLO && \
98  ((iProduct)>0 || (iMfg)>0))
99 
100 #define VGA2USB_IS_DVI2USB_DUO(idVendor,idProduct,iProduct,iMfg) \
101  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_DVI2USB_DUO && \
102  ((iProduct)>0 || (iMfg)>0))
103 
104 #define VGA2USB_IS_DVI2USB_RESPIN(idVendor,idProduct,iProduct,iMfg) \
105  ((idVendor)==VGA2USB_VENDORID &&(idProduct)==VGA2USB_PRODID_DVI2USB_RESPIN &&\
106  ((iProduct)>0 || (iMfg)>0))
107 
108 #define VGA2USB_IS_KVM2USB_LR_RESPIN(idVendor,idProduct,iProduct,iMfg) \
109  ((idVendor)==VGA2USB_VENDORID && (idProduct)==VGA2USB_PRODID_KVM2USB_LR_RESPIN && \
110  ((iProduct)>0 || (iMfg)>0))
111 
112 #define VGA2USB_IS_ANY(idVendor,idProduct,iProduct,iMfg) \
113  (VGA2USB_IS_VGA2USB(idVendor,idProduct,iProduct,iMfg) || \
114  VGA2USB_IS_KVM2USB(idVendor,idProduct,iProduct,iMfg) || \
115  VGA2USB_IS_DVI2USB(idVendor,idProduct,iProduct,iMfg) || \
116  VGA2USB_IS_DVI2USB_SOLO(idVendor,idProduct,iProduct,iMfg) || \
117  VGA2USB_IS_DVI2USB_DUO(idVendor,idProduct,iProduct,iMfg) || \
118  VGA2USB_IS_DVI2USB_RESPIN(idVendor,idProduct,iProduct,iMfg) || \
119  VGA2USB_IS_VGA2USB_PRO(idVendor,idProduct,iProduct,iMfg) || \
120  VGA2USB_IS_VGA2USB_HR(idVendor,idProduct,iProduct,iMfg) || \
121  VGA2USB_IS_VGA2USB_LR(idVendor,idProduct,iProduct,iMfg) || \
122  VGA2USB_IS_VGA2USB_LR_RESPIN(idVendor,idProduct,iProduct,iMfg) || \
123  VGA2USB_IS_VGA2USB_HR_RESPIN(idVendor,idProduct,iProduct,iMfg) || \
124  VGA2USB_IS_VGA2USB_PRO_RESPIN(idVendor,idProduct,iProduct,iMfg) || \
125  VGA2USB_IS_KVM2USB_PRO(idVendor,idProduct,iProduct,iMfg) || \
126  VGA2USB_IS_KVM2USB_LR(idVendor,idProduct,iProduct,iMfg) || \
127  VGA2USB_IS_KVM2USB_LR_RESPIN(idVendor,idProduct,iProduct,iMfg))
128 
134 #define VGA2USB_WIN_DEVICE_FORMAT "EpiphanVga2usb%lu"
135 
139 #define V2U_PRODUCT_MAP(map) \
140  map( VGA2USB_PRODID_VGA2USB, V2UProductVGA2USB, "VGA2USB" )\
141  map( VGA2USB_PRODID_KVM2USB, V2UProductKVM2USB, "KVM2USB" )\
142  map( VGA2USB_PRODID_DVI2USB, V2UProductDVI2USB, "DVI2USB" )\
143  map( VGA2USB_PRODID_VGA2USB_LR, V2UProductVGA2USBLR, "VGA2USB LR" )\
144  map( VGA2USB_PRODID_VGA2USB_HR, V2UProductVGA2USBHR, "VGA2USB HR" )\
145  map( VGA2USB_PRODID_VGA2USB_PRO, V2UProductVGA2USBPro, "VGA2USB Pro" )\
146  map( VGA2USB_PRODID_VGA2USB_LR_RESPIN,V2UProductVGA2USBLRRespin,"VGA2USB LR")\
147  map( VGA2USB_PRODID_VGA2USB_HR_RESPIN,V2UProductVGA2USBHRRespin,"VGA2USB HR")\
148  map( VGA2USB_PRODID_VGA2USB_PRO_RESPIN,V2UProductVGA2USBProRespin,"VGA2USB Pro")\
149  map( VGA2USB_PRODID_DVI2USB_RESPIN,V2UProductDVI2USBRespin,"DVI2USB" )\
150  map( VGA2USB_PRODID_KVM2USB_LR, V2UProductKVM2USBLR, "KVM2USB LR" )\
151  map( VGA2USB_PRODID_KVM2USB_LR_RESPIN, V2UProductKVM2USBLRRespin, "KVM2USB LR")\
152  map( VGA2USB_PRODID_KVM2USB_PRO, V2UProductKVM2USBPro, "KVM2USB Pro" )\
153  map( VGA2USB_PRODID_DVI2USB_SOLO, V2UProductDVI2USBSolo, "DVI2USB Solo")\
154  map( VGA2USB_PRODID_DVI2USB_DUO, V2UProductDVI2USBDuo, "DVI2USB Duo" )\
155  map( VGA2USB_PRODID_VGA2FIFO, V2UProductVGA2FIFO, "VGA2FIFO" )\
156  map( VGA2USB_PRODID_KVM2FIFO, V2UProductKVM2FIFO, "KVMFIFO" )\
157  map( VGA2USB_PRODID_DVI2FIFO, V2UProductDVI2FIFO, "DVI2FIFO" )\
158  map( VGA2USB_PRODID_DAVINCI1, V2UProductDVI2Davinci1, "DVI2Davinci" )\
159  map( VGA2USB_PRODID_VGA2PCI, V2UProductVGA2PCI, "VGA2PCI" )\
160  map( VGA2USB_PRODID_GIOCONDA, V2UProductGioconda, "Gioconda" )\
161  map( VGA2USB_PRODID_DVI2PCI, V2UProductDVI2PCI, "DVI2PCI" )
162 
163 #endif /* _VGA2USB_ID_H_ */