• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

fli_ioctl.h

Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (c) 2000 Finger Lakes Instrumentation (FLI), LLC.
00004   All rights reserved.
00005 
00006   Redistribution and use in source and binary forms, with or without
00007   modification, are permitted provided that the following conditions
00008   are met:
00009 
00010         Redistributions of source code must retain the above copyright
00011         notice, this list of conditions and the following disclaimer.
00012 
00013         Redistributions in binary form must reproduce the above
00014         copyright notice, this list of conditions and the following
00015         disclaimer in the documentation and/or other materials
00016         provided with the distribution.
00017 
00018         Neither the name of Finger Lakes Instrumentation (FLI), LLC
00019         nor the names of its contributors may be used to endorse or
00020         promote products derived from this software without specific
00021         prior written permission.
00022 
00023   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00024   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00025   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00026   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00027   REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00028   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00029   BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00030   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00031   CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00032   LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
00033   ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00034   POSSIBILITY OF SUCH DAMAGE.
00035 
00036   ======================================================================
00037 
00038   Finger Lakes Instrumentation (FLI)
00039   web: http://www.fli-cam.com
00040   email: fli@rpa.net
00041 
00042 */
00043 
00044 #ifndef _FLI_IOCTL_H
00045 #define _FLI_IOCTL_H
00046 
00047 #include <asm/ioctl.h>
00048 
00049 /* 8-bit special value to identify ioctl 'type' */
00050 #define FLI_IOCTL_TYPE 'F'
00051 
00052 /* Macros declaring ioctl commands and the variables they operate on */
00053 #define FLI_IOCTL_MISC_CMDS                             \
00054   FLI_IOCTL_CMD(FLI_RESET_PORT_VALUES, **NONE**)        \
00055   FLI_IOCTL_CMD(FLI_LOCK_PORT, **NONE**)                \
00056   FLI_IOCTL_CMD(FLI_UNLOCK_PORT, **NONE**)
00057 
00058 #define FLI_IOCTL_SPECIAL_SET_CMDS                      \
00059   FLI_IOCTL_CMD(FLI_SET_DMABUFFSIZE, dmabuffsize)
00060 
00061 #define FLI_IOCTL_SET_CMDS                      \
00062   FLI_IOCTL_CMD(FLI_SET_DMATHRESH, dmathresh)   \
00063   FLI_IOCTL_CMD(FLI_SET_DTO, dto)               \
00064   FLI_IOCTL_CMD(FLI_SET_RTO, rto)               \
00065   FLI_IOCTL_CMD(FLI_SET_WTO, wto)               \
00066   FLI_IOCTL_CMD(FLI_SET_LTL, ltl)               \
00067   FLI_IOCTL_CMD(FLI_SET_DIR, dir)               \
00068   FLI_IOCTL_CMD(FLI_SET_NUMREAD, numread)       \
00069   FLI_IOCTL_CMD(FLI_SET_NUMWRITE, numwrite)     \
00070   FLI_IOCTL_CMD(FLI_SET_NUMDTO, numdto)         \
00071   FLI_IOCTL_CMD(FLI_SET_NUMRTO, numrto)         \
00072   FLI_IOCTL_CMD(FLI_SET_NUMWTO, numwto)
00073 
00074 #define FLI_IOCTL_GET_CMDS                              \
00075   FLI_IOCTL_CMD(FLI_GET_DMABUFFSIZE, dmabuffsize)       \
00076   FLI_IOCTL_CMD(FLI_GET_DMATHRESH, dmathresh)           \
00077   FLI_IOCTL_CMD(FLI_GET_DTO, dto)                       \
00078   FLI_IOCTL_CMD(FLI_GET_RTO, rto)                       \
00079   FLI_IOCTL_CMD(FLI_GET_WTO, wto)                       \
00080   FLI_IOCTL_CMD(FLI_GET_DIR, dir)                       \
00081   FLI_IOCTL_CMD(FLI_GET_LTL, ltl)                       \
00082   FLI_IOCTL_CMD(FLI_GET_NUMREAD, numread)               \
00083   FLI_IOCTL_CMD(FLI_GET_NUMWRITE, numwrite)             \
00084   FLI_IOCTL_CMD(FLI_GET_NUMDTO, numdto)                 \
00085   FLI_IOCTL_CMD(FLI_GET_NUMRTO, numrto)                 \
00086   FLI_IOCTL_CMD(FLI_GET_NUMWTO, numwto)
00087 
00088 /* Enumerate ioctl numbers */
00089 #undef FLI_SET_CMD
00090 #define FLI_IOCTL_CMD(cmd, var) cmd##_NUM,
00091 
00092 enum {
00093   FLI_IOCTL_MISC_CMDS
00094   FLI_IOCTL_SPECIAL_SET_CMDS
00095   FLI_IOCTL_SET_CMDS
00096   FLI_IOCTL_GET_CMDS
00097 };
00098 
00099 /* Enumerate the actual ioctl commands  */
00100 #undef FLI_IOCTL_CMD
00101 #define FLI_IOCTL_CMD(cmd, var)                 \
00102   enum {cmd = _IO(FLI_IOCTL_TYPE, cmd##_NUM)};
00103 
00104 FLI_IOCTL_MISC_CMDS;
00105 
00106 #undef FLI_IOCTL_CMD
00107 #define FLI_IOCTL_CMD(cmd, var)                         \
00108   enum {cmd = _IOW(FLI_IOCTL_TYPE, cmd##_NUM, int)};
00109 
00110 FLI_IOCTL_SPECIAL_SET_CMDS;
00111 FLI_IOCTL_SET_CMDS;
00112 
00113 #undef FLI_IOCTL_CMD
00114 #define FLI_IOCTL_CMD(cmd, var )                        \
00115   enum {cmd = _IOR(FLI_IOCTL_TYPE, cmd##_NUM, int)};
00116 
00117 FLI_IOCTL_GET_CMDS;
00118 
00119 #endif /* _FLI_IOCTL_H */

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal