tcinfo.h 853 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Various TURBOchannel related stuff
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Information obtained through the get_tcinfo prom call
  9. * created from:
  10. *
  11. * TURBOchannel Firmware Specification
  12. *
  13. * EK-TCAAD-FS-004
  14. * from Digital Equipment Corporation
  15. *
  16. * Copyright (c) 1998 Harald Koerfgen
  17. */
  18. typedef struct {
  19. int revision;
  20. int clk_period;
  21. int slot_size;
  22. int io_timeout;
  23. int dma_range;
  24. int max_dma_burst;
  25. int parity;
  26. int reserved[4];
  27. } tcinfo;
  28. #define MAX_SLOT 7
  29. typedef struct {
  30. unsigned long base_addr;
  31. unsigned char name[9];
  32. unsigned char vendor[9];
  33. unsigned char firmware[9];
  34. int interrupt;
  35. int flags;
  36. } slot_info;
  37. /*
  38. * Values for flags
  39. */
  40. #define FREE 1<<0
  41. #define IN_USE 1<<1