cs.h 902 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * cs.h
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * The initial developer of the original code is David A. Hinds
  9. * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
  10. * are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
  11. *
  12. * (C) 1999 David A. Hinds
  13. */
  14. #ifndef _LINUX_CS_H
  15. #define _LINUX_CS_H
  16. #ifdef __KERNEL__
  17. #include <linux/interrupt.h>
  18. #endif
  19. /* For RequestConfiguration */
  20. typedef struct config_req_t {
  21. u_int Attributes;
  22. } config_req_t;
  23. /* Attributes for RequestConfiguration */
  24. #define CONF_ENABLE_IRQ 0x01
  25. #define CONF_ENABLE_DMA 0x02
  26. #define CONF_ENABLE_SPKR 0x04
  27. #define CONF_ENABLE_PULSE_IRQ 0x08
  28. #define CONF_ENABLE_ESR 0x10
  29. #define CONF_VALID_CLIENT 0x100
  30. #endif /* _LINUX_CS_H */