summaryrefslogtreecommitdiffstats
path: root/driver/compat.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-02 19:37:30 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-02 19:37:30 +0100
commit1120e8745ccd3e512fe2016c9e5092fcd378490a (patch)
tree0e89ac6cd82c213a78d79d10d3fecff06f21127d /driver/compat.h
parent01e857cca352e73243d00b62a0c248a35cea6b71 (diff)
downloadpcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.tar.gz
pcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.tar.bz2
pcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.tar.xz
pcitool-1120e8745ccd3e512fe2016c9e5092fcd378490a.zip
Restructure driver headers
Diffstat (limited to 'driver/compat.h')
-rw-r--r--driver/compat.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/driver/compat.h b/driver/compat.h
index a8a2cf0..24cc5a9 100644
--- a/driver/compat.h
+++ b/driver/compat.h
@@ -37,47 +37,4 @@
# define __devinitdata
#endif
-#define compat_lock_page __set_page_locked
-#define compat_unlock_page __clear_page_locked
-
-
-#define class_device_attribute device_attribute
-#define CLASS_DEVICE_ATTR DEVICE_ATTR
-#define class_device device
-#define class_data dev
-#define class_device_create(type, parent, devno, devpointer, nameformat, minor, privdata) \
- device_create(type, parent, devno, privdata, nameformat, minor)
-#define class_device_create_file device_create_file
-#define class_device_remove_file device_remove_file
-#define class_device_destroy device_destroy
-#define DEVICE_ATTR_COMPAT struct device_attribute *attr,
-#define class_set_devdata dev_set_drvdata
-
-#define sysfs_attr_def_name(name) dev_attr_##name
-#define sysfs_attr_def_pointer privdata->class_dev
-#define SYSFS_GET_FUNCTION(name) ssize_t name(struct device *dev, struct device_attribute *attr, char *buf)
-#define SYSFS_SET_FUNCTION(name) ssize_t name(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
-#define SYSFS_GET_PRIVDATA dev_get_drvdata(dev)
-
-#define class_compat class
-
-
-#define IRQ_HANDLER_FUNC(name) irqreturn_t name(int irq, void *dev_id)
-
-#define request_irq(irq, irq_handler, modname, privdata) request_irq(irq, irq_handler, IRQF_SHARED, modname, privdata)
-
-
-#define io_remap_pfn_range_compat(vmap, vm_start, bar_addr, bar_length, vm_page_prot) \
- io_remap_pfn_range(vmap, vm_start, (bar_addr >> PAGE_SHIFT), bar_length, vm_page_prot)
-
-#define remap_pfn_range_compat(vmap, vm_start, bar_addr, bar_length, vm_page_prot) \
- remap_pfn_range(vmap, vm_start, (bar_addr >> PAGE_SHIFT), bar_length, vm_page_prot)
-
-#define remap_pfn_range_cpua_compat(vmap, vm_start, cpua, size, vm_page_prot) \
- remap_pfn_range(vmap, vm_start, page_to_pfn(virt_to_page((void*)cpua)), size, vm_page_prot)
-
-
-int pcidriver_pcie_get_mps(struct pci_dev *dev);
-int pcidriver_pcie_set_mps(struct pci_dev *dev, int mps);
-
#endif