Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
usb.c File Reference
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/usb/tilegx.h>
#include <linux/types.h>

Go to the source code of this file.

Macros

#define USB_HOST_DEF(unit, type, dmamask)
 

Functions

 arch_initcall (tilegx_usb_init)
 

Macro Definition Documentation

#define USB_HOST_DEF (   unit,
  type,
  dmamask 
)
Value:
static struct \
tilegx_usb_platform_data tilegx_usb_platform_data_ ## type ## \
hci ## unit = { \
.dev_index = unit, \
}; \
\
static struct platform_device tilegx_usb_ ## type ## hci ## unit = { \
.name = "tilegx-" #type "hci", \
.id = unit, \
.dev = { \
.dma_mask = dmamask, \
.coherent_dma_mask = DMA_BIT_MASK(32), \
.platform_data = \
&tilegx_usb_platform_data_ ## type ## hci ## \
unit, \
}, \
};

Definition at line 28 of file usb.c.

Function Documentation

arch_initcall ( tilegx_usb_init  )