From 4492c62ffe9398bd4457f6f1c2773e40afe909fb Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 17 Mar 2017 11:09:44 -0700 Subject: gpu: nvgpu: Add bus HAL Add bus HAL and move all bus related hardware sequencing to that file: BAR1 binding, timer access, and interrupt handling. Change-Id: Ibc5f5797dc338de10749b446a7bdbcae600fecb4 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1323353 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/bus_gk20a.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 drivers/gpu/nvgpu/gk20a/bus_gk20a.h (limited to 'drivers/gpu/nvgpu/gk20a/bus_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h new file mode 100644 index 00000000..01526f06 --- /dev/null +++ b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope 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, see . + */ +#ifndef BUS_GK20A_H +#define BUS_GK20A_H + +struct gk20a; +struct gpu_ops; +struct mem_desc; + +void gk20a_init_bus(struct gpu_ops *gops); + +void gk20a_bus_isr(struct gk20a *g); +int gk20a_read_ptimer(struct gk20a *g, u64 *value); +void gk20a_bus_init_hw(struct gk20a *g); + +#endif /* GK20A_H */ -- cgit v1.2.2