diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h index f46d0d9d3..df3a0e842 100644 --- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h @@ -23,8 +23,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef __CE2_GK20A_H__ -#define __CE2_GK20A_H__ +#ifndef NVGPU_GK20A_CE2_GK20A_H +#define NVGPU_GK20A_CE2_GK20A_H struct channel_gk20a; struct tsg_gk20a; @@ -153,4 +153,4 @@ int gk20a_ce_prepare_submit(u64 src_buf, int request_operation, u32 dma_copy_class); -#endif /*__CE2_GK20A_H__*/ +#endif /*NVGPU_GK20A_CE2_GK20A_H*/ diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h index cb155d6da..e0e318d28 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h @@ -24,8 +24,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef _GK20A_CHANNEL_SYNC_H_ -#define _GK20A_CHANNEL_SYNC_H_ +#ifndef NVGPU_GK20A_CHANNEL_SYNC_GK20A_H +#define NVGPU_GK20A_CHANNEL_SYNC_GK20A_H struct gk20a_channel_sync; struct priv_cmd_entry; @@ -109,4 +109,4 @@ struct gk20a_channel_sync *gk20a_channel_sync_create(struct channel_gk20a *c, bool user_managed); bool gk20a_channel_sync_needs_sync_framework(struct gk20a *g); -#endif +#endif /* NVGPU_GK20A_CHANNEL_SYNC_GK20A_H */ diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h index 8e7231076..cbde2fe79 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.h @@ -20,8 +20,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef __FECS_TRACE_GK20A_H -#define __FECS_TRACE_GK20A_H +#ifndef NVGPU_GK20A_FECS_TRACE_GK20A_H +#define NVGPU_GK20A_FECS_TRACE_GK20A_H struct gk20a; struct channel_gk20a; @@ -41,4 +41,4 @@ int gk20a_fecs_trace_disable(struct gk20a *g); bool gk20a_fecs_trace_is_enabled(struct gk20a *g); size_t gk20a_fecs_trace_buffer_size(struct gk20a *g); -#endif /* __FECS_TRACE_GK20A_H */ +#endif /* NVGPU_GK20A_FECS_TRACE_GK20A_H */ diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index 271b2a184..03112797a 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h @@ -23,8 +23,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef _GK20A_FENCE_H_ -#define _GK20A_FENCE_H_ +#ifndef NVGPU_GK20A_FENCE_GK20A_H +#define NVGPU_GK20A_FENCE_GK20A_H #include #include @@ -97,4 +97,4 @@ bool gk20a_fence_is_expired(struct gk20a_fence *f); bool gk20a_fence_is_valid(struct gk20a_fence *f); int gk20a_fence_install_fd(struct gk20a_fence *f, int fd); -#endif +#endif /* NVGPU_GK20A_FENCE_GK20A_H */ diff --git a/drivers/gpu/nvgpu/gk20a/flcn_gk20a.h b/drivers/gpu/nvgpu/gk20a/flcn_gk20a.h index 7f7ee89e2..9d27b3838 100644 --- a/drivers/gpu/nvgpu/gk20a/flcn_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/flcn_gk20a.h @@ -19,11 +19,11 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef __FLCN_GK20A_H__ -#define __FLCN_GK20A_H__ +#ifndef NVGPU_GK20A_FLCN_GK20A_H +#define NVGPU_GK20A_FLCN_GK20A_H void gk20a_falcon_ops(struct nvgpu_falcon *flcn); int gk20a_falcon_hal_sw_init(struct nvgpu_falcon *flcn); void gk20a_falcon_dump_stats(struct nvgpu_falcon *flcn); -#endif /* __FLCN_GK20A_H__ */ +#endif /* NVGPU_GK20A_FLCN_GK20A_H */ diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h index 10f8723f1..e75472c57 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h @@ -1,7 +1,7 @@ /* * GK20A Graphics Context * - * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -21,8 +21,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef __GR_CTX_GK20A_H__ -#define __GR_CTX_GK20A_H__ +#ifndef NVGPU_GK20A_GR_CTX_GK20A_H +#define NVGPU_GK20A_GR_CTX_GK20A_H #include @@ -203,4 +203,4 @@ int gr_gk20a_init_ctx_vars_sim(struct gk20a *g, struct gr_gk20a *gr); struct gpu_ops; void gk20a_init_gr_ctx(struct gpu_ops *gops); -#endif /*__GR_CTX_GK20A_H__*/ +#endif /*NVGPU_GK20A_GR_CTX_GK20A_H*/ diff --git a/drivers/gpu/nvgpu/gk20a/hal.h b/drivers/gpu/nvgpu/gk20a/hal.h index b26b2ef52..0a6e70944 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.h +++ b/drivers/gpu/nvgpu/gk20a/hal.h @@ -1,7 +1,7 @@ /* * NVIDIA GPU Hardware Abstraction Layer functions definitions. * - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -22,11 +22,11 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef __HAL_GPU__ -#define __HAL_GPU__ +#ifndef NVGPU_GK20A_HAL_H +#define NVGPU_GK20A_HAL_H struct gk20a; int gpu_init_hal(struct gk20a *g); -#endif /* __HAL_GPU__ */ +#endif /* NVGPU_GK20A_HAL_H */ diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h index ee7ee8c77..700a3a0e0 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h @@ -23,8 +23,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#ifndef __PMU_GK20A_H__ -#define __PMU_GK20A_H__ +#ifndef NVGPU_GK20A_PMU_GK20A_H +#define NVGPU_GK20A_PMU_GK20A_H #include #include @@ -75,4 +75,4 @@ void gk20a_pmu_elpg_statistics(struct gk20a *g, u32 pg_engine_id, bool gk20a_pmu_is_engine_in_reset(struct gk20a *g); int gk20a_pmu_engine_reset(struct gk20a *g, bool do_reset); u32 gk20a_pmu_get_irqdest(struct gk20a *g); -#endif /*__PMU_GK20A_H__*/ +#endif /*NVGPU_GK20A_PMU_GK20A_H*/