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:20.58 GB of 70.42 GB (29.23%)
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/ mips/ include/ asm/ mach-lantiq/ xway/ - drwxr-xr-x

Directory:
Viewing file:     lantiq_soc.h (3.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *  This program is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License version 2 as published
 *  by the Free Software Foundation.
 *
 *  Copyright (C) 2010 John Crispin <blogic@openwrt.org>
 */

#ifndef _LTQ_XWAY_H__
#define _LTQ_XWAY_H__

#ifdef CONFIG_SOC_TYPE_XWAY

#include <lantiq.h>

/* Chip IDs */
#define SOC_ID_DANUBE1        0x129
#define SOC_ID_DANUBE2        0x12B
#define SOC_ID_TWINPASS        0x12D
#define SOC_ID_AMAZON_SE    0x152
#define SOC_ID_ARX188        0x16C
#define SOC_ID_ARX168        0x16D
#define SOC_ID_ARX182        0x16F

/* SoC Types */
#define SOC_TYPE_DANUBE        0x01
#define SOC_TYPE_TWINPASS    0x02
#define SOC_TYPE_AR9        0x03
#define SOC_TYPE_VR9        0x04
#define SOC_TYPE_AMAZON_SE    0x05

/* ASC0/1 - serial port */
#define LTQ_ASC0_BASE_ADDR    0x1E100400
#define LTQ_ASC1_BASE_ADDR    0x1E100C00
#define LTQ_ASC_SIZE        0x400

/* RCU - reset control unit */
#define LTQ_RCU_BASE_ADDR    0x1F203000
#define LTQ_RCU_SIZE        0x1000

/* GPTU - general purpose timer unit */
#define LTQ_GPTU_BASE_ADDR    0x18000300
#define LTQ_GPTU_SIZE        0x100

/* EBU - external bus unit */
#define LTQ_EBU_GPIO_START    0x14000000
#define LTQ_EBU_GPIO_SIZE    0x1000

#define LTQ_EBU_BASE_ADDR    0x1E105300
#define LTQ_EBU_SIZE        0x100

#define LTQ_EBU_BUSCON0        0x0060
#define LTQ_EBU_PCC_CON        0x0090
#define LTQ_EBU_PCC_IEN        0x00A4
#define LTQ_EBU_PCC_ISTAT    0x00A0
#define LTQ_EBU_BUSCON1        0x0064
#define LTQ_EBU_ADDRSEL1    0x0024
#define EBU_WRDIS        0x80000000

/* CGU - clock generation unit */
#define LTQ_CGU_BASE_ADDR    0x1F103000
#define LTQ_CGU_SIZE        0x1000

/* ICU - interrupt control unit */
#define LTQ_ICU_BASE_ADDR    0x1F880200
#define LTQ_ICU_SIZE        0x100

/* EIU - external interrupt unit */
#define LTQ_EIU_BASE_ADDR    0x1F101000
#define LTQ_EIU_SIZE        0x1000

/* PMU - power management unit */
#define LTQ_PMU_BASE_ADDR    0x1F102000
#define LTQ_PMU_SIZE        0x1000

#define PMU_DMA            0x0020
#define PMU_USB            0x8041
#define PMU_LED            0x0800
#define PMU_GPT            0x1000
#define PMU_PPE            0x2000
#define PMU_FPI            0x4000
#define PMU_SWITCH        0x10000000

/* ETOP - ethernet */
#define LTQ_ETOP_BASE_ADDR    0x1E180000
#define LTQ_ETOP_SIZE        0x40000

/* DMA */
#define LTQ_DMA_BASE_ADDR    0x1E104100
#define LTQ_DMA_SIZE        0x800

/* PCI */
#define PCI_CR_BASE_ADDR    0x1E105400
#define PCI_CR_SIZE        0x400

/* WDT */
#define LTQ_WDT_BASE_ADDR    0x1F8803F0
#define LTQ_WDT_SIZE        0x10

/* STP - serial to parallel conversion unit */
#define LTQ_STP_BASE_ADDR    0x1E100BB0
#define LTQ_STP_SIZE        0x40

/* GPIO */
#define LTQ_GPIO0_BASE_ADDR    0x1E100B10
#define LTQ_GPIO1_BASE_ADDR    0x1E100B40
#define LTQ_GPIO2_BASE_ADDR    0x1E100B70
#define LTQ_GPIO_SIZE        0x30

/* SSC */
#define LTQ_SSC_BASE_ADDR    0x1e100800
#define LTQ_SSC_SIZE        0x100

/* MEI - dsl core */
#define LTQ_MEI_BASE_ADDR    0x1E116000

/* DEU - data encryption unit */
#define LTQ_DEU_BASE_ADDR    0x1E103100

/* MPS - multi processor unit (voice) */
#define LTQ_MPS_BASE_ADDR    (KSEG1 + 0x1F107000)
#define LTQ_MPS_CHIPID        ((u32 *)(LTQ_MPS_BASE_ADDR + 0x0344))

/* request a non-gpio and set the PIO config */
extern int  ltq_gpio_request(unsigned int pin, unsigned int alt0,
    unsigned int alt1, unsigned int dir, const char *name);
extern void ltq_pmu_enable(unsigned int module);
extern void ltq_pmu_disable(unsigned int module);

static inline int ltq_is_ar9(void)
{
    return (ltq_get_soc_type() == SOC_TYPE_AR9);
}

static inline int ltq_is_vr9(void)
{
    return (ltq_get_soc_type() == SOC_TYPE_VR9);
}

#endif /* CONFIG_SOC_TYPE_XWAY */
#endif /* _LTQ_XWAY_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.5721 seconds