Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sq.h File Reference
#include <asm/addrspace.h>
#include <asm/page.h>

Go to the source code of this file.

Macros

#define SQ_SIZE   32
 
#define SQ_ALIGN_MASK   (~(SQ_SIZE - 1))
 
#define SQ_ALIGN(addr)   (((addr)+SQ_SIZE-1) & SQ_ALIGN_MASK)
 
#define SQ_QACR0   (P4SEG_REG_BASE + 0x38)
 
#define SQ_QACR1   (P4SEG_REG_BASE + 0x3c)
 
#define SQ_ADDRMAX   (P4SEG_STORE_QUE + 0x04000000)
 

Functions

unsigned long sq_remap (unsigned long phys, unsigned int size, const char *name, pgprot_t prot)
 
void sq_unmap (unsigned long vaddr)
 
void sq_flush_range (unsigned long start, unsigned int len)
 

Macro Definition Documentation

#define SQ_ADDRMAX   (P4SEG_STORE_QUE + 0x04000000)

Definition at line 28 of file sq.h.

#define SQ_ALIGN (   addr)    (((addr)+SQ_SIZE-1) & SQ_ALIGN_MASK)

Definition at line 24 of file sq.h.

#define SQ_ALIGN_MASK   (~(SQ_SIZE - 1))

Definition at line 23 of file sq.h.

#define SQ_QACR0   (P4SEG_REG_BASE + 0x38)

Definition at line 26 of file sq.h.

#define SQ_QACR1   (P4SEG_REG_BASE + 0x3c)

Definition at line 27 of file sq.h.

#define SQ_SIZE   32

Definition at line 22 of file sq.h.

Function Documentation

void sq_flush_range ( unsigned long  start,
unsigned int  len 
)

sq_flush_range - Flush (prefetch) a specific SQ range : the store queue address to start flushing from : the length to flush

Flushes the store queue cache from to + in a linear fashion.

Definition at line 60 of file sq.c.

unsigned long sq_remap ( unsigned long  phys,
unsigned int  size,
const char name,
pgprot_t  prot 
)

Definition at line 145 of file sq.c.

void sq_unmap ( unsigned long  vaddr)

sq_unmap - Unmap a Store Queue allocation : Pre-allocated Store Queue mapping.

Unmaps the store queue allocation that was previously created by sq_remap(). Also frees up the pte that was previously inserted into the kernel page table and discards the UTLB translation.

Definition at line 209 of file sq.c.