From patchwork Tue Jun 14 23:12:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hotran X-Patchwork-Id: 9177169 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7AC8D60772 for ; Tue, 14 Jun 2016 23:13:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B9552832A for ; Tue, 14 Jun 2016 23:13:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FFA12833B; Tue, 14 Jun 2016 23:13:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF5372832A for ; Tue, 14 Jun 2016 23:13:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932285AbcFNXNE (ORCPT ); Tue, 14 Jun 2016 19:13:04 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:34305 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932200AbcFNXNA (ORCPT ); Tue, 14 Jun 2016 19:13:00 -0400 Received: by mail-pf0-f181.google.com with SMTP id 62so2053117pfd.1 for ; Tue, 14 Jun 2016 16:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id; bh=Eqdhy2IAd/ehHkx/kzlf1oG+3mu3aipf6mHRJ6K7vpg=; b=r0ZudmydFC0KrsgJGpfhFud97GtlFNgpGRcTEbd0PGp+OFZynFvPWsP+qXS8e/gWVc /oYprA1RtqBI5eaBNL8eV878umwThnPZ8TbmGIPabekmfFmBiImcBHvFsk6q5RsxMp8B p9iVVL3LRYie0czRYtPTm6u3vCNYpRj+7QZtc= 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; bh=Eqdhy2IAd/ehHkx/kzlf1oG+3mu3aipf6mHRJ6K7vpg=; b=JMFuo4F/K1dr74Ez8zdOae0heWrvHPxibqSJwBxI/c/J9HZ3AOCqqaZ6hsaE7NKa7b cZUod+TyrUNlF+ANGJxnGa5MSgajbkCQk2zYSOVfAoeIX5fmViKtsxEVcPM6/jM/sIL7 4AYcPe7bB9hqNP/6e2+CYGOYE6W6NN5QE/ToJsOQnW8EofeeWoEzvH9J6fU8lxYPw8dd Cp9lQl9U8ZdgkHHOUcb7n936lcYpuWn46sTvJ/BnnqzOU/xL53KbCyhLvR9vg4j4xHLq mGyG2TYfxluBSVolksSsGNhxJTSplOWAZ1pUK+ou/Q8yvIXUY+p93Lwq2XBd8YbafO36 rr7Q== X-Gm-Message-State: ALyK8tLhosGt9VzD55JKYT1SIc2nGxZh2MF9aRnQKB8DU9vl/daZ3/2mE/xlUTFT6f4kcgqO X-Received: by 10.98.80.134 with SMTP id g6mr188568pfj.60.1465945978912; Tue, 14 Jun 2016 16:12:58 -0700 (PDT) Received: from hotran_localhost.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id a85sm35337856pfj.42.2016.06.14.16.12.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 16:12:58 -0700 (PDT) From: Hoan Tran To: Ashwin Chaugule , Jassi Brar , "Rafael J. Wysocki" , Len Brown Cc: Robert Moore , Lv Zheng , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, devel@acpica.org, lho@apm.com, Duc Dang , Hoan Tran Subject: [PATCH] mailbox: pcc: Add PCC request and free channel declarations Date: Tue, 14 Jun 2016 16:12:43 -0700 Message-Id: <1465945963-22353-1-git-send-email-hotran@apm.com> X-Mailer: git-send-email 1.9.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As PCC will be used by other clients not only CPPC. This change exports pcc_mbox_request_channel() and pcc_mbox_free_channel() declarations Signed-off-by: Hoan Tran --- include/acpi/cppc_acpi.h | 4 ---- include/linux/mailbox_client.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h index dad8af3..819b4b9 100644 --- a/include/acpi/cppc_acpi.h +++ b/include/acpi/cppc_acpi.h @@ -130,8 +130,4 @@ extern int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls); extern int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps); extern int acpi_get_psd_map(struct cpudata **); -/* Methods to interact with the PCC mailbox controller. */ -extern struct mbox_chan * - pcc_mbox_request_channel(struct mbox_client *, unsigned int); - #endif /* _CPPC_ACPI_H*/ diff --git a/include/linux/mailbox_client.h b/include/linux/mailbox_client.h index 41e2af8..2758d18 100644 --- a/include/linux/mailbox_client.h +++ b/include/linux/mailbox_client.h @@ -50,4 +50,8 @@ void mbox_client_txdone(struct mbox_chan *chan, int r); /* atomic */ bool mbox_client_peek_data(struct mbox_chan *chan); /* atomic */ void mbox_free_channel(struct mbox_chan *chan); /* may sleep */ +/* Methods to interact with the PCC mailbox controller. */ +struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *, int); +void pcc_mbox_free_channel(struct mbox_chan *chan); + #endif /* __MAILBOX_CLIENT_H */