Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ctvmem.h File Reference
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/pci.h>
#include <sound/memalloc.h>

Go to the source code of this file.

Data Structures

struct  ct_vm_block
 
struct  ct_vm
 

Macros

#define CT_PTP_NUM   4 /* num of device page table pages */
 
#define CT_PAGE_SIZE   4096
 
#define CT_PAGE_SHIFT   12
 
#define CT_PAGE_MASK   (~(PAGE_SIZE - 1))
 
#define CT_PAGE_ALIGN(addr)   ALIGN(addr, CT_PAGE_SIZE)
 

Functions

int ct_vm_create (struct ct_vm **rvm, struct pci_dev *pci)
 
void ct_vm_destroy (struct ct_vm *vm)
 

Macro Definition Documentation

#define CT_PAGE_ALIGN (   addr)    ALIGN(addr, CT_PAGE_SIZE)

Definition at line 34 of file ctvmem.h.

#define CT_PAGE_MASK   (~(PAGE_SIZE - 1))

Definition at line 33 of file ctvmem.h.

#define CT_PAGE_SHIFT   12

Definition at line 32 of file ctvmem.h.

#define CT_PAGE_SIZE   4096

Definition at line 31 of file ctvmem.h.

#define CT_PTP_NUM   4 /* num of device page table pages */

Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.

This source file is released under GPL v2 license (no other versions). See the COPYING file included in the main directory of this source distribution for the license terms and conditions.

ctvmem.h

This file contains the definition of virtual memory management object for card device.

Liu Chun Mar 28 2008

Definition at line 21 of file ctvmem.h.

Function Documentation

int ct_vm_create ( struct ct_vm **  rvm,
struct pci_dev pci 
)

Definition at line 174 of file ctvmem.c.

void ct_vm_destroy ( struct ct_vm vm)

Definition at line 220 of file ctvmem.c.