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);
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