[qca-nss-drv] 64 bits support

1. Set message/data buffer opaque size based on 32/64 bits platform
2. Support NET_SKBUFF_DATA_USES_OFFSET
3. Use __iomem type for system io address

Change-Id: Idc2278a2174513658046303a8e9b72d868ac97b2
Signed-off-by: Stephen Wang <wstephen@codeaurora.org>
diff --git a/nss_log.c b/nss_log.c
index ba4973d..7bed5f8 100644
--- a/nss_log.c
+++ b/nss_log.c
@@ -105,7 +105,7 @@
 	/*
 	 * i_private is passed to us by debug_fs_create()
 	 */
-	nss_id = (int)inode->i_private;
+	nss_id = (int)(nss_ptr_t)inode->i_private;
 	if (nss_id < 0 || nss_id >= NSS_MAX_CORES) {
 		nss_warning("nss_id is not valid :%d\n", nss_id);
 		return -ENODEV;
@@ -355,8 +355,8 @@
 	 * Update the callback and app_data for NOTIFY messages.
 	 */
 	if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
-		ncm->cb = (uint32_t)nss_debug_interface_cb;
-		ncm->app_data = (uint32_t)nss_debug_interface_app_data;
+		ncm->cb = (nss_ptr_t)nss_debug_interface_cb;
+		ncm->app_data = (nss_ptr_t)nss_debug_interface_app_data;
 	}
 
 	/*
@@ -667,7 +667,7 @@
 
 		snprintf(file, sizeof(file), "core%d", i);
 		nss_top_main.core_log_dentry = debugfs_create_file(file, 0400,
-						nss_top_main.logs_dentry, (void *)i, &nss_logs_core_ops);
+						nss_top_main.logs_dentry, (void *)(nss_ptr_t)i, &nss_logs_core_ops);
 		if (unlikely(!nss_top_main.core_log_dentry)) {
 			nss_warning("Failed to create qca-nss-drv/logs/%s file in debugfs", file);
 			return;