openocd: src/target: replace the GPL-2.0-or-later license tag
[fw/openocd] / src / target / armv7a_cache_l2x.h
index 99fbe8aa65395ac2d75217eb963553197bd02846..d5f1a6f0e5120dad3a90439211a59b149bf0f40c 100644 (file)
@@ -1,20 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /***************************************************************************
  *   Copyright (C) 2015 Oleksij Rempel                                     *
  *   linux@rempel-privat.de                                                *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that 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.                          *
  ***************************************************************************/
 
-#ifndef ARM7A_CACHE_L2X_H
-#define ARM7A_CACHE_L2X_H
+#ifndef OPENOCD_TARGET_ARM7A_CACHE_L2X_H
+#define OPENOCD_TARGET_ARM7A_CACHE_L2X_H
 
 #define L2X0_CACHE_LINE_SIZE           32
 
@@ -148,8 +140,8 @@ struct l2c_init_data {
 
 extern const struct command_registration arm7a_l2x_cache_command_handler[];
 
-int armv7a_l2x_cache_flush_virt(struct target *target, uint32_t virt,
+int armv7a_l2x_cache_flush_virt(struct target *target, target_addr_t virt,
                                        uint32_t size);
 int arm7a_l2x_flush_all_data(struct target *target);
 
-#endif
+#endif /* OPENOCD_TARGET_ARM7A_CACHE_L2X_H */