cleanup more ifxmips ssc reg acceses
[openwrt.git] / target / linux / danube / files / include / asm-mips / danube / danube_ioctl.h
1 /*
2  *   This program is free software; you can redistribute it and/or modify
3  *   it under the terms of the GNU General Public License as published by
4  *   the Free Software Foundation; either version 2 of the License, or
5  *   (at your option) any later version.
6  *
7  *   This program is distributed in the hope that it will be useful,
8  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
9  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  *   GNU General Public License for more details.
11  *
12  *   You should have received a copy of the GNU General Public License
13  *   along with this program; if not, write to the Free Software
14  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
15  *
16  *   Copyright (C) 2007 John Crispin <blogic@openwrt.org> 
17  *
18  */
19 #ifndef _DANUBE_IOCTL_H__
20 #define _DANUBE_IOCTL_H__
21
22 /*------------ LED */
23
24 struct danube_port_ioctl_parm
25 {
26         int port;
27         int pin;
28         int value;
29 };
30
31 #define DANUBE_PORT_IOC_MAGIC           0xbf
32 #define DANUBE_PORT_IOCOD                       _IOW(DANUBE_PORT_IOC_MAGIC,0,struct danube_port_ioctl_parm)
33 #define DANUBE_PORT_IOCPUDSEL           _IOW(DANUBE_PORT_IOC_MAGIC,1,struct danube_port_ioctl_parm)
34 #define DANUBE_PORT_IOCPUDEN            _IOW(DANUBE_PORT_IOC_MAGIC,2,struct danube_port_ioctl_parm)
35 #define DANUBE_PORT_IOCSTOFF            _IOW(DANUBE_PORT_IOC_MAGIC,3,struct danube_port_ioctl_parm)
36 #define DANUBE_PORT_IOCDIR                      _IOW(DANUBE_PORT_IOC_MAGIC,4,struct danube_port_ioctl_parm)
37 #define DANUBE_PORT_IOCOUTPUT           _IOW(DANUBE_PORT_IOC_MAGIC,5,struct danube_port_ioctl_parm)
38 #define DANUBE_PORT_IOCINPUT            _IOWR(DANUBE_PORT_IOC_MAGIC,6,struct danube_port_ioctl_parm)
39 #define DANUBE_PORT_IOCALTSEL0          _IOW(DANUBE_PORT_IOC_MAGIC,7,struct danube_port_ioctl_parm)
40 #define DANUBE_PORT_IOCALTSEL1          _IOW(DANUBE_PORT_IOC_MAGIC,8,struct danube_port_ioctl_parm)
41
42 #endif