Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pvr.c File Reference
#include <linux/kernel.h>
#include <linux/compiler.h>
#include <asm/exceptions.h>
#include <asm/pvr.h>

Go to the source code of this file.

Macros

#define get_single_pvr(pvrid, val)
 

Functions

int cpu_has_pvr (void)
 
void get_pvr (struct pvr_s *p)
 

Macro Definition Documentation

#define get_single_pvr (   pvrid,
  val 
)
Value:
{ \
register unsigned tmp __asm__("r3"); \
tmp = 0x0; /* Prevent warning about unused */ \
__asm__ __volatile__ ( \
"mfs %0, rpvr" #pvrid ";" \
: "=r" (tmp) : : "memory"); \
val = tmp; \
}

Definition at line 24 of file pvr.c.

Function Documentation

int cpu_has_pvr ( void  )

Definition at line 45 of file pvr.c.

void get_pvr ( struct pvr_s p)

Definition at line 66 of file pvr.c.