Loading drivers/hwtracing/coresight/coresight-common.h 0 → 100644 +12 −0 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. */ #ifndef _CORESIGHT_COMMON_H #define _CORESIGHT_COMMON_H #define BM(lsb, msb) ((BIT(msb) - BIT(lsb)) + BIT(msb)) #define BVAL(val, n) ((val & BIT(n)) >> n) #endif drivers/hwtracing/coresight/coresight-priv.h +2 −1 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. * Copyright (c) 2011-2012,2018, The Linux Foundation. All rights reserved. */ #ifndef _CORESIGHT_PRIV_H Loading @@ -10,6 +10,7 @@ #include <linux/io.h> #include <linux/coresight.h> #include <linux/pm_runtime.h> #include "coresight-common.h" /* * Coresight management registers (0xf00-0xfcc) Loading Loading
drivers/hwtracing/coresight/coresight-common.h 0 → 100644 +12 −0 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2018, The Linux Foundation. All rights reserved. */ #ifndef _CORESIGHT_COMMON_H #define _CORESIGHT_COMMON_H #define BM(lsb, msb) ((BIT(msb) - BIT(lsb)) + BIT(msb)) #define BVAL(val, n) ((val & BIT(n)) >> n) #endif
drivers/hwtracing/coresight/coresight-priv.h +2 −1 Original line number Diff line number Diff line /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. * Copyright (c) 2011-2012,2018, The Linux Foundation. All rights reserved. */ #ifndef _CORESIGHT_PRIV_H Loading @@ -10,6 +10,7 @@ #include <linux/io.h> #include <linux/coresight.h> #include <linux/pm_runtime.h> #include "coresight-common.h" /* * Coresight management registers (0xf00-0xfcc) Loading