Date: Mon, 19 Oct 2015 17:53:20 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> 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 Message-ID: <201510191753.t9JHrK4l080514@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510191753.t9JHrK4l080514>