Linux 2.6.25.20
[linux/fpc-iii.git] / include / asm-mips / dec / ioasic.h
blob486a5b0a1302b1aa9f7ee1214b16aa894259c6ba
1 /*
2 * include/asm-mips/dec/ioasic.h
4 * DEC I/O ASIC access operations.
6 * Copyright (C) 2000, 2002, 2003 Maciej W. Rozycki
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version
11 * 2 of the License, or (at your option) any later version.
14 #ifndef __ASM_DEC_IOASIC_H
15 #define __ASM_DEC_IOASIC_H
17 #include <linux/spinlock.h>
18 #include <linux/types.h>
20 extern spinlock_t ioasic_ssr_lock;
22 extern volatile u32 *ioasic_base;
24 static inline void ioasic_write(unsigned int reg, u32 v)
26 ioasic_base[reg / 4] = v;
29 static inline u32 ioasic_read(unsigned int reg)
31 return ioasic_base[reg / 4];
34 extern void init_ioasic_irqs(int base);
36 #endif /* __ASM_DEC_IOASIC_H */