Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

dam_v1.c File Reference


Detailed Description

This is the brief documentation for this dam_v1.c file.

This file contains the implementation of the DAM driver main services

Definition in file dam_v1.c.

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/io.h>
#include <asm/uaccess.h>
#include "dam.h"
#include <mach/hardware.h>

Go to the source code of this file.

Classes

struct  _mxc_cfg

Defines

#define _reg_DAM_HPCR(a)
#define _reg_DAM_HPCR1
#define _reg_DAM_HPCR2
#define _reg_DAM_HPCR3
#define _reg_DAM_PPCR(a)
#define _reg_DAM_PPCR1
#define _reg_DAM_PPCR2
#define _reg_DAM_PPCR3
#define dam_clk_selection_mask   0xF
#define dam_dat_selection_mask   0x7
#define dam_fs_selection_mask   0xF
#define dam_hpcr_default_value   0x00001000
#define dam_internal_network_mode_mask   0xFF
#define dam_internal_network_mode_shift   0
#define dam_mode_shift   8
#define DAM_NAME   "dam"
#define dam_ppcr_default_value   0x00001000
#define dam_receive_clock_direction_shift   24
#define dam_receive_clock_select_shift   20
#define dam_receive_data_select_shift   13
#define dam_receive_frame_sync_direction_shift   25
#define dam_receive_frame_sync_select_shift   20
#define dam_synchronous_mode_shift   12
#define dam_transmit_clock_direction_shift   30
#define dam_transmit_clock_select_shift   26
#define dam_transmit_frame_sync_direction_shift   31
#define dam_transmit_frame_sync_select_shift   26
#define dam_transmit_receive_switch_shift   10
#define DAM_VIRT_BASE_ADDR   IO_ADDRESS(AUDMUX_BASE_ADDR)
#define ModifyRegister32(a, b, c)

Typedefs

typedef struct _mxc_cfg mxc_cfg

Functions

static void __exit dam_exit (void)
static int dam_free (struct inode *inode, struct file *file)
static int __init dam_init (void)
static int dam_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
static int dam_open (struct inode *inode, struct file *file)
void dam_reset_register (dam_port port)
int dam_select_mode (dam_port port, dam_mode the_mode)
void dam_select_RxClk_direction (dam_port port, signal_direction direction)
void dam_select_RxClk_source (dam_port p_config, bool from_RxClk, dam_port p_source)
void dam_select_RxD_source (dam_port p_config, dam_port p_source)
void dam_select_RxFS_direction (dam_port port, signal_direction direction)
void dam_select_RxFS_source (dam_port p_config, bool from_RxFS, dam_port p_source)
void dam_select_TxClk_direction (dam_port port, signal_direction direction)
void dam_select_TxClk_source (dam_port p_config, bool from_RxClk, dam_port p_source)
void dam_select_TxFS_direction (dam_port port, signal_direction direction)
void dam_select_TxFS_source (dam_port p_config, bool from_RxFS, dam_port p_source)
int dam_set_internal_network_mode_mask (dam_port port, unsigned char bit_mask)
void dam_set_synchronous (dam_port port, bool synchronous)
void dam_switch_Tx_Rx (dam_port port, bool value)
 EXPORT_SYMBOL (dam_reset_register)
 EXPORT_SYMBOL (dam_switch_Tx_Rx)
 EXPORT_SYMBOL (dam_set_synchronous)
 EXPORT_SYMBOL (dam_set_internal_network_mode_mask)
 EXPORT_SYMBOL (dam_select_TxFS_source)
 EXPORT_SYMBOL (dam_select_TxFS_direction)
 EXPORT_SYMBOL (dam_select_TxClk_source)
 EXPORT_SYMBOL (dam_select_TxClk_direction)
 EXPORT_SYMBOL (dam_select_RxFS_source)
 EXPORT_SYMBOL (dam_select_RxFS_direction)
 EXPORT_SYMBOL (dam_select_RxD_source)
 EXPORT_SYMBOL (dam_select_RxClk_source)
 EXPORT_SYMBOL (dam_select_RxClk_direction)
 EXPORT_SYMBOL (dam_select_mode)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("DAM char device driver")
 module_exit (dam_exit)
 module_init (dam_init)
 MODULE_LICENSE ("GPL")

Variables

static struct file_operations dam_fops
static int major_dam
static struct class * mxc_dam_class


Generated by  Doxygen 1.6.0   Back to index