Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion XVSEC/linux-kernel/drv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ all:
make -C /lib/modules/$(XVSEC_KVER)/build M=$(XVSEC_HOME) modules
@mv *.ko $(module_path)/
@cp xvsec_drv.h $(module_path)/
@cp xvsec_drv_int.h $(module_path)/
@cp ./xvsec_mcap/xvsec_mcap.h $(module_path)/
@mv *.o $(module_path)/obj/
@mv .*cmd $(module_path)/obj/
@mv *.symvers $(module_path)/obj/
@mv *.mod* $(module_path)/obj/
@mv *.order* $(module_path)/obj/
@mv .tmp* $(module_path)/obj/
@mv ./xvsec_mcap/*.o $(module_path)/obj/xvsec_mcap/
@mv ./xvsec_mcap/us/*.o $(module_path)/obj/xvsec_mcap/us/
@mv ./xvsec_mcap/versal/*.o $(module_path)/obj/xvsec_mcap/versal/
Expand Down
2 changes: 0 additions & 2 deletions XVSEC/linux-kernel/drv/xvsec_cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/uaccess.h>

#include "xvsec_drv.h"
#include "xvsec_drv_int.h"
Expand Down
11 changes: 6 additions & 5 deletions XVSEC/linux-kernel/drv/xvsec_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/uaccess.h>


#include "version.h"
#include "xvsec_drv.h"
Expand Down Expand Up @@ -361,7 +358,7 @@ static const struct file_operations xvsec_gen_fops = {
};


static int xvsec_initialize(struct pci_dev *pdev, struct context *dev_ctx)
int xvsec_initialize(struct pci_dev *pdev, struct context *dev_ctx)
{
int ret = 0;
int status;
Expand Down Expand Up @@ -405,7 +402,7 @@ static int xvsec_initialize(struct pci_dev *pdev, struct context *dev_ctx)
}
EXPORT_SYMBOL_GPL(xvsec_initialize);

static int xvsec_deinitialize(struct context *dev_ctx)
int xvsec_deinitialize(struct context *dev_ctx)
{
int ret = 0;
uint16_t index;
Expand Down Expand Up @@ -456,7 +453,11 @@ static int __init xvsec_drv_init(void)
if (dev_count == 0)
return 0;

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
g_xvsec_class = class_create(XVSEC_NODE_NAME);
#else
g_xvsec_class = class_create(THIS_MODULE, XVSEC_NODE_NAME);
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) */
if (IS_ERR(g_xvsec_class)) {
pr_err("failed to create class");
ret = -(PTR_ERR(g_xvsec_class));
Expand Down
3 changes: 3 additions & 0 deletions XVSEC/linux-kernel/drv/xvsec_drv_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,7 @@ extern struct class *g_xvsec_class;
int xvsec_mcap_module_init(struct vsec_context *dev_ctx);
void xvsec_mcap_module_exit(struct vsec_context *dev_ctx);

extern int xvsec_initialize(struct pci_dev *, struct context *);
extern int xvsec_deinitialize(struct context *);

#endif /* __XVSEC_DRV_INT_H__ */
2 changes: 0 additions & 2 deletions XVSEC/linux-kernel/drv/xvsec_mcap/us/xvsec_mcap_us.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/uaccess.h>

#include "xvsec_util.h"
#include "xvsec_drv.h"
Expand Down
2 changes: 0 additions & 2 deletions XVSEC/linux-kernel/drv/xvsec_mcap/versal/xvsec_mcap_versal.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/uaccess.h>

#include "xvsec_drv.h"
#include "xvsec_drv_int.h"
Expand Down
2 changes: 0 additions & 2 deletions XVSEC/linux-kernel/drv/xvsec_mcap/xvsec_mcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/uaccess.h>

#include "xvsec_drv.h"
#include "xvsec_drv_int.h"
Expand Down
2 changes: 0 additions & 2 deletions XVSEC/linux-kernel/drv/xvsec_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/uaccess.h>

#include "xvsec_util.h"

Expand Down