1f08c3bdfSopenharmony_ci/*
2f08c3bdfSopenharmony_ci *
3f08c3bdfSopenharmony_ci *   Copyright (c) International Business Machines  Corp., 2001
4f08c3bdfSopenharmony_ci *
5f08c3bdfSopenharmony_ci *   This program is free software;  you can redistribute it and/or modify
6f08c3bdfSopenharmony_ci *   it under the terms of the GNU General Public License as published by
7f08c3bdfSopenharmony_ci *   the Free Software Foundation; either version 2 of the License, or
8f08c3bdfSopenharmony_ci *   (at your option) any later version.
9f08c3bdfSopenharmony_ci *
10f08c3bdfSopenharmony_ci *   This program is distributed in the hope that it will be useful,
11f08c3bdfSopenharmony_ci *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
12f08c3bdfSopenharmony_ci *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
13f08c3bdfSopenharmony_ci *   the GNU General Public License for more details.
14f08c3bdfSopenharmony_ci *
15f08c3bdfSopenharmony_ci *   You should have received a copy of the GNU General Public License
16f08c3bdfSopenharmony_ci *   along with this program;  if not, write to the Free Software
17f08c3bdfSopenharmony_ci *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18f08c3bdfSopenharmony_ci *
19f08c3bdfSopenharmony_ci*/
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_ci#define TEST_USB_DRIVER_NAME	"Usb test module"
22f08c3bdfSopenharmony_ci#define DEVICE_NAME		"/dev/tusb"
23f08c3bdfSopenharmony_ci#define TUSB_MAJOR      252
24f08c3bdfSopenharmony_ci
25f08c3bdfSopenharmony_ci
26f08c3bdfSopenharmony_ci#define MAG_NUM 		's'
27f08c3bdfSopenharmony_ci#define FIND_DEV		_IO(MAG_NUM, 1)
28f08c3bdfSopenharmony_ci#define TEST_FIND_HCD		_IO(MAG_NUM, 2)
29f08c3bdfSopenharmony_ci#define TEST_HCD_PROBE		_IO(MAG_NUM, 3)
30f08c3bdfSopenharmony_ci#define TEST_HCD_REMOVE		_IO(MAG_NUM, 4)
31f08c3bdfSopenharmony_ci#define TEST_HCD_SUSPEND	_IO(MAG_NUM, 5)
32f08c3bdfSopenharmony_ci#define TEST_HCD_RESUME		_IO(MAG_NUM, 6)
33f08c3bdfSopenharmony_ci#ifndef SET_MODULE_OWNER
34f08c3bdfSopenharmony_ci#define SET_MODULE_OWNER(dev) ((dev)->owner = THIS_MODULE)
35f08c3bdfSopenharmony_ci#endif
36f08c3bdfSopenharmony_ci
37f08c3bdfSopenharmony_ci/*
38f08c3bdfSopenharmony_ci * structures for USB test driver
39f08c3bdfSopenharmony_ci */
40f08c3bdfSopenharmony_cistruct tusb_interface {
41f08c3bdfSopenharmony_ci        int     in_len;         // input data length
42f08c3bdfSopenharmony_ci        caddr_t in_data;        // input data
43f08c3bdfSopenharmony_ci        int     out_rc;         // return code from the test
44f08c3bdfSopenharmony_ci        int     out_len;        // output data length
45f08c3bdfSopenharmony_ci        caddr_t out_data;       // output data
46f08c3bdfSopenharmony_ci};
47f08c3bdfSopenharmony_citypedef struct tusb_interface tusb_interface_t;
48