blob: 729edadb491e40a6ef7d74be19e52f2ec30bb778 [file] [log] [blame]
Forest Bond92b96792009-06-13 07:38:31 -04001/*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 *
20 * File: usbpipe.h
21 *
22 * Purpose:
23 *
24 * Author: Warren Hsu
25 *
26 * Date: Mar. 30, 2005
27 *
28 */
29
30
31#ifndef __USBPIPE_H__
32#define __USBPIPE_H__
33
34#if !defined(__TTYPE_H__)
35#include "ttype.h"
36#endif
37#if !defined(__DEVICE_H__)
38#include "device.h"
39#endif
40
41
42
43/*--------------------- Export Definitions -------------------------*/
44
45/*--------------------- Export Classes ----------------------------*/
46
47/*--------------------- Export Variables --------------------------*/
48
49/*--------------------- Export Functions --------------------------*/
50#ifdef __cplusplus
51extern "C" { /* Assume C declarations for C++ */
52#endif /* __cplusplus */
53
54NTSTATUS
55PIPEnsControlOut(
56 IN PSDevice pDevice,
57 IN BYTE byRequest,
58 IN WORD wValue,
59 IN WORD wIndex,
60 IN WORD wLength,
61 IN PBYTE pbyBuffer
62 );
63
64
65
66NTSTATUS
67PIPEnsControlOutAsyn(
68 IN PSDevice pDevice,
69 IN BYTE byRequest,
70 IN WORD wValue,
71 IN WORD wIndex,
72 IN WORD wLength,
73 IN PBYTE pbyBuffer
74 );
75
76NTSTATUS
77PIPEnsControlIn(
78 IN PSDevice pDevice,
79 IN BYTE byRequest,
80 IN WORD wValue,
81 IN WORD wIndex,
82 IN WORD wLength,
83 IN OUT PBYTE pbyBuffer
84 );
85
86
87
88
89NTSTATUS
90PIPEnsInterruptRead(
91 IN PSDevice pDevice
92 );
93
94NTSTATUS
95PIPEnsBulkInUsbRead(
96 IN PSDevice pDevice,
97 IN PRCB pRCB
98 );
99
100NTSTATUS
101PIPEnsSendBulkOut(
102 IN PSDevice pDevice,
103 IN PUSB_SEND_CONTEXT pContext
104 );
105
106#ifdef __cplusplus
107} /* End of extern "C" { */
108#endif /* __cplusplus */
109
110
111
112
113#endif // __USBPIPE_H__
114
115
116