]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
adjust pexor kernel module for kernel 6.17.5-1-default
authorJoern Adamczewski-Musch <j.adamczewski@gsi.de>
Thu, 30 Oct 2025 10:02:11 +0000 (11:02 +0100)
committerJoern Adamczewski-Musch <j.adamczewski@gsi.de>
Thu, 30 Oct 2025 10:02:11 +0000 (11:02 +0100)
pexor/kernel-module/pexor_trb.c

index 05275bf465c00f060a0876005e64dd0c490d19d7..1fa0dd6c39b246e61ef315cc19be828bfe3590a5 100644 (file)
@@ -215,6 +215,12 @@ static int pexor_ioctl_trbnet_request(struct pexor_privdata* priv,
                                       unsigned long arg
                                       );
 
+int pexor_copy_fifo_to_dma(struct pexor_privdata* priv,
+                           unsigned int channel);
+
+int pexor_flush_fifo(struct pexor_privdata* priv,
+                                          unsigned int channel);
+
 static void remove(struct pci_dev* dev);
 
 static int __init pexor_init(void);
@@ -1053,8 +1059,13 @@ int __init pexor_init(void)
     return result;
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
-  pexor_class = class_create(THIS_MODULE, PEXOR_NAME);
-  if (IS_ERR(pexor_class)) {
+  
+  #if LINUX_VERSION_CODE <= KERNEL_VERSION(6,4,0)
+  pexor_class = class_create (THIS_MODULE, PEXOR_NAME);
+#else
+  pexor_class = class_create (PEXOR_NAME);
+#endif
+if (IS_ERR(pexor_class)) {
     pexor_msg(KERN_ALERT "Could not create class for sysfs support!\n");
   }
 #endif