From fc6515ef027d94412228875095708b949b801496 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 16 Nov 2010 14:51:59 +0100 Subject: Add basic device handling infrastructure --- jtag_uart.h | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'jtag_uart.h') diff --git a/jtag_uart.h b/jtag_uart.h index d855e39..4328be7 100644 --- a/jtag_uart.h +++ b/jtag_uart.h @@ -1,27 +1,28 @@ /* - Nios-sim - one simple NIOSII simulator only for personal interest and fun. - Copyright (C) 2010 chysun2000@gmail.com + * Copyright (C) 2010 Tobias Klauser + * Copyright (C) 2010 chysun2000@gmail.com + * + * This file is part of nios2sim-ng. + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ - 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. +#ifndef _JTAG_UART_H_ +#define _JTAG_UART_H_ - 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. +#include "device.h" - 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., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -*/ +#define JTAG_UART_BASE 0x806810F0 +#define JTAG_UART_SIZE 8 -#ifndef __JTAG_UART_H__ -#define __JTAG_UART_H__ +#define JTAG_UART_DATA_REG 0 +#define JTAG_UART_CTRL_REG 1 -#include "io_device.h" -#define JTAG_UART_REG_COUNT (2) +extern struct device jtag_uart_core; + +#if 0 #define JTAG_UART_CTRL_REG (0) #define JTAG_UART_DATA_REG (1) #define JTAG_UART_BASE_ADDR (0x806810F0) @@ -53,4 +54,6 @@ struct jtag_uart_priv{ #define ALTERA_JTAGUART_CONTROL_WSPACE_OFST (16) extern struct io_device jtag_uart_io_device; -#endif /* __JTAG_UART_H__*/ +#endif + +#endif /* _JTAG_UART_H_ */ -- cgit v1.2.3-54-g00ecf evicetree/bindings/pinctrl/ti,da850-pupd.txt'>
ption value='9'>9
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2016-10-15 00:53:36 +0300
committerMark Brown <broonie@kernel.org>2016-10-26 11:14:32 +0100
commite1b790a8720192e1cfdd46a9b20d0f56de99c73d (patch)
tree0ae7b59665a7f6ac76ec2e5d5619839fccff6782 /Documentation
parent1001354ca34179f3db924eb66672442a173147dc (diff)
SoC: mxs-saif: check validity of ids in mxs_saif_probe()
There is a check for validity of one of ids in mxs_saif_probe(), while array dereferece is made by the other id. The patch adds the check for the second saif id. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')