Import 2.3.18pre1
[davej-history.git] / include / asm-mips / usioctl.h
blob1afa44c9a015c188e71bc9ea081cd452829bdb1b
1 /*
2 * usema/usemaclone-related stuff.
4 * `Inspired' by IRIX's sys/usioctl.h
6 * Mike.
7 */
9 /* ioctls */
10 #define UIOC ('u' << 16 | 's' << 8)
12 #define UIOCATTACHSEMA (UIOC|2) /* attach to sema */
13 #define UIOCBLOCK (UIOC|3) /* block sync "intr"? */
14 #define UIOCABLOCK (UIOC|4) /* block async */
15 #define UIOCNOIBLOCK (UIOC|5) /* IRIX: block sync intr
16 Linux: block sync nointr */
17 #define UIOCUNBLOCK (UIOC|6) /* unblock sync */
18 #define UIOCAUNBLOCK (UIOC|7) /* unblock async */
19 #define UIOCINIT (UIOC|8) /* init sema (async) */
21 typedef struct usattach_s {
22 dev_t us_dev; /* attach dev */
23 void *us_handle; /* userland semaphore handle */
24 } usattach_t;