Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
core.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/dmapool.h>
#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/idr.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/otg.h>
#include <linux/usb/chipidea.h>
#include "ci.h"
#include "udc.h"
#include "bits.h"
#include "host.h"
#include "debug.h"

Go to the source code of this file.

Functions

int hw_port_test_set (struct ci13xxx *ci, u8 mode)
 
u8 hw_port_test_get (struct ci13xxx *ci)
 
int hw_device_reset (struct ci13xxx *ci, u32 mode)
 
struct platform_deviceci13xxx_add_device (struct device *dev, struct resource *res, int nres, struct ci13xxx_platform_data *platdata)
 
 EXPORT_SYMBOL_GPL (ci13xxx_add_device)
 
void ci13xxx_remove_device (struct platform_device *pdev)
 
 EXPORT_SYMBOL_GPL (ci13xxx_remove_device)
 
 module_platform_driver (ci_hdrc_driver)
 
 MODULE_ALIAS ("platform:ci_hdrc")
 
 MODULE_ALIAS ("platform:ci13xxx")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("David Lopo <[email protected]>")
 
 MODULE_DESCRIPTION ("ChipIdea HDRC Driver")
 

Function Documentation

struct platform_device* ci13xxx_add_device ( struct device dev,
struct resource res,
int  nres,
struct ci13xxx_platform_data platdata 
)
read

Definition at line 342 of file core.c.

void ci13xxx_remove_device ( struct platform_device pdev)

Definition at line 386 of file core.c.

EXPORT_SYMBOL_GPL ( ci13xxx_add_device  )
EXPORT_SYMBOL_GPL ( ci13xxx_remove_device  )
int hw_device_reset ( struct ci13xxx ci,
u32  mode 
)

hw_device_reset: resets chip (execute without interruption) : the controller

This function returns an error code

Definition at line 220 of file core.c.

u8 hw_port_test_get ( struct ci13xxx ci)

hw_port_test_get: reads port test mode value

This function returns port test mode value

Definition at line 170 of file core.c.

int hw_port_test_set ( struct ci13xxx ci,
u8  mode 
)

hw_port_test_set: writes port test mode (execute without interruption) : new value

This function returns an error code

Definition at line 154 of file core.c.

MODULE_ALIAS ( "platform:ci_hdrc"  )
MODULE_ALIAS ( "platform:ci13xxx"  )
MODULE_AUTHOR ( "David Lopo <[email protected]>"  )
MODULE_DESCRIPTION ( "ChipIdea HDRC Driver"  )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( ci_hdrc_driver  )