usioctl.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * This file is subject to the terms and conditions of the GNU General Public
  3.  * License.  See the file "COPYING" in the main directory of this archive
  4.  * for more details.
  5.  *
  6.  * usema/usemaclone-related stuff.
  7.  *
  8.  * `Inspired' by IRIX's sys/usioctl.h
  9.  *
  10.  * Mike.
  11.  */
  12. #ifndef _ASM_USIOCTL_H
  13. #define _ASM_USIOCTL_H
  14. /* ioctls */
  15. #define UIOC ('u' << 16 | 's' << 8)
  16. #define UIOCATTACHSEMA (UIOC|2) /* attach to sema */
  17. #define UIOCBLOCK (UIOC|3) /* block sync "intr"? */
  18. #define UIOCABLOCK (UIOC|4) /* block async */
  19. #define UIOCNOIBLOCK (UIOC|5) /* IRIX: block sync intr
  20.    Linux: block sync nointr */
  21. #define UIOCUNBLOCK (UIOC|6) /* unblock sync */
  22. #define UIOCAUNBLOCK (UIOC|7) /* unblock async */
  23. #define UIOCINIT (UIOC|8) /* init sema (async) */
  24. typedef struct usattach_s {
  25.   dev_t us_dev; /* attach dev */
  26.   void *us_handle; /* userland semaphore handle */
  27. } usattach_t;
  28. #endif /* _ASM_USIOCTL_H */