Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 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
/* Base minor for the char devices */
34
#define BRLVGER_MINOR           128
35
 
36
/* Size of some fields */
37
#define BRLVGER_HWVER_SIZE      2
38
#define BRLVGER_FWVER_SIZE      200 /* arbitrary, a long string */
39
#define BRLVGER_SERIAL_BIN_SIZE 8
40
#define BRLVGER_SERIAL_SIZE     ((2*BRLVGER_SERIAL_BIN_SIZE)+1)
41
 
42
struct brlvger_info {
43
        __u8 driver_version[12];
44
        __u8 driver_banner[200];
45
 
46
        __u32 display_length;
47
        /* All other char[] fields are strings except this one.
48
           Hardware version: first byte is major, second byte is minor. */
49
        __u8 hwver[BRLVGER_HWVER_SIZE];
50
        __u8 fwver[BRLVGER_FWVER_SIZE];
51
        __u8 serialnum[BRLVGER_SERIAL_SIZE];
52
};
53
 
54
#endif