From owner-svn-src-all@freebsd.org Mon Oct 19 17:53:22 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 223B1A19093; Mon, 19 Oct 2015 17:53:22 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2DDBF0C; Mon, 19 Oct 2015 17:53:21 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9JHrL2f080515; Mon, 19 Oct 2015 17:53:21 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9JHrK4l080514; Mon, 19 Oct 2015 17:53:20 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201510191753.t9JHrK4l080514@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: "Conrad E. Meyer" Date: Mon, 19 Oct 2015 17:53:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289597 - head/sys/dev/ntb/ntb_hw X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 17:53:22 -0000 Author: cem Date: Mon Oct 19 17:53:20 2015 New Revision: 289597 URL: https://svnweb.freebsd.org/changeset/base/289597 Log: NTB: Add ntb_db_valid_mask() missed in r289546 Another trivial one. Pointy-hat: cem Obtained from: Linux (Dual BSD/GPL driver) Sponsored by: EMC / Isilon Storage Division Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c Modified: head/sys/dev/ntb/ntb_hw/ntb_hw.c ============================================================================== --- head/sys/dev/ntb/ntb_hw/ntb_hw.c Mon Oct 19 17:41:22 2015 (r289596) +++ head/sys/dev/ntb/ntb_hw/ntb_hw.c Mon Oct 19 17:53:20 2015 (r289597) @@ -2192,6 +2192,21 @@ ntb_get_peer_db_addr(struct ntb_softc *n return ((uint64_t)bar->pci_bus_handle + regoff); } +/* + * ntb_db_valid_mask() - get a mask of doorbell bits supported by the ntb + * @ntb: NTB device context + * + * Hardware may support different number or arrangement of doorbell bits. + * + * Return: A mask of doorbell bits supported by the ntb. + */ +uint64_t +ntb_db_valid_mask(struct ntb_softc *ntb) +{ + + return (ntb->db_valid_mask); +} + /** * ntb_link_is_up() - get the current ntb link state * @ntb: NTB device context