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:22.56 GB of 70.42 GB (32.04%)
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/ mn10300/ unit-asb2364/ include/ unit/ - drwxr-xr-x

Directory:
Viewing file:     timex.h (3.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* timex.h: MN2WS0038 architecture timer specifications
 *
 * Copyright (C) 2002, 2010 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * 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.
 */
#ifndef _ASM_UNIT_TIMEX_H
#define _ASM_UNIT_TIMEX_H

#ifndef __ASSEMBLY__
#include <linux/irq.h>
#endif /* __ASSEMBLY__ */

#include <asm/timer-regs.h>
#include <unit/clock.h>
#include <asm/param.h>

/*
 * jiffies counter specifications
 */

#define    TMJCBR_MAX        0xffffff    /* 24bit */
#define    TMJCIRQ            TMTIRQ

#ifndef __ASSEMBLY__

#define MN10300_SRC_IOBCLK    MN10300_IOBCLK

#ifndef HZ
# error HZ undeclared.
#endif /* !HZ */

#define MN10300_JCCLK        (MN10300_SRC_IOBCLK)
#define MN10300_TSCCLK        (MN10300_SRC_IOBCLK)

#define MN10300_JC_PER_HZ    ((MN10300_JCCLK + HZ / 2) / HZ)
#define MN10300_TSC_PER_HZ    ((MN10300_TSCCLK + HZ / 2) / HZ)

/* Check bit width of MTM interval value that sets base register */
#if (MN10300_JC_PER_HZ - 1) > TMJCBR_MAX
# error MTM tick timer interval value is overflow.
#endif

static inline void stop_jiffies_counter(void)
{
    u16 tmp;
    TMTMD = 0;
    tmp = TMTMD;
}

static inline void reload_jiffies_counter(u32 cnt)
{
    u32 tmp;

    TMTBR = cnt;
    tmp = TMTBR;

    TMTMD = TMTMD_TMTLDE;
    TMTMD = TMTMD_TMTCNE;
    tmp = TMTMD;
}

#if defined(CONFIG_SMP) && defined(CONFIG_GENERIC_CLOCKEVENTS) && \
    !defined(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST)
/*
 * If we aren't using broadcasting, each core needs its own event timer.
 * Since CPU0 uses the tick timer which is 24-bits, we use timer 4 & 5
 * cascaded to 32-bits for CPU1 (but only really use 24-bits to match
 * CPU0).
 */

#define    TMJC1IRQ        TM5IRQ

static inline void stop_jiffies_counter1(void)
{
    u8 tmp;
    TM4MD = 0;
    TM5MD = 0;
    tmp = TM4MD;
    tmp = TM5MD;
}

static inline void reload_jiffies_counter1(u32 cnt)
{
    u32 tmp;

    TM45BR = cnt;
    tmp = TM45BR;

    TM4MD = TM4MD_INIT_COUNTER;
    tmp = TM4MD;

    TM5MD = TM5MD_SRC_TM4CASCADE | TM5MD_INIT_COUNTER;
    TM5MD = TM5MD_SRC_TM4CASCADE | TM5MD_COUNT_ENABLE;
    tmp = TM5MD;

    TM4MD = TM4MD_COUNT_ENABLE;
    tmp = TM4MD;
}
#endif /* CONFIG_SMP&GENERIC_CLOCKEVENTS&!GENERIC_CLOCKEVENTS_BROADCAST */

#endif /* !__ASSEMBLY__ */


/*
 * timestamp counter specifications
 */
#define    TMTSCBR_MAX    0xffffffff

#ifndef __ASSEMBLY__

/* Use 32-bit timestamp counter */
#define    TMTSCMD        TMSMD
#define    TMTSCBR        TMSBR
#define    TMTSCBC        TMSBC
#define    TMTSCICR    TMSICR

static inline void startup_timestamp_counter(void)
{
    u32 sync;

    /* set up TMS(Timestamp) 32bit timer register to count real time
     * - count down from 4Gig-1 to 0 and wrap at IOBCLK rate
     */

    TMTSCBR = TMTSCBR_MAX;
    sync = TMTSCBR;

    TMTSCICR = 0;
    sync = TMTSCICR;

    TMTSCMD = TMTMD_TMTLDE;
    TMTSCMD = TMTMD_TMTCNE;
    sync = TMTSCMD;
}

static inline void shutdown_timestamp_counter(void)
{
    TMTSCMD = 0;
}

/*
 * we use a cascaded pair of 16-bit down-counting timers to count I/O
 * clock cycles for the purposes of time keeping
 */
typedef unsigned long cycles_t;

static inline cycles_t read_timestamp_counter(void)
{
    return (cycles_t)~TMTSCBC;
}

#endif /* !__ASSEMBLY__ */

#endif /* _ASM_UNIT_TIMEX_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.5409 seconds