tc.h 962 B

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