Logo Search packages:      
Sourcecode: linux-2.6 version File versions

op_model_mpcore.c File Reference


Detailed Description

MPCORE Event Monitor Driver
Remarks:
Copyright 2004 ARM SMP Development Team

Copyright 2000-2004 Deepak Saxena <dsaxena@mvista.com>

Copyright 2000-2004 MontaVista Software Inc

Copyright 2004 Dave Jiang <dave.jiang@intel.com>

Copyright 2004 Intel Corporation

Copyright 2004 Zwane Mwaikambo <zwane@arm.linux.org.uk>

Copyright 2004 Oprofile Authors

Read the file COPYING

Author:
Zwane Mwaikambo
Counters: 0: PMN0 on CPU0, per-cpu configurable event counter 1: PMN1 on CPU0, per-cpu configurable event counter 2: CCNT on CPU0 3: PMN0 on CPU1 4: PMN1 on CPU1 5: CCNT on CPU1 6: PMN0 on CPU1 7: PMN1 on CPU1 8: CCNT on CPU1 9: PMN0 on CPU1 10: PMN1 on CPU1 11: CCNT on CPU1 12-19: configurable SCU event counters

MPCORE Event Monitor Driver

Remarks:
Copyright 2004 ARM SMP Development Team

Copyright 2000-2004 Deepak Saxena <dsaxena@mvista.com>

Copyright 2000-2004 MontaVista Software Inc

Copyright 2004 Dave Jiang <dave.jiang@intel.com>

Copyright 2004 Intel Corporation

Copyright 2004 Zwane Mwaikambo <zwane@arm.linux.org.uk>

Copyright 2004 Oprofile Authors

Read the file COPYING

Author:
Zwane Mwaikambo

Definition in file op_model_mpcore.c.

#include <linux/types.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/oprofile.h>
#include <linux/interrupt.h>
#include <linux/smp.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/hardware.h>
#include <asm/system.h>
#include "op_counter.h"
#include "op_arm_model.h"
#include "op_model_arm11_core.h"
#include "op_model_mpcore.h"

Go to the source code of this file.

Classes

struct  em_function_data

Defines

#define SCU_EVENTMONITORS_VA_BASE   __io_address(REALVIEW_EB11MP_SCU_BASE + 0x10)

Functions

static int em_call_function (int(*fn)(void))
static void em_func (void *data)
static void em_route_irq (int irq, unsigned int cpu)
static int em_setup (void)
static int em_setup_ctrs (void)
static int em_start (void)
static void em_stop (void)
static irqreturn_t scu_em_interrupt (int irq, void *arg)
static void scu_reset_counter (struct eventmonitor __iomem *emc, unsigned int n)
static void scu_set_event (struct eventmonitor __iomem *emc, unsigned int n, u32 event)
static void scu_setup (void)
static int scu_start (void)
static void scu_stop (void)

Variables

static int arm11_irqs []
struct op_arm_model_spec op_mpcore_spec
static unsigned int scu_em_used


Generated by  Doxygen 1.6.0   Back to index