Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
platform.c File Reference
#include <linux/dma-mapping.h>
#include <linux/etherdevice.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/serial_8250.h>
#include <linux/slab.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-au1x00/au1xxx_dbdma.h>
#include <asm/mach-au1x00/au1100_mmc.h>
#include <asm/mach-au1x00/au1xxx_eth.h>
#include <prom.h>

Go to the source code of this file.

Macros

#define PORT(_base, _irq)
 
#define MAC_RES_COUNT   4 /* MAC regs, MAC en, MAC INT, MACDMA regs */
 
#define MAC_RES(_base, _enable, _irq, _macdma)
 

Functions

void __init au1xxx_override_eth_cfg (unsigned int port, struct au1000_eth_platform_data *eth_data)
 
 arch_initcall (au1xxx_platform_init)
 

Macro Definition Documentation

#define MAC_RES (   _base,
  _enable,
  _irq,
  _macdma 
)
Value:
{ \
.start = _base, \
.end = _base + 0xffff, \
.flags = IORESOURCE_MEM, \
}, \
{ \
.start = _enable, \
.end = _enable + 0x3, \
.flags = IORESOURCE_MEM, \
}, \
{ \
.start = _irq, \
.end = _irq, \
.flags = IORESOURCE_IRQ \
}, \
{ \
.start = _macdma, \
.end = _macdma + 0x1ff, \
.flags = IORESOURCE_MEM, \
}

Definition at line 221 of file platform.c.

#define MAC_RES_COUNT   4 /* MAC regs, MAC en, MAC INT, MACDMA regs */

Definition at line 220 of file platform.c.

#define PORT (   _base,
  _irq 
)
Value:
{ \
.mapbase = _base, \
.irq = _irq, \
.regshift = 2, \
.iotype = UPIO_AU, \
.flags = UPF_SKIP_TEST | UPF_IOREMAP | \
UPF_FIXED_TYPE, \
.type = PORT_16550A, \
.pm = alchemy_8250_pm, \
}

Definition at line 48 of file platform.c.

Function Documentation

arch_initcall ( au1xxx_platform_init  )
void __init au1xxx_override_eth_cfg ( unsigned int  port,
struct au1000_eth_platform_data eth_data 
)

Definition at line 313 of file platform.c.