1/*
2 *      Tieman Voyager braille display USB driver.
3 *
4 *      Copyright 2001-2002 Stephane Dalton <sdalton@videotron.ca>
5 *                      and St�phane Doyon  <s.doyon@videotron.ca>
6 *            Maintained by St�phane Doyon  <s.doyon@videotron.ca>.
7 */
8/*
9 *  This program is free software; you can redistribute it and/or modify
10 *  it under the terms of the GNU General Public License as published by
11 *  the Free Software Foundation; either version 2 of the License, or
12 *  (at your option) any later version.
13 *
14 *  This program is distributed in the hope that it will be useful,
15 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *  GNU General Public License for more details.
18 *
19 *  You should have received a copy of the GNU General Public License
20 *  along with this program; if not, write to the Free Software
21 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22 */
23
24#ifndef _LINUX_BRLVGER_H
25#define _LINUX_BRLVGER_H
26
27/* Ioctl request codes */
28#define BRLVGER_GET_INFO	0
29#define BRLVGER_DISPLAY_ON	2
30#define BRLVGER_DISPLAY_OFF	3
31#define BRLVGER_BUZZ		4
32
33/* Number of supported devices, and range of covered minors */
34#define MAX_NR_BRLVGER_DEVS	4
35
36/* Base minor for the char devices */
37#define BRLVGER_MINOR		128
38
39/* Size of some fields */
40#define BRLVGER_HWVER_SIZE	2
41#define BRLVGER_FWVER_SIZE	200 /* arbitrary, a long string */
42#define BRLVGER_SERIAL_BIN_SIZE	8
43#define BRLVGER_SERIAL_SIZE	((2*BRLVGER_SERIAL_BIN_SIZE)+1)
44
45struct brlvger_info {
46	__u8 driver_version[12];
47	__u8 driver_banner[200];
48
49	__u32 display_length;
50	/* All other char[] fields are strings except this one.
51	   Hardware version: first byte is major, second byte is minor. */
52	__u8 hwver[BRLVGER_HWVER_SIZE];
53	__u8 fwver[BRLVGER_FWVER_SIZE];
54	__u8 serialnum[BRLVGER_SERIAL_SIZE];
55};
56
57#endif
58