404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.16.139.76: ~ $
/*
 * include/asm-sh/snapgear.h
 *
 * Modified version of io_se.h for the snapgear-specific functions.
 *
 * May be copied or modified under the terms of the GNU General Public
 * License.  See linux/COPYING for more information.
 *
 * IO functions for a SnapGear
 */

#ifndef _ASM_SH_IO_SNAPGEAR_H
#define _ASM_SH_IO_SNAPGEAR_H

#define __IO_PREFIX	snapgear
#include <asm/io_generic.h>

/*
 * We need to remember what was written to the ioport as some bits
 * are shared with other functions and you cannot read back what was
 * written :-|
 *
 * Bit        Read                   Write
 * -----------------------------------------------
 * D0         DCD on ttySC1          power
 * D1         Reset Switch           heatbeat
 * D2         ttySC0 CTS (7100)      LAN
 * D3         -                      WAN
 * D4         ttySC0 DCD (7100)      CONSOLE
 * D5         -                      ONLINE
 * D6         -                      VPN
 * D7         -                      DTR on ttySC1
 * D8         -                      ttySC0 RTS (7100)
 * D9         -                      ttySC0 DTR (7100)
 * D10        -                      RTC SCLK
 * D11        RTC DATA               RTC DATA
 * D12        -                      RTS RESET
 */

#define SECUREEDGE_IOPORT_ADDR ((volatile short *) 0xb0000000)
extern unsigned short secureedge5410_ioport;

#define SECUREEDGE_WRITE_IOPORT(val, mask) (*SECUREEDGE_IOPORT_ADDR = \
	 (secureedge5410_ioport = \
			((secureedge5410_ioport & ~(mask)) | ((val) & (mask)))))
#define SECUREEDGE_READ_IOPORT() \
	 ((*SECUREEDGE_IOPORT_ADDR&0x0817) | (secureedge5410_ioport&~0x0817))

#endif /* _ASM_SH_IO_SNAPGEAR_H */

Filemanager

Name Type Size Permission Actions
highlander.h File 9.87 KB 0644
hp6xx.h File 1.48 KB 0644
lboxre2.h File 726 B 0644
magicpanelr2.h File 1.91 KB 0644
mangle-port.h File 1.53 KB 0644
microdev.h File 3.29 KB 0644
r2d.h File 2.75 KB 0644
romimage.h File 200 B 0644
sdk7780.h File 3.03 KB 0644
secureedge5410.h File 1.62 KB 0644
sh2007.h File 3.43 KB 0644
sh7763rdp.h File 1.3 KB 0644
sh7785lcr.h File 1.76 KB 0644
shmin.h File 192 B 0644
titan.h File 529 B 0644
urquell.h File 2.9 KB 0644