linux/drivers/mxc/asrc/mxc_asrc.c File Reference

MXC Asynchronous Sample Rate Converter. More...

Functions

static irqreturn_t asrc_isr (int irq, void *dev_id)
static long asrc_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
static int mxc_asrc_open (struct inode *inode, struct file *file)
static int mxc_asrc_close (struct inode *inode, struct file *file)
static int mxc_asrc_mmap (struct file *file, struct vm_area_struct *vma)
static int mxc_asrc_probe (struct platform_device *pdev)
static int mxc_asrc_remove (struct platform_device *pdev)
static __init int asrc_init (void)
static void __exit asrc_exit (void)

Variables

static struct platform_driver mxc_asrc_driver

Detailed Description

MXC Asynchronous Sample Rate Converter.


Function Documentation

static void __exit asrc_exit ( void   )  [static]

Exit and free the asrc data

static __init int asrc_init ( void   )  [static]

Register asrc driver

static long asrc_ioctl ( struct file *  file,
unsigned int  cmd,
unsigned long  arg 
) [static]

asrc interface - function

Parameters:
inode struct inode *
file struct file *
cmd unsigned int
arg unsigned long
Returns:
0 success, ENODEV for invalid device instance, -1 for other errors.
static irqreturn_t asrc_isr ( int  irq,
void *  dev_id 
) [static]

asrc interrupt handler

References IRQ_HANDLED.

Referenced by mxc_asrc_probe().

static int mxc_asrc_close ( struct inode *  inode,
struct file *  file 
) [static]

asrc interface - close function

Parameters:
inode struct inode *
file structure file *
Returns:
status 0 Success, EINTR busy lock error, ENOBUFS remap_page error
static int mxc_asrc_mmap ( struct file *  file,
struct vm_area_struct *  vma 
) [static]

asrc interface - mmap function

Parameters:
file structure file *
vma structure vm_area_struct *
Returns:
status 0 Success, EINTR busy lock error, ENOBUFS remap_page error
static int mxc_asrc_open ( struct inode *  inode,
struct file *  file 
) [static]

asrc interface - open function

Parameters:
inode structure inode *
file structure file *
Returns:
status 0 success, ENODEV invalid device instance, ENOBUFS failed to allocate buffer, ERESTARTSYS interrupted by user
static int mxc_asrc_probe ( struct platform_device *  pdev  )  [static]

Entry point for the asrc device

Parameters:
pdev Pionter to the registered platform device
Returns:
Error code indicating success or failure

References asrc_isr().

static int mxc_asrc_remove ( struct platform_device *  pdev  )  [static]

Exit asrc device

Parameters:
pdev Pionter to the registered platform device
Returns:
Error code indicating success or failure

Variable Documentation

struct platform_driver mxc_asrc_driver [static]
Initial value:
 {
        .driver = {
                   .name = "mxc_asrc",
                   },
        .probe = mxc_asrc_probe,
        .remove = mxc_asrc_remove,
}

mxc asrc driver definition

footer
©  Freescale Semiconductor, Inc., 2007.  All rights reserved.
Freescale Confidential Proprietary
NDA Required
doxygen