[PATCH RFC v1 3/4] ntb: prepare to build the 'data transport' as a separate module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Export those routines of the data transport which the PCI NTB hardware
drivers will reference, and provide module properties such that the data
transport over PCI NTB can build as a separate module.

This change does not alter the Makefile, the data transport still gets
statically linked against the driver for Intel hardware support.

Signed-off-by: Gerhard Sittig <gsi@xxxxxxx>
---
 drivers/ntb/ntb_transport.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index 436326ad87bd..70f358c8cc09 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -61,7 +61,14 @@
 
 #include "ntb_hw.h"
 
+#define NTB_TRANSPORT_NAME	"Data transport over Non-Transparent Bridge"
 #define NTB_TRANSPORT_VERSION	3
+#define NTB_TRANSPORT_VERSTEXT	"3"
+
+MODULE_DESCRIPTION(NTB_TRANSPORT_NAME);
+MODULE_VERSION(NTB_TRANSPORT_VERSTEXT);
+MODULE_LICENSE("Dual BSD/GPL");
+MODULE_AUTHOR("Intel Corporation");
 
 static unsigned int transport_mtu = 0x401E;
 module_param(transport_mtu, uint, 0644);
@@ -979,6 +986,7 @@ err:
 	kfree(nt);
 	return rc;
 }
+EXPORT_SYMBOL(ntb_transport_init);
 
 void ntb_transport_free(void *transport)
 {
@@ -1009,6 +1017,7 @@ void ntb_transport_free(void *transport)
 	ntb_unregister_transport(ndev);
 	kfree(nt);
 }
+EXPORT_SYMBOL(ntb_transport_free);
 
 static void ntb_rx_copy_callback(void *data)
 {
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux