Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *  include/asm-mips/dec/ioasic.h
0004  *
0005  *  DEC I/O ASIC access operations.
0006  *
0007  *  Copyright (C) 2000, 2002, 2003  Maciej W. Rozycki
0008  */
0009 
0010 #ifndef __ASM_DEC_IOASIC_H
0011 #define __ASM_DEC_IOASIC_H
0012 
0013 #include <linux/spinlock.h>
0014 #include <linux/types.h>
0015 
0016 extern spinlock_t ioasic_ssr_lock;
0017 
0018 extern volatile u32 *ioasic_base;
0019 
0020 static inline void ioasic_write(unsigned int reg, u32 v)
0021 {
0022     ioasic_base[reg / 4] = v;
0023 }
0024 
0025 static inline u32 ioasic_read(unsigned int reg)
0026 {
0027     return ioasic_base[reg / 4];
0028 }
0029 
0030 extern void init_ioasic_irqs(int base);
0031 
0032 extern int dec_ioasic_clocksource_init(void);
0033 
0034 #endif /* __ASM_DEC_IOASIC_H */