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 ]

Diff markup

Differences between /drivers/devices.h (Article 9) and /drivers/devices.h (Article 9.5)


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

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