This commit is contained in:
2026-06-19 07:46:17 -05:00
parent ffd3eab72d
commit dd811684dc
10 changed files with 803 additions and 43 deletions

18
pcie_driver/drex.h Executable file
View File

@@ -0,0 +1,18 @@
#ifndef DREX_H_
#define DREX_H_
#include <linux/types.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/pci.h>
/* This is a "private" data structure */
/* You can store there any data that should be passed between driver's functions */
struct drexpcie_driver_priv {
struct pci_dev *pdev;
unsigned long mem_start;
unsigned long mem_len;
u8 __iomem *bar0_mem;
};
#endif