~ubuntu-branches/ubuntu/trusty/argyll/trusty-proposed

« back to all changes in this revision

Viewing changes to libusb1/libusb/os/driver/driver_api.h

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-02-12 00:35:39 UTC
  • mfrom: (13.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20140212003539-24tautzlitsiz61w
Tags: 1.5.1-5ubuntu1
* Merge from Debian unstable. (LP: #1275572) Remaining changes:
  - debian/control:
    + Build-depend on libtiff-dev rather than libtiff4-dev.
  - debian/control, debian/patches/06_fix_udev_rule.patch:
    + Fix udev rules to actually work; ENV{ACL_MANAGE} has
      stopped working ages ago, and with logind it's now the
      "uaccess" tag. Dropping also consolekit from Recommends.
  - debian/patches/drop-usb-db.patch:
    + Use hwdb builtin, instead of the obsolete usb-db
      in the udev rules.
* debian/patches/05_ftbfs-underlinkage.diff:
  - Dropped change, no needed anymore.
* Refresh the patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* LIBUSB-WIN32, Generic Windows USB Library
2
 
 * Copyright (c) 2002-2005 Stephan Meyer <ste_meyer@web.de>
3
 
 *
4
 
 * This program is free software; you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License as published by
6
 
 * the Free Software Foundation; either version 2 of the License, or
7
 
 * (at your option) any later version.
8
 
 *
9
 
 * This program is distributed in the hope that it will be useful,
10
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
 * GNU General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
 
 */
18
 
 
19
 
 
20
 
#ifndef __DRIVER_API_H__
21
 
#define __DRIVER_API_H__
22
 
 
23
 
enum {
24
 
  LIBUSB0_DEBUG_OFF,
25
 
  LIBUSB0_DEBUG_ERR,
26
 
  LIBUSB0_DEBUG_MSG,
27
 
};
28
 
 
29
 
 
30
 
/* 64k */
31
 
#define LIBUSB0_MAX_READ_WRITE 0x10000
32
 
 
33
 
#define LIBUSB0_MAX_NUMBER_OF_DEVICES 256
34
 
#define LIBUSB0_MAX_NUMBER_OF_CHILDREN 32
35
 
 
36
 
#define LIBUSB0_IOCTL_SET_CONFIGURATION CTL_CODE(FILE_DEVICE_UNKNOWN,\
37
 
0x801, METHOD_BUFFERED, FILE_ANY_ACCESS)
38
 
 
39
 
#define LIBUSB0_IOCTL_GET_CONFIGURATION CTL_CODE(FILE_DEVICE_UNKNOWN,\
40
 
0x802, METHOD_BUFFERED, FILE_ANY_ACCESS)
41
 
 
42
 
#define LIBUSB0_IOCTL_SET_INTERFACE CTL_CODE(FILE_DEVICE_UNKNOWN,\
43
 
0x803, METHOD_BUFFERED, FILE_ANY_ACCESS)
44
 
 
45
 
#define LIBUSB0_IOCTL_GET_INTERFACE CTL_CODE(FILE_DEVICE_UNKNOWN,\
46
 
0x804, METHOD_BUFFERED, FILE_ANY_ACCESS)
47
 
 
48
 
#define LIBUSB0_IOCTL_SET_FEATURE CTL_CODE(FILE_DEVICE_UNKNOWN,\
49
 
0x805, METHOD_BUFFERED, FILE_ANY_ACCESS)
50
 
 
51
 
#define LIBUSB0_IOCTL_CLEAR_FEATURE CTL_CODE(FILE_DEVICE_UNKNOWN,\
52
 
0x806, METHOD_BUFFERED, FILE_ANY_ACCESS)
53
 
 
54
 
#define LIBUSB0_IOCTL_GET_STATUS CTL_CODE(FILE_DEVICE_UNKNOWN,\
55
 
0x807, METHOD_BUFFERED, FILE_ANY_ACCESS)
56
 
 
57
 
#define LIBUSB0_IOCTL_SET_DESCRIPTOR CTL_CODE(FILE_DEVICE_UNKNOWN,\
58
 
0x808, METHOD_BUFFERED, FILE_ANY_ACCESS)
59
 
 
60
 
#define LIBUSB0_IOCTL_GET_DESCRIPTOR CTL_CODE(FILE_DEVICE_UNKNOWN,\
61
 
0x809, METHOD_BUFFERED, FILE_ANY_ACCESS)
62
 
 
63
 
#define LIBUSB0_IOCTL_INTERRUPT_OR_BULK_WRITE CTL_CODE(FILE_DEVICE_UNKNOWN,\
64
 
