Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
platform.c File Reference
#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/err.h>
#include <linux/phy.h>
#include <linux/serial_8250.h>
#include <linux/stmmac.h>
#include <asm-generic/sizes.h>
#include <loongson1.h>

Go to the source code of this file.

Macros

#define LS1X_UART(_id)
 

Functions

void __init ls1x_serial_setup (void)
 

Variables

struct platform_device ls1x_uart_device
 
struct platform_device ls1x_eth0_device
 
struct platform_device ls1x_ehci_device
 
struct platform_device ls1x_rtc_device
 

Macro Definition Documentation

#define LS1X_UART (   _id)
Value:
{ \
.mapbase = LS1X_UART ## _id ## _BASE, \
.irq = LS1X_UART ## _id ## _IRQ, \
.iotype = UPIO_MEM, \
.type = PORT_16550A, \
}

Definition at line 20 of file platform.c.

Function Documentation

void __init ls1x_serial_setup ( void  )

Definition at line 45 of file platform.c.

Variable Documentation

struct platform_device ls1x_ehci_device
Initial value:
= {
.name = "ls1x-ehci",
.id = -1,
.num_resources = ARRAY_SIZE(ls1x_ehci_resources),
.resource = ls1x_ehci_resources,
.dev = {
.dma_mask = &ls1x_ehci_dmamask,
},
}

Definition at line 110 of file platform.c.

struct platform_device ls1x_eth0_device
Initial value:
= {
.name = "stmmaceth",
.id = 0,
.num_resources = ARRAY_SIZE(ls1x_eth0_resources),
.resource = ls1x_eth0_resources,
.dev = {
.platform_data = &ls1x_eth_data,
},
}

Definition at line 85 of file platform.c.

struct platform_device ls1x_rtc_device
Initial value:
= {
.name = "ls1x-rtc",
.id = -1,
}

Definition at line 121 of file platform.c.

struct platform_device ls1x_uart_device
Initial value:
= {
.name = "serial8250",
.dev = {
.platform_data = ls1x_serial8250_port,
},
}

Definition at line 37 of file platform.c.