diff options
| author | Terje Bergstrom <tbergstrom@nvidia.com> | 2013-03-22 10:34:01 -0400 |
|---|---|---|
| committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-04-22 06:32:40 -0400 |
| commit | 754716874389ccbea5ee03174df8ad9e72e41880 (patch) | |
| tree | 637ff38c883295fce72721a9c721b0f431b7fa49 /include/trace | |
| parent | e1adc78caf440d3f6be81a947c2b913e73514a68 (diff) | |
gpu: host1x: Add host1x driver
Add host1x, the driver for host1x and its client unit 2D. The Tegra
host1x module is the DMA engine for register access to Tegra's
graphics- and multimedia-related modules. The modules served by
host1x are referred to as clients. host1x includes some other
functionality, such as synchronization.
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/host1x.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/include/trace/events/host1x.h b/include/trace/events/host1x.h new file mode 100644 index 000000000000..4bd2b0253d27 --- /dev/null +++ b/include/trace/events/host1x.h | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* | ||
| 2 | * include/trace/events/host1x.h | ||
| 3 | * | ||
| 4 | * host1x event logging to ftrace. | ||
| 5 | * | ||
| 6 | * Copyright (c) 2010-2013, NVIDIA Corporation. | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 16 | * more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License along | ||
| 19 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| 21 | */ | ||
| 22 | |||
| 23 | #undef TRACE_SYSTEM | ||
| 24 | #define TRACE_SYSTEM host1x | ||
| 25 | |||
| 26 | #if !defined(_TRACE_HOST1X_H) || defined(TRACE_HEADER_MULTI_READ) | ||
| 27 | #define _TRACE_HOST1X_H | ||
| 28 | |||
| 29 | #include <linux/ktime.h> | ||
| 30 | #include <linux/tracepoint.h> | ||
| 31 | |||
| 32 | DECLARE_EVENT_CLASS(host1x, | ||
| 33 | TP_PROTO(const char *name), | ||
| 34 | TP_ARGS(name), | ||
| 35 | TP_STRUCT__entry(__field(const char *, name)), | ||
| 36 | TP_fast_assign(__entry->name = name;), | ||
| 37 | TP_printk("name=%s", __entry->name) | ||
| 38 | ); | ||
| 39 | |||
| 40 | TRACE_EVENT(host1x_syncpt_load_min, | ||
| 41 | TP_PROTO(u32 id, u32 val), | ||
| 42 | |||
| 43 | TP_ARGS(id, val), | ||
| 44 | |||
| 45 | TP_STRUCT__entry( | ||
| 46 | __field(u32, id) | ||
| 47 | __field(u32, val) | ||
| 48 | ), | ||
| 49 | |||
| 50 | TP_fast_assign( | ||
| 51 | __entry->id = id; | ||
| 52 | __entry->val = val; | ||
| 53 | ), | ||
| 54 | |||
| 55 | TP_printk("id=%d, val=%d", __entry->id, __entry->val) | ||
| 56 | ); | ||
| 57 | |||
| 58 | #endif /* _TRACE_HOST1X_H */ | ||
| 59 | |||
| 60 | /* This part must be outside protection */ | ||
| 61 | #include <trace/define_trace.h> | ||