0x80A, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
65
 
 
66
 
#define LIBUSB0_IOCTL_INTERRUPT_OR_BULK_READ CTL_CODE(FILE_DEVICE_UNKNOWN,\
67
 
0x80B, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
68
 
 
69
 
#define LIBUSB0_IOCTL_VENDOR_WRITE CTL_CODE(FILE_DEVICE_UNKNOWN,\
70
 
0x80C, METHOD_BUFFERED, FILE_ANY_ACCESS)
71
 
 
72
 
#define LIBUSB0_IOCTL_VENDOR_READ CTL_CODE(FILE_DEVICE_UNKNOWN,\
73
 
0x80D, METHOD_BUFFERED, FILE_ANY_ACCESS)
74
 
 
75
 
#define LIBUSB0_IOCTL_RESET_ENDPOINT CTL_CODE(FILE_DEVICE_UNKNOWN,\
76
 
0x80E, METHOD_BUFFERED, FILE_ANY_ACCESS)
77
 
 
78
 
#define LIBUSB0_IOCTL_ABORT_ENDPOINT CTL_CODE(FILE_DEVICE_UNKNOWN,\
79
 
0x80F, METHOD_BUFFERED, FILE_ANY_ACCESS)
80
 
 
81
 
#define LIBUSB0_IOCTL_RESET_DEVICE CTL_CODE(FILE_DEVICE_UNKNOWN,\
82
 
0x810, METHOD_BUFFERED, FILE_ANY_ACCESS)
83
 
 
84
 
#define LIBUSB0_IOCTL_SET_DEBUG_LEVEL CTL_CODE(FILE_DEVICE_UNKNOWN,\
85
 
0x811, METHOD_BUFFERED, FILE_ANY_ACCESS)
86
 
 
87
 
#define LIBUSB0_IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_UNKNOWN,\
88
 
0x812, METHOD_BUFFERED, FILE_ANY_ACCESS)
89
 
 
90
 
#define LIBUSB0_IOCTL_ISOCHRONOUS_WRITE CTL_CODE(FILE_DEVICE_UNKNOWN,\
91
 
0x813, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
92
 
 
93
 
#define LIBUSB0_IOCTL_ISOCHRONOUS_READ CTL_CODE(FILE_DEVICE_UNKNOWN,\
94
 
0x814, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
95
 
 
96
 
#define LIBUSB0_IOCTL_CLAIM_INTERFACE CTL_CODE(FILE_DEVICE_UNKNOWN,\
97
 
0x815, METHOD_BUFFERED, FILE_ANY_ACCESS)
98
 
 
99
 
#define LIBUSB0_IOCTL_RELEASE_INTERFACE CTL_CODE(FILE_DEVICE_UNKNOWN,\
100
 
0x816, METHOD_BUFFERED, FILE_ANY_ACCESS)
101
 
 
102
 
#include <pshpack1.h> 
103
 
 
104
 
 
105
 
typedef struct {
106
 
  unsigned int timeout;
107
 
  union {
108
 
    struct
109
 
    {
110
 
      unsigned int configuration;
111
 
    } configuration;
112
 
    struct
113
 
    {
114
 
      unsigned int interface;
115
 
      unsigned int altsetting;
116
 
    } interface;
117
 
    struct
118
 
    {
119
 
      unsigned int endpoint;
120
 
      unsigned int packet_size;
121
 
    } endpoint;    
122
 
    struct
123
 
    {
124
 
      unsigned int type;
125
 
      unsigned int recipient;
126
 
      unsigned int request;
127
 
      unsigned int value;
128
 
      unsigned int index;
129
 
    } vendor;
130
 
    struct
131
 
    {
132
 
      unsigned int recipient;
133
 
      unsigned int feature;
134
 
      unsigned int index;
135
 
    } feature;
136
 
    struct
137
 
    {
138
 
      unsigned int recipient;
139
 
      unsigned int index;
140
 
      unsigned int status;
141
 
    } status;
142
 
    struct
143
 
    {
144
 
      unsigned int type;
145
 
      unsigned int index;
146
 
      unsigned int language_id;
147
 
      unsigned int recipient;
148
 
    } descriptor;    
149
 
    struct
150
 
    {
151
 
      unsigned int level;
152
 
    } debug;
153
 
    struct
154
 
    {
155
 
      unsigned int major;
156
 
      unsigned int minor;
157
 
      unsigned int micro;
158
 
      unsigned int nano;
159
 
    } version;
160
 
  };
161
 
} libusb0_request;
162
 
    
163
 
#include <poppack.h>
164
 
 
165
 
#endif