svn commit: r289597 - head/sys/dev/ntb/ntb_hw

Conrad E. Meyer cem at FreeBSD.org
Mon Oct 19 17:53:22 UTC 2015


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


More information about the svn-src-head mailing list