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

dam.c File Reference


Detailed Description

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

This file contains the implementation of the DAM driver main services

Definition in file dam.c.

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

Go to the source code of this file.

Defines

#define _reg_DAM_CNMCR
#define _reg_DAM_PDCR(a)
#define _reg_DAM_PDCR1
#define _reg_DAM_PDCR2
#define _reg_DAM_PDCR3
#define _reg_DAM_PDCR4
#define _reg_DAM_PDCR5
#define _reg_DAM_PDCR6
#define _reg_DAM_PDCR7
#define _reg_DAM_PTCR(a)
#define _reg_DAM_PTCR1
#define _reg_DAM_PTCR2
#define _reg_DAM_PTCR3
#define _reg_DAM_PTCR4
#define _reg_DAM_PTCR5
#define _reg_DAM_PTCR6
#define _reg_DAM_PTCR7
#define dam_ce_bus_port_clkpol_shift   16
#define dam_ce_bus_port_cnthigh_shift   8
#define dam_ce_bus_port_cntlow_shift   0
#define dam_ce_bus_port_enable_shift   18
#define dam_ce_bus_port_fspol_shift   17
#define dam_internal_network_mode_mask   0xFF
#define dam_internal_network_mode_shift   0
#define dam_mode_masq   0x03
#define dam_mode_shift   8
#define DAM_NAME   "dam"
#define dam_receive_clock_direction_shift   16
#define dam_receive_clock_select_shift   12
#define dam_receive_data_select_shift   13
#define dam_receive_frame_sync_direction_shift   21
#define dam_receive_frame_sync_select_shift   17
#define dam_selection_mask   0xF
#define dam_synchronous_mode_shift   11
#define dam_transmit_clock_direction_shift   26
#define dam_transmit_clock_select_shift   22
#define dam_transmit_frame_sync_direction_shift   31
#define dam_transmit_frame_sync_select_shift   27
#define dam_transmit_receive_switch_shift   12
#define DAM_VIRT_BASE_ADDR   IO_ADDRESS(AUDMUX_BASE_ADDR)
#define ModifyRegister32(a, b, c)   (c = ( ( (c)&(~(a)) ) | (b) ))

Functions

static void __exit dam_exit (void)
static int __init dam_init (void)
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")


Generated by  Doxygen 1.6.0   Back to index