diff options
Diffstat (limited to 'driver/compat.h')
-rw-r--r-- | driver/compat.h | 43 |
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 |