Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hpios.c File Reference
#include "hpi_internal.h"
#include "hpidebug.h"
#include <linux/delay.h>
#include <linux/sched.h>

Go to the source code of this file.

Macros

#define SOURCEFILE_NAME   "hpios.c"
 

Functions

void hpios_delay_micro_seconds (u32 num_micro_sec)
 
u16 hpios_locked_mem_alloc (struct consistent_dma_area *p_mem_area, u32 size, struct pci_dev *pdev)
 
u16 hpios_locked_mem_free (struct consistent_dma_area *p_mem_area)
 

Macro Definition Documentation

#define SOURCEFILE_NAME   "hpios.c"

Definition at line 23 of file hpios.c.

Function Documentation

void hpios_delay_micro_seconds ( u32  num_micro_sec)

Definition at line 29 of file hpios.c.

u16 hpios_locked_mem_alloc ( struct consistent_dma_area p_mem_area,
u32  size,
struct pci_dev pdev 
)
Allocate an area of locked memory for bus master DMA operations.

If allocation fails, return 1, and *pMemArea.size = 0

Parameters
p_mem_areamemory handle
sizeSize in bytes to allocate
pdevOS specific data required for memory allocation

Definition at line 46 of file hpios.c.

u16 hpios_locked_mem_free ( struct consistent_dma_area locked_mem_handle)
Free mapping and memory represented by LockedMemHandle

Frees any resources, then invalidates the handle. Returns 0 on success, 1 if handle is invalid.

Definition at line 69 of file hpios.c.