/* * Common low level (register) ptrace helpers * * Copyright 2004-2011 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef __ASM_GENERIC_PTRACE_H__ #define __ASM_GENERIC_PTRACE_H__ #ifndef __ASSEMBLY__ /* Helpers for working with the instruction pointer */ #ifndef GET_IP #define GET_IP(regs) ((regs)->pc) #endif #ifndef SET_IP #define SET_IP(regs, val) (GET_IP(regs) = (val)) #endif static inline unsigned long instruction_pointer(struct pt_regs *regs) { return GET_IP(regs); } static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { SET_IP(regs, val); } #ifndef profile_pc #define profile_pc(regs) instruction_pointer(regs) #endif /* Helpers for working with the user stack pointer */ #ifndef GET_USP #define GET_USP(regs) ((regs)->usp) #endif #ifndef SET_USP #define SET_USP(regs, val) (GET_USP(regs) = (val)) #endif static inline unsigned long user_stack_pointer(struct pt_regs *regs) { return GET_USP(regs); } static inline void user_stack_pointer_set(struct pt_regs *regs, unsigned long val) { SET_USP(regs, val); } /* Helpers for working with the frame pointer */ #ifndef GET_FP #define GET_FP(regs) ((regs)->fp) #endif #ifndef SET_FP #define SET_FP(regs, val) (GET_FP(regs) = (val)) #endif static inline unsigned long frame_pointer(struct pt_regs *regs) { return GET_FP(regs); } static inline void frame_pointer_set(struct pt_regs *regs, unsigned long val) { SET_FP(regs, val); } #endif /* __ASSEMBLY__ */ #endif e-remove'>summaryrefslogtreecommitdiff
path: root/include/net/irda/irlap.h
diff options
context:
space:
mode:
authorNick Dyer <nick@shmanahar.org>2016-12-10 23:27:32 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-12-12 11:26:47 -0800
commit5191d88acc688743eef56f1c598a4e4cddf6c6cd (patch)
tree719693b8e8c697a21b4f2d1c4c3f3462426dc3aa /include/net/irda/irlap.h
parent5d244f7effafeaa5272ca5daa37d8b7bb17967a8 (diff)
Input: synaptics-rmi4 - add support for F34 V7 bootloader
Port firmware update code from Samsung Galaxy S7 driver into mainline framework. This patch has been tested on Synaptics S7813. Signed-off-by: Nick Dyer <nick@shmanahar.org> Tested-by: Chris Healy <cphealy@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/net/irda/irlap.h')