2 * Copyright (C) 2004 Anton Blanchard <anton@au.ibm.com>, IBM
4 * Based on alpha version.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
15 #define OP_MAX_COUNTER 8
17 /* Per-counter configuration as set via oprofilefs. */
18 struct op_counter_config {
19 unsigned long enabled;
24 unsigned long unit_mask;
27 /* System-wide configuration as set via oprofilefs. */
28 struct op_system_config {
29 unsigned long enable_kernel;
30 unsigned long enable_user;
33 /* Per-arch configuration */
34 struct op_ppc32_model {
35 void (*reg_setup) (struct op_counter_config *,
36 struct op_system_config *,
38 void (*start) (struct op_counter_config *);
40 void (*handle_interrupt) (struct pt_regs *,
41 struct op_counter_config *);
45 #endif /* OP_IMPL_H */