summaryrefslogtreecommitdiff
path: root/drivers/arm/gic/v2/gicv2_main.c
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2016-02-01 17:59:22 +0000
committerSoby Mathew <soby.mathew@arm.com>2016-02-09 16:50:36 +0000
commite9ec3cec6519604b1c6fa7eb3834966e3bd10685 (patch)
tree2777d87cc1aa67a4cb3b9032a7b1275d07c457e0 /drivers/arm/gic/v2/gicv2_main.c
parent38a7861450409b6b234e12f15b8b516aa71b6610 (diff)
Move private APIs in gic_common.h to a private header
This patch moves the private GIC common accessors from `gic_common.h` to a new private header file `gic_common_private.h`. This patch also adds additional comments to GIC register accessors to highlight the fact that some of them access register values that correspond to multiple interrupt IDs. The convention used is that the `set`, `get` and `clr` accessors access and modify the values corresponding to a single interrupt ID whereas the `read` and `write` GIC register accessors access the raw GIC registers and it could correspond to multiple interrupt IDs depending on the register accessed. Change-Id: I2643ecb2533f01e3d3219fcedfb5f80c120622f9
Diffstat (limited to 'drivers/arm/gic/v2/gicv2_main.c')
-rw-r--r--drivers/arm/gic/v2/gicv2_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/arm/gic/v2/gicv2_main.c b/drivers/arm/gic/v2/gicv2_main.c
index cf939261..305a8b07 100644
--- a/drivers/arm/gic/v2/gicv2_main.c
+++ b/drivers/arm/gic/v2/gicv2_main.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,6 +34,7 @@
#include <debug.h>
#include <gic_common.h>
#include <gicv2.h>
+#include "../common/gic_common_private.h"
#include "gicv2_private.h"
static const gicv2_driver_data_t *driver_data;