Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * include/asm-mips/txx9pio.h
0003  * TX39/TX49 PIO controller definitions.
0004  *
0005  * This file is subject to the terms and conditions of the GNU General Public
0006  * License.  See the file "COPYING" in the main directory of this archive
0007  * for more details.
0008  */
0009 #ifndef __ASM_TXX9PIO_H
0010 #define __ASM_TXX9PIO_H
0011 
0012 #include <linux/types.h>
0013 
0014 struct txx9_pio_reg {
0015     __u32 dout;
0016     __u32 din;
0017     __u32 dir;
0018     __u32 od;
0019     __u32 flag[2];
0020     __u32 pol;
0021     __u32 intc;
0022     __u32 maskcpu;
0023     __u32 maskext;
0024 };
0025 
0026 int txx9_gpio_init(unsigned long baseaddr,
0027            unsigned int base, unsigned int num);
0028 
0029 #endif /* __ASM_TXX9PIO_H */