source: svn/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/asm/dec/ioasic.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 793 bytes
Line 
1/*
2 *      include/asm-mips/dec/ioasic.h
3 *
4 *      DEC I/O ASIC access operations.
5 *
6 *      Copyright (C) 2000, 2002, 2003  Maciej W. Rozycki
7 *
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.
12 */
13
14#ifndef __ASM_DEC_IOASIC_H
15#define __ASM_DEC_IOASIC_H
16
17#include <linux/types.h>
18
19extern spinlock_t ioasic_ssr_lock;
20
21extern volatile __u32 *ioasic_base;
22
23static inline void ioasic_write(unsigned int reg, __u32 v)
24{
25        ioasic_base[reg / 4] = v;
26}
27
28static inline __u32 ioasic_read(unsigned int reg)
29{
30        return ioasic_base[reg / 4];
31}
32
33extern void init_ioasic_irqs(int base);
34
35#endif /* __ASM_DEC_IOASIC_H */
Note: See TracBrowser for help on using the repository browser.