mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
53
drivers/trace/coresight-priv.h
Normal file
53
drivers/trace/coresight-priv.h
Normal file
|
@ -0,0 +1,53 @@
|
|||
/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* 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 _CORESIGHT_PRIV_H
|
||||
#define _CORESIGHT_PRIV_H
|
||||
|
||||
#include <linux/bitops.h>
|
||||
|
||||
/*
|
||||
* Coresight management registers (0xF00-0xFCC)
|
||||
* 0xFA0 - 0xFA4: Management registers in PFTv1.0
|
||||
* Trace registers in PFTv1.1
|
||||
*/
|
||||
#define CORESIGHT_ITCTRL (0xF00)
|
||||
#define CORESIGHT_CLAIMSET (0xFA0)
|
||||
#define CORESIGHT_CLAIMCLR (0xFA4)
|
||||
#define CORESIGHT_LAR (0xFB0)
|
||||
#define CORESIGHT_LSR (0xFB4)
|
||||
#define CORESIGHT_AUTHSTATUS (0xFB8)
|
||||
#define CORESIGHT_DEVID (0xFC8)
|
||||
#define CORESIGHT_DEVTYPE (0xFCC)
|
||||
|
||||
#define CORESIGHT_UNLOCK (0xC5ACCE55)
|
||||
|
||||
#define TIMEOUT_US (100)
|
||||
|
||||
#define BM(lsb, msb) ((BIT(msb) - BIT(lsb)) + BIT(msb))
|
||||
#define BMVAL(val, lsb, msb) ((val & BM(lsb, msb)) >> lsb)
|
||||
#define BVAL(val, n) ((val & BIT(n)) >> n)
|
||||
|
||||
#ifdef CONFIG_CORESIGHT_SOURCE_ETM
|
||||
extern unsigned int etm_readl_cp14(uint32_t off);
|
||||
extern void etm_writel_cp14(uint32_t val, uint32_t off);
|
||||
#else
|
||||
static inline unsigned int etm_readl_cp14(uint32_t off) { return 0; }
|
||||
static inline void etm_writel_cp14(uint32_t val, uint32_t off) {}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_EXYNOS_CORESIGHT_ETB
|
||||
extern void exynos_etb_etm(void);
|
||||
extern void exynos_etb_stm(void);
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue