From patchwork Mon Mar 7 19:42:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 8522271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DA374C0553 for ; Mon, 7 Mar 2016 19:41:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD93020103 for ; Mon, 7 Mar 2016 19:41:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C110520295 for ; Mon, 7 Mar 2016 19:41:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ad10i-0005Aa-Cn; Mon, 07 Mar 2016 19:40:08 +0000 Received: from mail-bn1on0068.outbound.protection.outlook.com ([157.56.110.68] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ad10L-0004hH-A6 for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2016 19:39:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cg3HOhGHp48k08qA/WIujbYvvdyBqDA92Waj6sFuRuc=; b=Z+nCBbSo48VSf8jOE2x3ujek+SGEV8hcpVR+eUHWgEDTSLyNTWzLkdpR2P3O0wotMWURIFO8x6oPO185xJaQqElkcsxF9Dl1RoGnMd0jYlnXA5Epan4LBWETPMH4oh5r8GhB+b8pnuKp5DrB7tUEArz4BelRd7L1cl5D/5c+0b8= Received: from BLUPR03CA003.namprd03.prod.outlook.com (10.255.124.20) by SN1PR0301MB2031.namprd03.prod.outlook.com (10.163.226.29) with Microsoft SMTP Server (TLS) id 15.1.427.16; Mon, 7 Mar 2016 19:39:21 +0000 Received: from BN1BFFO11OLC001.protection.gbl (10.255.124.4) by BLUPR03CA003.outlook.office365.com (10.255.124.20) with Microsoft SMTP Server (TLS) id 15.1.427.16 via Frontend Transport; Mon, 7 Mar 2016 19:39:21 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com; vger.kernel.org; dmarc=none action=none header.from=opensource.altera.com; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 7 Mar 2016 19:39:21 +0000 Received: from na01-by2-obe.outbound.protection.outlook.com (207.46.163.237) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 7 Mar 2016 11:38:42 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cg3HOhGHp48k08qA/WIujbYvvdyBqDA92Waj6sFuRuc=; b=Z+nCBbSo48VSf8jOE2x3ujek+SGEV8hcpVR+eUHWgEDTSLyNTWzLkdpR2P3O0wotMWURIFO8x6oPO185xJaQqElkcsxF9Dl1RoGnMd0jYlnXA5Epan4LBWETPMH4oh5r8GhB+b8pnuKp5DrB7tUEArz4BelRd7L1cl5D/5c+0b8= Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.137.57.187.33 (64.129.157.38) by CY1PR03MB1486.namprd03.prod.outlook.com (10.163.17.16) with Microsoft SMTP Server (TLS) id 15.1.427.16; Mon, 7 Mar 2016 19:39:17 +0000 From: To: , , , , , , , , , , Subject: [PATCHv2 02/11] EDAC, altera: Move Device structs and defines to header file Date: Mon, 7 Mar 2016 13:42:58 -0600 Message-ID: <1457379787-8327-3-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1457379787-8327-1-git-send-email-tthayer@opensource.altera.com> References: <1457379787-8327-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY2PR1001CA0010.namprd10.prod.outlook.com (25.164.163.148) To CY1PR03MB1486.namprd03.prod.outlook.com (25.163.17.16) X-MS-Office365-Filtering-Correlation-Id: b14a2498-cbfd-4196-52bc-08d346c02e58 X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1486; 2:iBty6tZRV78s6o3BnssePiry+zHnAIbYC+XUv4GjOehSYT/ZoTkvd4Jwt30ZeE1kzZFHzQqFeDFb02/90T2UHRDR4KizPGIsk5ukNHHDgD8nkMcMKPk/+qTaBGPGB/ebuwzvlaLbfCtfxj7ozEriWClABxm8Ij6fLHLYwdEBvYe+B7pSNdCnbOJDtyJJxyse; 3:lcN5Dk8Ys2QS0i9KAc/XnoOy/DgJToIvN2NTNZWaUVfsxpWTfvs3L7AFoBMCR/Smwu/yPQTrAK7iUYFGfjno9yK3ki8FSxbvwm8f6OM7pVQsKM7AZWOsYqDH7AvuLc/n; 25:4vqYkqbcqDN/1Cnr6aEcQHnpTsB6+FHk4qbbhDb0hPhb/twLth01FTLb7O4Gc5cQEyr7ZJrvYlBYHNiXj3e7zptCauwonut+5Z5Zfr92oSxFx5Bb7VbhCAEAIrKJhu7xNh2JDhBRbGIz15DJuj1yVHf8px7lOG6d64XUoVs32AO/pzWAeR2rdxJOIV6iDnl/lOHfZiT0rrf6q7lJWyOo6AXLdgsWdLojpcHp2p5fur+9w2mei8sK5migXLhOYrdB2odIHGFAZ64HVJWtZQC7dAXAluG1wELKjFWsahZkaNSvgHXftOuxdvDQ8482M5RbyoMuCN9HhqRDxjhKQKOtkCFkdiwtTNPHlMotSR4xN6A=; 20:aS9x3HkRdbm7eUsCJZ4/9dDdnJ7FqzPDRd5Zlg8GV1ChTmHpBxCQ3kNPulM2m6aNrJBKAzzN8BiyR00ptVwg7IVZDzJscI9VNbe6J7C8LCH+PN8LyVDFsUGSmJOaP6zSRMMgWkppilPmS4Vv15vDYCHAuzA3Jib369RRpkGTDlE= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1486; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:CY1PR03MB1486; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1486; BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13017025)(13023025)(13024025)(5005006)(8121501046)(13018025)(3002001)(10201501046); SRVR:SN1PR0301MB2031; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB2031; X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1486; 4:l2d0zFfnFPPDdcYdiLDeXffuBtC967ghvmqzb64uFGqOKClsJfK8FqSiz2qhq0OOFg/zlXLvr8WI1HntKGSikoQsVwdXaYImGlpbkDQi5DoEEUQVp0pp3Z5JnmTyqLyOeEVGeoCtmALkTmAT+kepiX8Qi+AY1tQLvamZVC1oxzachZKxaisOkPgmPfdBpPxP7GwpgRZ2LsOdWhwiGEeLtVOgWdWGUD85M5OYulmXTwfZjOpToCZOT8pd8NEJznCkwqBuRFODV1PbOIkmLahK2RIJWtXsMP+QYIdOqfZgmBB1mnxaDu9fqZQ/3dAeHTFLsvmk+N5GjEKz6Kss3Mb3as55GxRae6+zrYU882dCoFtqieW9qRq3riARspJY0pL2 X-Forefront-PRVS: 087474FBFA X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(5003940100001)(4326007)(81166005)(92566002)(5001770100001)(2876002)(5004730100002)(5008740100001)(86152002)(2201001)(189998001)(77096005)(19580395003)(19580405001)(40100003)(2950100001)(2906002)(122386002)(107886002)(33646002)(48376002)(229853001)(47776003)(50986999)(76176999)(42186005)(66066001)(50226001)(6116002)(3846002)(87976001)(86362001)(50466002)(4001430100002)(1096002)(586003)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1486; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; CY1PR03MB1486; 23:YTcrwRBtmVCjVDR5xldGs8dRPABwH0CwYXUCw+thD?= =?us-ascii?Q?4wsCGJ1jw43LBM+ytumfFfYdTnouP0FXlGj71kQs64MdCLUz9FZfc3WDY8Zp?= =?us-ascii?Q?CrYoZu1lUCM/B/njN9qFvZK4HP87V3AiHpLbBsO+SogvrN+9OB/rUoHrc6Zw?= =?us-ascii?Q?Ix09v1UnA1kxKTR+kekTdSRD7JpOcCUEkSXfZpt4oDJk19n0Qb8OTqh8oTU7?= =?us-ascii?Q?vYBZXW/dpSrjQyfTB4rHNZhS6zcPaHHFBmQEZUCxCEz+lyGRbejUbORMNhVr?= =?us-ascii?Q?rfV7Wff4M15GzkAsYgZ2ZOYG5Xcbg5pZVxaujkNdR0RVjpK1pcKc8XfgZ/Z/?= =?us-ascii?Q?A6/Igoyf3T2R74e2tqVWUMAfOf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wsrvEkT72CldXvmZ8f9nNKLHxe/pzwyPkCuVWmQURwkoqhv+N5YSY3HGhehYaHW1uo9+JNF4n/B3Q==; 24:r676aWkuG6V013qnj2ulQ5v9tJ5Fe3C/NY+kSlm/FD5SWCpMHphr/xIYZyPf/i8xtwpynDtZ95Js+9ENEJrZMK6bw2Zyj6G+TThYKOFLstg=; 20:sLDGT4GWdIF0ieilYBijbylnZdTCKe1lm+08N3raPLwWm+HFXHxk/0VM81p62yOLtENFI5HZCJxex0NJ1mcGE48SWT7tle4CHaYcLKI6pJ3HDAJs/n6WE0vLuQXw01mpBgaFwoKJsHpCJHVDCpTLRoni4Q13JbriAvVs1v440Kc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1486 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11OLC001.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC001; 1:NrDVvJrLfz8V2sgkYftUs0ZqWst2hgG45Z34vVlXsQcioGR8beAaPNxXDdunGIn+NUE0tuuymA41/ExMCK/O43gE7eAHcxgS0pJJxCKcCQ6Wp7yNaXNrorNAEbshAkb9fr1yAEwZ0DI1D4iYSoB2o+UeMo1Yzo7ceA7kGsI0pN9QkQi4YsDZA22haOihXjwMCo3uSxLk3OX4ZujWbth7e287Trx+ZY6UE2O5mRv+pEXvVno509S3j+NOtQ8HAfxhZtyChUGzxCxmQXaF9JxwTuacRcGMZo9oqO2WVUzpjFw4HDqQs2/fodhlIqMeCuT+cHB2OgzLtn1GbGf6e4T2tokS5rLefyh40iaUdQPfPYEmq690aTuo/2+k2b+4nZm0Kb4WiWHaIF6Pg3xM9BQDYsV4c0G+j77vrpAjMgBrQAMjvHYFngaoKJJTFppsk9vzpWxU8WENGRQisiViF1G44A== X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(5004730100002)(40100003)(105606002)(47776003)(189998001)(106466001)(48376002)(19580405001)(19580395003)(76176999)(122386002)(5001770100001)(81166005)(92566002)(87936001)(107886002)(86362001)(50226001)(50986999)(6116002)(3846002)(586003)(11100500001)(4001430100002)(6806005)(4326007)(2876002)(33646002)(2950100001)(5008740100001)(956001)(1096002)(77096005)(1220700001)(229853001)(2906002)(86152002)(2201001)(5003940100001)(21840400001)(85426001)(16796002)(66066001)(3720700001)(50466002)(7099028)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB2031; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2031; 2:g+ehYh5iKT7CfkEbGu/R6lNkYwohSucjfySCW0VL/0qhD1ZuFOHU72i2smW2QYhkmCUeiOCRTKxXXhOx6myTpAvlV+kfSD7R0qmnFKr9hqsGOadJVGN5kxDrMQ9hnnM158gTF/yF+puL2bgtH6BfDlpCQiF4rtmTJ5tg/W6MkbKOr+hrAc4IXu+UJEKvvXb/; 3:SyhJMM47E90EXHyjwc+jidbcMQsKTAzx6OMGmS+qwOor5XVb7FC1wCEj97TtSDNgDyaXp04WtIUgiV0eydfnlaVNGPXtIqDcQ40caiLvPDKqOA5qADdE7v5a4HZdboa2k93isTXstouB7yQP0J89CxhRHzOma5fpTa4VpTMqiBwQ6kxJjDbEpXLMqzbf5DESmsKXr+XTrgrBqYpnV6AFk4d4yWBWCInmq6I7bntNXz6KCH6iXqmEUhcObLvsUqJ4; 25:VzaXkxYaOrUMdsKHAnjIVmrSbZJ0ZDNPzXjKsTEsKK0H7/ZTGvPw1sGx/WFzGCZ/S7G0yr3MOrfXBVwRLHZfRR37hHckjOpscB71/j4OKIBJ4lWh/MubAgeo0/xNwzIeaDUTBGBwMDMYNMF6QGCOVr6ZaRYslKfLBrWZ1g/mE2oafViwYpJtlRvVAGBPtHbUZodkCdeFKwh7ZeTGlMaAMlPYrGc7LcPC6BQDEuElgho8AlCP1rjRiu0CyS/LbEtSEvjxizmi8ua+WO6Kc4YaLjk2JWqS0RHEQkHhlO++dX7+XE9fLE+ch74SlayG2TIbPi57swzTXbtwdb8aAuhkT7Ww/GYpGqylSbPcU3v8Tkrb29ZpCr1lChpxXTCizPZT8D72P6YWr/Yu+mYv4tsGjA== X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:SN1PR0301MB2031; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB2031; 20:ktgtIb3S7bhmjOiuQE2N+VfsnZra5BXiui8QdxxuFC9vi1ATC3sGHQEMg4hepSq+hwb3VjluJB1KP5iho2PQZj+uKZCiWVOiCcFh/TVjfB//qSwNw04yUEtd46Z3flxmQe3BZudVH/Ylsu86LMGGTuAqkQSAWVGlPKBrEcogyQA=; 4:RAt7DjrsYdYpjJnqertZlamZw+LRSGUTZnqCL5hQGOXMCs28w2nlu5RYDZ0CavJZqYL9xDcG1kkeY/yDj5HuZF2Wg1c56hrk4XL1TgwZ6jZycG29LjdsRE0NYYVRGseUN1EJ25kRDjpnqJ3srU56bmMPAxQYL113WGavw41SMg0/8jgCKN3NaByuNtlU/dLdRIh4XRbK/PSlkdqNzMd9EPM3K9zVTdY0w0vazfZbdqKIe9m/Cm9LnISww5QTvGg0f8js+JhYC4pbZc5zgpfYG4yr8nLz2O/IQ2OjNLspZVAob3aC4BnFeqe5jYyH28yWL95Mxd4KCYkUrx9ddmQ/Qj4sL6s1fQnhSn5XrlcUzHyvmAkE15gOv6Fap2VLmdq1VH4Spa9vZjY+cuyIqw2WVyBpDNqvxeaS0dpZDTwHhw4w3ecORMXchrEaCsacrEnWrPoGxHpzt/kTqeyGDXqZkg== X-Forefront-PRVS: 087474FBFA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?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iPVCDnZ/vKCGYBgkobWj8/v4R7h5VY1LP4cUGmvMpO8hCK5I45LwCSJxnuoF5UnZKJT8PmxdTv3gpn+XhOHSfMt1uSJCQgJe2K4o2N/EBEPzIx/9L19/os= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2016 19:39:21.0365 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.227]; Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB2031 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160307_113945_853658_CA80E177 X-CRM114-Status: UNSURE ( 6.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tthayer.linux@gmail.com, tthayer@opensource.altera.com, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer Move the device structs and defines to altera_edac.h in preparation for adding the Arria10 L2 cache ECC. Signed-off-by: Thor Thayer --- v2: Split original patch into smaller patches. Move private data and defines into header file. --- drivers/edac/altera_edac.c | 43 ------------------------------------------- drivers/edac/altera_edac.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index 63e4209..eee7a39 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -78,27 +78,6 @@ static const struct altr_sdram_prv_data a10_data = { .ue_set_mask = A10_DIAGINT_TDERRA_MASK, }; -/************************** EDAC Device Defines **************************/ - -/* OCRAM ECC Management Group Defines */ -#define ALTR_MAN_GRP_OCRAM_ECC_OFFSET 0x04 -#define ALTR_OCR_ECC_EN BIT(0) -#define ALTR_OCR_ECC_INJS BIT(1) -#define ALTR_OCR_ECC_INJD BIT(2) -#define ALTR_OCR_ECC_SERR BIT(3) -#define ALTR_OCR_ECC_DERR BIT(4) - -/* L2 ECC Management Group Defines */ -#define ALTR_MAN_GRP_L2_ECC_OFFSET 0x00 -#define ALTR_L2_ECC_EN BIT(0) -#define ALTR_L2_ECC_INJS BIT(1) -#define ALTR_L2_ECC_INJD BIT(2) - -#define ALTR_UE_TRIGGER_CHAR 'U' /* Trigger for UE */ -#define ALTR_TRIGGER_READ_WRD_CNT 32 /* Line size x 4 */ -#define ALTR_TRIG_OCRAM_BYTE_SIZE 128 /* Line size x 4 */ -#define ALTR_TRIG_L2C_BYTE_SIZE 4096 /* Full Page */ - /*********************** EDAC Memory Controller Functions ****************/ /* The SDRAM controller uses the EDAC Memory Controller framework. */ @@ -571,28 +550,6 @@ module_platform_driver(altr_edac_driver); const struct edac_device_prv_data ocramecc_data; const struct edac_device_prv_data l2ecc_data; -struct edac_device_prv_data { - int (*setup)(struct platform_device *pdev, void __iomem *base); - int ce_clear_mask; - int ue_clear_mask; - char dbgfs_name[20]; - void * (*alloc_mem)(size_t size, void **other); - void (*free_mem)(void *p, size_t size, void *other); - int ecc_enable_mask; - int ce_set_mask; - int ue_set_mask; - int trig_alloc_sz; -}; - -struct altr_edac_device_dev { - void __iomem *base; - int sb_irq; - int db_irq; - const struct edac_device_prv_data *data; - struct dentry *debugfs_dir; - char *edac_dev_name; -}; - static irqreturn_t altr_edac_device_handler(int irq, void *dev_id) { irqreturn_t ret_value = IRQ_NONE; diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index 953077d..e531da4 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -195,4 +195,47 @@ struct altr_sdram_mc_data { const struct altr_sdram_prv_data *data; }; +/************************** EDAC Device Defines **************************/ + +#define ALTR_UE_TRIGGER_CHAR 'U' /* Trigger for UE */ +#define ALTR_TRIGGER_READ_WRD_CNT 32 /* Line size x 4 */ +#define ALTR_TRIG_OCRAM_BYTE_SIZE 128 /* Line size x 4 */ +#define ALTR_TRIG_L2C_BYTE_SIZE 4096 /* Full Page */ + +/* OCRAM ECC Management Group Defines */ +#define ALTR_MAN_GRP_OCRAM_ECC_OFFSET 0x04 +#define ALTR_OCR_ECC_EN BIT(0) +#define ALTR_OCR_ECC_INJS BIT(1) +#define ALTR_OCR_ECC_INJD BIT(2) +#define ALTR_OCR_ECC_SERR BIT(3) +#define ALTR_OCR_ECC_DERR BIT(4) + +/* L2 ECC Management Group Defines */ +#define ALTR_MAN_GRP_L2_ECC_OFFSET 0x00 +#define ALTR_L2_ECC_EN BIT(0) +#define ALTR_L2_ECC_INJS BIT(1) +#define ALTR_L2_ECC_INJD BIT(2) + +struct edac_device_prv_data { + int (*setup)(struct platform_device *pdev, void __iomem *base); + int ce_clear_mask; + int ue_clear_mask; + char dbgfs_name[20]; + void * (*alloc_mem)(size_t size, void **other); + void (*free_mem)(void *p, size_t size, void *other); + int ecc_enable_mask; + int ce_set_mask; + int ue_set_mask; + int trig_alloc_sz; +}; + +struct altr_edac_device_dev { + void __iomem *base; + int sb_irq; + int db_irq; + const struct edac_device_prv_data *data; + struct dentry *debugfs_dir; + char *edac_dev_name; +}; + #endif /* #ifndef _ALTERA_EDAC_H */