SimpleOS

LXR

Navigation



Site hébergé par : enix

The LXR Cross Referencer for SOS

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Article:1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 6.5 ] [ 7 ] [ 7.5 ] [ 8 ] [ 9 ] [ 9.5 ]

001 /* Copyright (C) 2005      David Decotigny, Thomas Petazzoni
002 
003    This program is free software; you can redistribute it and/or
004    modify it under the terms of the GNU General Public License
005    as published by the Free Software Foundation; either version 2
006    of the License, or (at your option) any later version.
007 
008    This program is distributed in the hope that it will be useful,
009    but WITHOUT ANY WARRANTY; without even the implied warranty of
010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
011    GNU General Public License for more details.
012 
013    You should have received a copy of the GNU General Public License
014    along with this program; if not, write to the Free Software
015    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
016    USA.
017 */
018 #ifndef _SOS_DEVICES_H_
019 #define _SOS_DEVICES_H_
020 
021 /**
022  *@file devices.h
023  *
024  * This file contains definitions concerning device drivers that must
025  * be shared between userspace applications and the kernel. They are
026  * mostly major numbers, IOCTL commands and parameters.
027  *
028  * This file must be built so that it can be safely included both from
029  * user applications and the kernel.
030  */
031 
032 /* For /dev/zero & /dev/null devices */
033 #define SOS_CHARDEV_ZERO_MAJOR            1
034 #define SOS_CHARDEV_ZERO_MINOR            0
035 #define SOS_CHARDEV_NULL_MINOR            1
036 
037 /* For memory char devices (/dev/mem and /dev/kmem) */
038 #define SOS_CHARDEV_MEM_MAJOR             2
039 #define SOS_CHARDEV_KMEM_MINOR            0 /* /dev/kmem */
040 #define SOS_CHARDEV_PHYSMEM_MINOR         1 /* /dev/mem */
041 
042 /* TTY major and minor*/
043 #define SOS_CHARDEV_TTY_MAJOR             3
044 #define SOS_CHARDEV_CONSOLE_MINOR         0
045 #define SOS_CHARDEV_SERIAL_MINOR          1
046 
047 /* TTY IOCTL commands */
048 #define SOS_IOCTL_TTY_SETPARAM            1
049 #define SOS_IOCTL_TTY_RESETPARAM          2
050 
051 /* TTY IOCTL command parameters for SOS_IOCTL_TTY_SETPARAM and
052    SOS_IOCTL_TTY_RESETPARAM */
053 #define SOS_IOCTLPARAM_TTY_CANON          1
054 #define SOS_IOCTLPARAM_TTY_ECHO           2
055 
056 /** IDE major */
057 #define SOS_BLOCKDEV_IDE_MAJOR            1
058 
059 /** Generic hardrive IOCTL: flush caches to disk */
060 #define SOS_IOCTL_BLOCKDEV_SYNC           1
061 
062 
063 #endif /* _SOS_DEVICE_H_ */

source navigation ] diff markup ] identifier search ] general search ]