ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:21.91 GB of 70.42 GB (31.11%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ src/ linux-headers-3.0.0-14/ arch/ arm/ plat-mxc/ include/ mach/ - drwxr-xr-x

Directory:
Viewing file:     hardware.h (4.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
 * Copyright 2008 Juergen Beisert, kernel@pengutronix.de
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301, USA.
 */

#ifndef __ASM_ARCH_MXC_HARDWARE_H__
#define __ASM_ARCH_MXC_HARDWARE_H__

#include <asm/sizes.h>

#ifdef __ASSEMBLER__
#define IOMEM(addr)    (addr)
#else
#define IOMEM(addr)    ((void __force __iomem *)(addr))
#endif

#define IMX_IO_P2V_MODULE(addr, module)                    \
    (((addr) - module ## _BASE_ADDR) < module ## _SIZE ?        \
     (addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0)

/*
 * This is rather complicated for humans and ugly to verify, but for a machine
 * it's OK.  Still more as it is usually only applied to constants.  The upsides
 * on using this approach are:
 *
 *  - same mapping on all i.MX machines
 *  - works for assembler, too
 *  - no need to nurture #defines for virtual addresses
 *
 * The downside it, it's hard to verify (but I have a script for that).
 *
 * Obviously this needs to be injective for each SoC.  In general it maps the
 * whole address space to [0xf4000000, 0xf5ffffff].  So [0xf6000000,0xfeffffff]
 * is free for per-machine use (e.g. KZM_ARM11_01 uses 64MiB there).
 *
 * It applies the following mappings for the different SoCs:
 *
 * mx1:
 *    IO    0x00200000+0x100000    ->    0xf4000000+0x100000
 * mx21:
 *    AIPI    0x10000000+0x100000    ->    0xf4400000+0x100000
 *    SAHB1    0x80000000+0x100000    ->    0xf4000000+0x100000
 *    X_MEMC    0xdf000000+0x004000    ->    0xf5f00000+0x004000
 * mx25:
 *    AIPS1    0x43f00000+0x100000    ->    0xf5300000+0x100000
 *    AIPS2    0x53f00000+0x100000    ->    0xf5700000+0x100000
 *    AVIC    0x68000000+0x100000    ->    0xf5800000+0x100000
 * mx27:
 *    AIPI    0x10000000+0x100000    ->    0xf4400000+0x100000
 *    SAHB1    0x80000000+0x100000    ->    0xf4000000+0x100000
 *    X_MEMC    0xd8000000+0x100000    ->    0xf5c00000+0x100000
 * mx31:
 *    AIPS1    0x43f00000+0x100000    ->    0xf5300000+0x100000
 *    AIPS2    0x53f00000+0x100000    ->    0xf5700000+0x100000
 *    AVIC    0x68000000+0x100000    ->    0xf5800000+0x100000
 *    X_MEMC    0xb8000000+0x010000    ->    0xf4c00000+0x010000
 *    SPBA0    0x50000000+0x100000    ->    0xf5400000+0x100000
 * mx35:
 *    AIPS1    0x43f00000+0x100000    ->    0xf5300000+0x100000
 *    AIPS2    0x53f00000+0x100000    ->    0xf5700000+0x100000
 *    AVIC    0x68000000+0x100000    ->    0xf5800000+0x100000
 *    X_MEMC    0xb8000000+0x010000    ->    0xf4c00000+0x010000
 *    SPBA0    0x50000000+0x100000    ->    0xf5400000+0x100000
 * mx50:
 *    TZIC    0x0fffc000+0x004000    ->    0xf4bfc000+0x004000
 *    SPBA0    0x50000000+0x100000    ->    0xf5400000+0x100000
 *    AIPS1    0x53f00000+0x100000    ->    0xf5700000+0x100000
 *    AIPS2    0x63f00000+0x100000    ->    0xf5300000+0x100000
 * mx51:
 *    IRAM    0x1ffe0000+0x020000    ->    0xf4fe0000+0x020000
 *    DEBUG    0x60000000+0x100000    ->    0xf5000000+0x100000
 *    SPBA0    0x70000000+0x100000    ->    0xf5400000+0x100000
 *    AIPS1    0x73f00000+0x100000    ->    0xf5700000+0x100000
 *    AIPS2    0x83f00000+0x100000    ->    0xf4300000+0x100000
 */
#define IMX_IO_P2V(x)    (                        \
            0xf4000000 +                    \
            (((x) & 0x50000000) >> 6) +            \
            (((x) & 0x0b000000) >> 4) +            \
            (((x) & 0x000fffff)))

#define IMX_IO_ADDRESS(x)    IOMEM(IMX_IO_P2V(x))

#include <mach/mxc.h>

#ifdef CONFIG_ARCH_MX5
#include <mach/mx50.h>
#include <mach/mx51.h>
#include <mach/mx53.h>
#endif

#ifdef CONFIG_ARCH_MX3
#include <mach/mx3x.h>
#include <mach/mx31.h>
#include <mach/mx35.h>
#endif

#ifdef CONFIG_ARCH_MX2
# include <mach/mx2x.h>
# ifdef CONFIG_MACH_MX21
#  include <mach/mx21.h>
# endif
# ifdef CONFIG_MACH_MX27
#  include <mach/mx27.h>
# endif
#endif

#ifdef CONFIG_ARCH_MX1
# include <mach/mx1.h>
#endif

#ifdef CONFIG_ARCH_MX25
# include <mach/mx25.h>
#endif

#define imx_map_entry(soc, name, _type)    {                \
    .virtual = soc ## _IO_P2V(soc ## _ ## name ## _BASE_ADDR),    \
    .pfn = __phys_to_pfn(soc ## _ ## name ## _BASE_ADDR),        \
    .length = soc ## _ ## name ## _SIZE,                \
    .type = _type,                            \
}

#endif /* __ASM_ARCH_MXC_HARDWARE_H__ */
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.5783 seconds