summaryrefslogtreecommitdiff
path: root/linux-core/ffb_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/ffb_drv.c')
-rw-r--r--linux-core/ffb_drv.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/linux-core/ffb_drv.c b/linux-core/ffb_drv.c
index fe0d129b..113c2d6b 100644
--- a/linux-core/ffb_drv.c
+++ b/linux-core/ffb_drv.c
@@ -28,10 +28,6 @@
#define DRIVER_COUNT_CARDS() ffb_count_card_instances()
-/* For mmap customization */
-#define DRIVER_GET_MAP_OFS() (map->offset & 0xffffffff)
-#define DRIVER_GET_REG_OFS() ffb_get_reg_offset(dev)
-
typedef struct _ffb_position_t {
int node;
int root;
@@ -273,16 +269,6 @@ unsigned long ffb_get_unmapped_area(struct file *filp,
return addr;
}
-static unsigned long ffb_get_reg_offset(drm_device_t *dev)
-{
- ffb_dev_priv_t *ffb_priv = (ffb_dev_priv_t *)dev->dev_private;
-
- if (ffb_priv)
- return ffb_priv->card_phys_base;
-
- return 0;
-}
-
#include "drm_auth.h"
#include "drm_bufs.h"
#include "drm_dma.h"