mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Add initial mft source of version-4.26.1-3 from https://www.mellanox.com/downloads/MFT/mft-4.26.1-3-arm64-deb.tgz bug 4192483 bug 4312056 Change-Id: I77c0af297c9833c3dcbcdfc89b316042548b9af8 Signed-off-by: Bharath H S <bhs@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3069977 (cherry picked from commit d65df2a986469950aab3f323bbee3a3aee0c0308) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3069972 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
#ifndef NNT_DEFS_H
|
|
#define NNT_DEFS_H
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/fs.h>
|
|
|
|
|
|
/* Passing MFT flag argument */
|
|
extern int is_mft_package;
|
|
extern struct driver_info nnt_driver_info;
|
|
|
|
#define NNT_DRIVER_NAME "nnt_driver"
|
|
#define NNT_CLASS_NAME "nnt_class"
|
|
#define NNT_DEVICE_PREFIX "mt"
|
|
#define NNT_DRIVER "NNT Driver::"
|
|
|
|
#define CHECK_PCI_READ_ERROR(error, address) \
|
|
if (error) { \
|
|
printk(KERN_ERR "Failed to read from address: %x\n", address); \
|
|
goto ReturnOnFinished; \
|
|
}
|
|
|
|
#define CHECK_PCI_WRITE_ERROR(error, address, data) \
|
|
if (error) { \
|
|
printk(KERN_ERR "Failed to write to address: %x, data: %x\n", address, data); \
|
|
goto ReturnOnFinished; \
|
|
}
|
|
|
|
#define CHECK_ERROR(error) \
|
|
if (error) { \
|
|
goto ReturnOnFinished; \
|
|
}
|
|
|
|
struct driver_info {
|
|
dev_t device_number;
|
|
int contiguous_device_numbers;
|
|
struct class* class_driver;
|
|
};
|
|
|
|
|
|
#endif
|