summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-07-25 23:43:19 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-07-25 23:43:19 +0000
commit22f7ffc8555204ff72d7ab512489346a825e8d93 (patch)
tree521edbcbe5bf6bee164ee36557f62e6206330d5d /share
parent5d7192ffe32015004e3517f709f0071665783e22 (diff)
document ioctls
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/man4.sparc/fga.438
1 files changed, 37 insertions, 1 deletions
diff --git a/share/man/man4/man4.sparc/fga.4 b/share/man/man4/man4.sparc/fga.4
index 5c1f647739d..2e28254d953 100644
--- a/share/man/man4/man4.sparc/fga.4
+++ b/share/man/man4/man4.sparc/fga.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fga.4,v 1.1 1999/07/25 23:05:53 jason Exp $
+.\" $OpenBSD: fga.4,v 1.2 1999/07/25 23:43:18 jason Exp $
.\"
.\" Copyright (c) 1999 Jason L. Wright (jason@thought.net)
.\" All rights reserved.
@@ -80,6 +80,42 @@ is set to
Toggling the switch when enabled, stops the kernel and starts the
kernel debugger
.Xr ddb 4 .
+.Sh IOCTLS
+The
+.Nm fga
+device responds to the following
+.Xr ioctl 2
+calls defined in <machine/fgaio.h>:
+.Bl -tag -width
+.It Dv FGAIOCSEM
+.Pq Li "struct fga_sem"
+Clear (release) the semaphore
+.Ar fgasem_num .
+The argument structure is defined as follows:
+.Bd -literal -offset indent
+struct fga_sem {
+ u_int8_t fgasem_num; /* semaphore number */
+ u_int8_t fgasem_val; /* semaphore value */
+};
+.Ed
+.It Dv FGAIOSSEM
+.Pq Li "struct fga_sem"
+Set (attempt to get) the semaphore
+.Ar fgasem_num .
+If successful,
+.Ar fgasem_val
+will have a value of 1, otherwise it will have a value of 0.
+.It Dv FGAIOCMBX
+.Pq Li "struct fga_sem"
+Clear (release) the mailbox
+.Ar fgasem_num .
+.It Dv FGAIOSMBX
+.Pq Li "struct fga_sem"
+Set (attempt to get) the mailbox
+.Ar fgasem_num .
+If successful,
+.Ar fgasem_val
+will have a value of 1, otherwise it will have a value of 0.
.Sh SEE ALSO
.Xr ioctl 2 ,
.Xr ddb 4 ,