Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
isram-driver.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/sched.h>
#include <asm/blackfin.h>
#include <asm/dma.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "isram: " fmt
 
#define IADDR2DTEST(x)
 
#define ADDR2OFFSET(x)   ((((unsigned long)(x)) & 0x7) * 8)
 
#define ADDR2LAST(x)   ((((unsigned long)x) & 0x7) == 0x7)
 

Functions

voidisram_memcpy (void *dest, const void *src, size_t n)
 
 EXPORT_SYMBOL (isram_memcpy)
 

Macro Definition Documentation

#define ADDR2LAST (   x)    ((((unsigned long)x) & 0x7) == 0x7)

Definition at line 58 of file isram-driver.c.

#define ADDR2OFFSET (   x)    ((((unsigned long)(x)) & 0x7) * 8)

Definition at line 55 of file isram-driver.c.

#define IADDR2DTEST (   x)
Value:
({ unsigned long __addr = (unsigned long)(x); \
((__addr & (1 << 11)) << (26 - 11)) | /* addr bit 11 (Way0/Way1) */ \
(1 << 24) | /* instruction access = 1 */ \
((__addr & (1 << 15)) << (23 - 15)) | /* addr bit 15 (Data Bank) */ \
((__addr & (3 << 12)) << (16 - 12)) | /* addr bits 13:12 (Subbank) */ \
(__addr & 0x47F8) | /* addr bits 14 & 10:3 */ \
(1 << 2); /* data array = 1 */ \
})

Definition at line 44 of file isram-driver.c.

#define pr_fmt (   fmt)    "isram: " fmt

Definition at line 9 of file isram-driver.c.

Function Documentation

EXPORT_SYMBOL ( isram_memcpy  )
void* isram_memcpy ( void dest,
const void src,
size_t  n 
)

Definition at line 137 of file isram-driver.c.