Path: blob/master/arch/mips/include/asm/dec/ioasic.h
17466 views
/*1* include/asm-mips/dec/ioasic.h2*3* DEC I/O ASIC access operations.4*5* Copyright (C) 2000, 2002, 2003 Maciej W. Rozycki6*7* This program is free software; you can redistribute it and/or8* modify it under the terms of the GNU General Public License9* as published by the Free Software Foundation; either version10* 2 of the License, or (at your option) any later version.11*/1213#ifndef __ASM_DEC_IOASIC_H14#define __ASM_DEC_IOASIC_H1516#include <linux/spinlock.h>17#include <linux/types.h>1819extern spinlock_t ioasic_ssr_lock;2021extern volatile u32 *ioasic_base;2223static inline void ioasic_write(unsigned int reg, u32 v)24{25ioasic_base[reg / 4] = v;26}2728static inline u32 ioasic_read(unsigned int reg)29{30return ioasic_base[reg / 4];31}3233extern void init_ioasic_irqs(int base);3435extern void dec_ioasic_clocksource_init(void);3637#endif /* __ASM_DEC_IOASIC_H */383940