From patchwork Tue Nov 17 09:57:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 56778 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1831449lbb; Tue, 17 Nov 2015 01:58:57 -0800 (PST) X-Received: by 10.68.91.162 with SMTP id cf2mr51935223pbb.34.1447754336952; Tue, 17 Nov 2015 01:58:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rf5si8652772pbc.205.2015.11.17.01.58.56; Tue, 17 Nov 2015 01:58:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753125AbbKQJ6z (ORCPT + 6 others); Tue, 17 Nov 2015 04:58:55 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:33927 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753478AbbKQJ6y (ORCPT ); Tue, 17 Nov 2015 04:58:54 -0500 Received: by wmvv187 with SMTP id v187so218409546wmv.1 for ; Tue, 17 Nov 2015 01:58:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cwwASdRujf0qKaCqe6kvNOwdDY3srz+XDKBGjed2fvw=; b=IRXQmEWASdtSxuvI0e4RiL+Vavtc9/cgfXN6zizGLXSAezkiYfSzaDci5EulJUFnuS mEx67bZ5kLD51YHQzuzADfVeRUpkpOZ2Y6JwJv6x7dXvW5Buk6/OfqZK3SCw2VXTXBst OCZlScY02S7varj7J8+laWjsGEbp1zAcYJf+MfSd4y1+Li3Ek2NsDRqHjpilJEyxd6XN hflhIY5kweR0c9yiCxBVsS8qoO7VgksWLej9BDzpmFzVHeO3Rt7BroVFjkK5KTrN+ZpX 4/3gvF2WLcRyaDsacUymYF/dhQT08emCl15BhNSgJa3QIQ1OVGNKBUpwik1onA/clyeN gWGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cwwASdRujf0qKaCqe6kvNOwdDY3srz+XDKBGjed2fvw=; b=LuKVtzv9xGfDb63A654Y4OTByz7B2BuKOD3EMjFPjGuoPj6pSQbtwIHRM6zCVvTICL /TNDQM/0sR6ORtdzCI8MT2T6GFghpJFYLOlCcy56fUG2pCpni58cXb4gMATmxoO/B9m9 wRdpc6tNs3fOsKua4cRwOTYG8Gms1ukpqWCiPTQS5TJy1xjqMI1fByawbVsCrmFJa3VX qdP2Q9efEJAft65He1yHijG0uMy6co+2RkRv87mDReWVYCqQ93SXRchK4CZIMZWfkDdB 2yQD3ugN8gmkdX1NgOlyCyXRCn9tmkaR0ZS/EW+bQaSxtrUKXdGPEYPFbeUsSs/h6ZDW Zjhg== X-Gm-Message-State: ALoCoQnvk/ZpHLVjLxfq7PS16iA0uVAtzEQA0WeqqxDz+YYaUqvambJam4DxeDNyuEZIvV07zI74 X-Received: by 10.28.6.206 with SMTP id 197mr1643175wmg.102.1447754332898; Tue, 17 Nov 2015 01:58:52 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id l186sm23015058wmg.19.2015.11.17.01.58.50 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:58:52 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, catalin.marinas@arm.com, will.deacon@arm.com, julien.grall@citrix.com, ard.biesheuvel@linaro.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org Cc: xen-devel@lists.xen.org, christoffer.dall@linaro.org, devicetree@vger.kernel.org, linux-efi@vger.kernel.org, peter.huangpeng@huawei.com, shannon.zhao@linaro.org, zhaoshenglong@huawei.com, hangaohuai@huawei.com Subject: [PATCH 11/13] xen/hvm/params: Add a new dilivery type for event-channel in HVM_PARAM_CALLBACK_IRQ Date: Tue, 17 Nov 2015 17:57:09 +0800 Message-Id: <1447754231-7772-12-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447754231-7772-1-git-send-email-shannon.zhao@linaro.org> References: <1447754231-7772-1-git-send-email-shannon.zhao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Shannon Zhao Add a new dilivery type: val[63:56] == 3: val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 0 stands the interrupt mode is edge(1) or level(0) and bit 1 stands the interrupt polarity is active low(1) or high(0). Signed-off-by: Shannon Zhao --- include/xen/interface/hvm/params.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/xen/interface/hvm/params.h b/include/xen/interface/hvm/params.h index a6c7991..550688a 100644 --- a/include/xen/interface/hvm/params.h +++ b/include/xen/interface/hvm/params.h @@ -34,6 +34,11 @@ * Domain = val[47:32], Bus = val[31:16], * DevFn = val[15: 8], IntX = val[ 1: 0] * val[63:56] == 2: val[7:0] is a vector number. + * val[63:56] == 3: val[15:8] is flag of event-channel interrupt: + * bit 0: interrupt is edge(1) or level(0) triggered + * bit 1: interrupt is active low(1) or high(0) + * val[7:0] is PPI number used by event-channel. + * This is only used by ARM/ARM64. * If val == 0 then CPU0 event-channel notifications are not delivered. */ #define HVM_PARAM_CALLBACK_IRQ 0