dsp56k.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * linux/include/asm-m68k/dsp56k.h - defines and declarations for
  3. * DSP56k device driver
  4. *
  5. * Copyright (C) 1996,1997 Fredrik Noring, lars brinkhoff & Tomas Berndtsson
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file COPYING in the main directory of this archive
  9. * for more details.
  10. */
  11. /* Used for uploading DSP binary code */
  12. struct dsp56k_upload {
  13. int len;
  14. char __user *bin;
  15. };
  16. /* For the DSP host flags */
  17. struct dsp56k_host_flags {
  18. int dir; /* Bit field. 1 = write output bit, 0 = do nothing.
  19. * 0x0000 means reading only, 0x0011 means
  20. * writing the bits stored in `out' on HF0 and HF1.
  21. * Note that HF2 and HF3 can only be read.
  22. */
  23. int out; /* Bit field like above. */
  24. int status; /* Host register's current state is returned */
  25. };
  26. /* ioctl command codes */
  27. #define DSP56K_UPLOAD 1 /* Upload DSP binary program */
  28. #define DSP56K_SET_TX_WSIZE 2 /* Host transmit word size (1-4) */
  29. #define DSP56K_SET_RX_WSIZE 3 /* Host receive word size (1-4) */
  30. #define DSP56K_HOST_FLAGS 4 /* Host flag registers */
  31. #define DSP56K_HOST_CMD 5 /* Trig Host Command (0-31) */