From: Joern Adamczewski-Musch Date: Thu, 30 Oct 2025 10:02:11 +0000 (+0100) Subject: adjust pexor kernel module for kernel 6.17.5-1-default X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=2552bd5c12a5aff93fde5d68332392ff2700a3ba;p=trbnettools.git adjust pexor kernel module for kernel 6.17.5-1-default --- diff --git a/pexor/kernel-module/pexor_trb.c b/pexor/kernel-module/pexor_trb.c index 05275bf..1fa0dd6 100644 --- a/pexor/kernel-module/pexor_trb.c +++ b/pexor/kernel-module/pexor_trb.c @@ -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