/* * Analog Devices PPI header file * * Copyright (c) 2011 Analog Devices Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License 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. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _PPI_H_ #define _PPI_H_ #include #include #include /* EPPI */ #ifdef EPPI_EN #define PORT_EN EPPI_EN #define PORT_DIR EPPI_DIR #define DMA32 0 #define PACK_EN PACKEN #endif /* EPPI3 */ #ifdef EPPI0_CTL2 #define PORT_EN EPPI_CTL_EN #define PORT_DIR EPPI_CTL_DIR #define PACK_EN EPPI_CTL_PACKEN #define DMA32 0 #define DLEN_8 EPPI_CTL_DLEN08 #define DLEN_16 EPPI_CTL_DLEN16 #endif struct ppi_if; struct ppi_params { u32 width; /* width in pixels */ u32 height; /* height in lines */ u32 hdelay; /* delay after the HSYNC in pixels */ u32 vdelay; /* delay after the VSYNC in lines */ u32 line; /* total pixels per line */ u32 frame; /* total lines per frame */ u32 hsync; /* HSYNC length in pixels */ u32 vsync; /* VSYNC length in lines */ int bpp; /* bits per pixel */ int dlen; /* data length for ppi in bits */ u32 ppi_control; /* ppi configuration */ u32 int_mask; /* interrupt mask */ }; struct ppi_ops { int (*attach_irq)(struct ppi_if *ppi, irq_handler_t handler); void (*detach_irq)(struct ppi_if *ppi); int (*start)(struct ppi_if *ppi); int (*stop)(struct ppi_if *ppi); int (*set_params)(struct ppi_if *ppi, struct ppi_params *params); void (*update_addr)(struct ppi_if *ppi, unsigned long addr); }; enum ppi_type { PPI_TYPE_PPI, PPI_TYPE_EPPI, PPI_TYPE_EPPI3, }; struct ppi_info { enum ppi_type type; int dma_ch; int irq_err; void __iomem *base; const unsigned short *pin_req; }; struct ppi_if { struct device *dev; unsigned long ppi_control; const struct ppi_ops *ops; const struct ppi_info *info; bool err_int; /* if we need request error interrupt */ bool err; /* if ppi has fifo error */ void *priv; }; struct ppi_if *ppi_create_instance(struct platform_device *pdev, const struct ppi_info *info); void ppi_delete_instance(struct ppi_if *ppi); #endif ype='search' size='10' name='q' value=''/>
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2017-01-18 14:29:21 +0100
committerIngo Molnar <mingo@kernel.org>2017-01-19 08:39:44 +0100
commitb5b46c4740aed1538544f0fa849c5b76c7823469 (patch)
tree125e7aced4835bad6f6a0c0d02d012f333caf922 /include/net/inet_ecn.h
parentfa19a769f82fb9a5ca000b83cacd13fcaeda51ac (diff)
objtool: Fix IRET's opcode
The IRET opcode is 0xcf according to the Intel manual and also to objdump of my vmlinux: 1ea8: 48 cf iretq Fix the opcode in arch_decode_instruction(). The previous value (0xc5) seems to correspond to LDS. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20170118132921.19319-1-jslaby@suse.cz Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/net/inet_ecn.h')