tc.h 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Interface to the TURBOchannel related routines
  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. * Copyright (c) 1998 Harald Koerfgen
  9. */
  10. #ifndef __ASM_DEC_TC_H
  11. #define __ASM_DEC_TC_H
  12. /*
  13. * Search for a TURBOchannel Option Module
  14. * with a certain name. Returns slot number
  15. * of the first card not in use or -ENODEV
  16. * if none found.
  17. */
  18. extern int search_tc_card(const char *);
  19. /*
  20. * Marks the card in slot as used
  21. */
  22. extern void claim_tc_card(int);
  23. /*
  24. * Marks the card in slot as free
  25. */
  26. extern void release_tc_card(int);
  27. /*
  28. * Return base address of card in slot
  29. */
  30. extern unsigned long get_tc_base_addr(int);
  31. /*
  32. * Return interrupt number of slot
  33. */
  34. extern unsigned long get_tc_irq_nr(int);
  35. /*
  36. * Return TURBOchannel clock frequency in Hz
  37. */
  38. extern unsigned long get_tc_speed(void);
  39. #endif /* __ASM_DEC_TC_H */