Blame view

include/asm-powerpc/pmc.h 1.15 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  /*
   * pmc.h
   * Copyright (C) 2004  David Gibson, IBM Corporation
   *
   * 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
   */
f7f6f4fea   David Gibson   [PATCH] powerpc: ...
19
20
  #ifndef _POWERPC_PMC_H
  #define _POWERPC_PMC_H
88ced0314   Arnd Bergmann   [PATCH] powerpc: ...
21
  #ifdef __KERNEL__
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
22
23
24
25
  
  #include <asm/ptrace.h>
  
  typedef void (*perf_irq_t)(struct pt_regs *);
a31751e04   Matt Porter   [PATCH] ppc32: fi...
26
  extern perf_irq_t perf_irq;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
27
28
29
  
  int reserve_pmc_hardware(perf_irq_t new_perf_irq);
  void release_pmc_hardware(void);
f7f6f4fea   David Gibson   [PATCH] powerpc: ...
30
  #ifdef CONFIG_PPC64
180a33627   Michael Ellerman   [PATCH] ppc64: Mo...
31
  void power4_enable_pmcs(void);
25fc530ee   Olof Johansson   [POWERPC] pasemi:...
32
  void pasemi_enable_pmcs(void);
f7f6f4fea   David Gibson   [PATCH] powerpc: ...
33
  #endif
180a33627   Michael Ellerman   [PATCH] ppc64: Mo...
34

88ced0314   Arnd Bergmann   [PATCH] powerpc: ...
35
  #endif /* __KERNEL__ */
f7f6f4fea   David Gibson   [PATCH] powerpc: ...
36
  #endif /* _POWERPC_PMC_H */