| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | */ | 
| Maciej W. Rozycki | a5fc9c0 | 2005-07-01 16:10:40 +0000 | [diff] [blame] | 10 | #ifndef __ASM_DEC_TC_H | 
|  | 11 | #define __ASM_DEC_TC_H | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 |  | 
|  | 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 | /* | 
| Maciej W. Rozycki | a5fc9c0 | 2005-07-01 16:10:40 +0000 | [diff] [blame] | 37 | * Return TURBOchannel clock frequency in Hz | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | */ | 
|  | 39 | extern unsigned long get_tc_speed(void); | 
|  | 40 |  | 
| Maciej W. Rozycki | a5fc9c0 | 2005-07-01 16:10:40 +0000 | [diff] [blame] | 41 | #endif /* __ASM_DEC_TC_H */ |