fgaio.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* $OpenBSD: fgaio.h,v 1.2 2003/06/02 18:40:59 jason Exp $ */
  2. /*
  3. * Copyright (c) 1999 Jason L. Wright (jason@thought.net)
  4. * All rights reserved.
  5. *
  6. * This software was developed by Jason L. Wright under contract with
  7. * RTMX Incorporated (http://www.rtmx.com).
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  19. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  20. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  21. * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
  22. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  23. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  24. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  25. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  26. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  27. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  28. * POSSIBILITY OF SUCH DAMAGE.
  29. */
  30. /*
  31. * ioctls and flags for FORCE Gate Array 5000
  32. */
  33. struct fga_sem {
  34. u_int8_t fgasem_num; /* which semaphore/mailbox? */
  35. u_int8_t fgasem_val; /* value of semaphore/mailbox */
  36. };
  37. #define FGAIOCSEM _IOWR('F', 0x01, struct fga_sem) /* clear semaphore */
  38. #define FGAIOGSEM _IOWR('F', 0x02, struct fga_sem) /* get semaphore */
  39. #define FGAIOCMBX _IOWR('F', 0x03, struct fga_sem) /* clear mailbox */
  40. #define FGAIOGMBX _IOWR('F', 0x04, struct fga_sem) /* get mailbox */