Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
asic_devices.c File Reference
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/resource.h>
#include <linux/serial_reg.h>
#include <linux/io.h>
#include <linux/bootmem.h>
#include <linux/mm.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <asm/page.h>
#include <linux/swap.h>
#include <linux/highmem.h>
#include <linux/dma-mapping.h>
#include <asm/mach-powertv/asic.h>
#include <asm/mach-powertv/asic_regs.h>
#include <asm/mach-powertv/interrupts.h>
#include <asm/bootinfo.h>

Go to the source code of this file.

Macros

#define BOOTLDRFAMILY(byte1, byte0)   (((byte1) << 8) | (byte0))
 
#define FORCEFAMILY_PARAM   "forcefamily"
 

Functions

 EXPORT_SYMBOL (_asic_register_map)
 
 EXPORT_SYMBOL (asic_base)
 
 EXPORT_SYMBOL (phys_to_dma_offset)
 
unsigned int platform_get_family (void)
 
 EXPORT_SYMBOL (platform_get_family)
 
enum asic_type platform_get_asic (void)
 
 EXPORT_SYMBOL (platform_get_asic)
 
void __init configure_platform (void)
 
void __init platform_alloc_bootmem (void)
 
 early_param ("pmemaddr", early_param_pmemaddr)
 
 early_param ("pmemlen", early_param_pmemlen)
 
: string to match resource

asic_resource_get - retrieves parameters for a platform resource.

Returns a pointer to a struct resource corresponding to the given name.

CANNOT BE NAMED platform_resource_get, which would be the obvious choice, as this function name is already declared

struct resourceasic_resource_get (const char *name)
 
 EXPORT_SYMBOL (asic_resource_get)
 
void platform_release_memory (void *ptr, int size)
 
 EXPORT_SYMBOL (platform_release_memory)
 
int platform_supports_dvr (void)
 
int platform_supports_ffs (void)
 
int platform_supports_pcie (void)
 
int platform_supports_display (void)
 

Variables

enum asic_type asic
 
unsigned int platform_features
 
unsigned int platform_family
 
struct register_map _asic_register_map
 
unsigned long asic_phy_base
 
unsigned long asic_base
 
struct resourcegp_resources
 
unsigned long phys_to_dma_offset
 
struct resource asic_resource
 

Macro Definition Documentation

#define BOOTLDRFAMILY (   byte1,
  byte0 
)    (((byte1) << 8) | (byte0))

Definition at line 50 of file asic_devices.c.

#define FORCEFAMILY_PARAM   "forcefamily"

Definition at line 98 of file asic_devices.c.

Function Documentation

struct resource* asic_resource_get ( const char name)
read

Definition at line 509 of file asic_devices.c.

void __init configure_platform ( void  )

configure_platform - configuration based on platform type.

Definition at line 241 of file asic_devices.c.

early_param ( "pmemaddr"  ,
early_param_pmemaddr   
)
early_param ( "pmemlen"  ,
early_param_pmemlen   
)
EXPORT_SYMBOL ( _asic_register_map  )
EXPORT_SYMBOL ( asic_base  )
EXPORT_SYMBOL ( phys_to_dma_offset  )
EXPORT_SYMBOL ( platform_get_family  )
EXPORT_SYMBOL ( platform_get_asic  )
EXPORT_SYMBOL ( asic_resource_get  )
EXPORT_SYMBOL ( platform_release_memory  )
void __init platform_alloc_bootmem ( void  )

Definition at line 385 of file asic_devices.c.

enum asic_type platform_get_asic ( void  )

Definition at line 218 of file asic_devices.c.

unsigned int platform_get_family ( void  )

Definition at line 206 of file asic_devices.c.

void platform_release_memory ( void ptr,
int  size 
)

platform_release_memory - release pre-allocated memory : pointer to memory to release : size of resource

This must only be called for memory allocated or reserved via the boot memory allocator.

Definition at line 530 of file asic_devices.c.

int platform_supports_display ( void  )

Definition at line 566 of file asic_devices.c.

int platform_supports_dvr ( void  )

Definition at line 551 of file asic_devices.c.

int platform_supports_ffs ( void  )

Definition at line 556 of file asic_devices.c.

int platform_supports_pcie ( void  )

Definition at line 561 of file asic_devices.c.

Variable Documentation

struct register_map _asic_register_map

Definition at line 64 of file asic_devices.c.

enum asic_type asic

Definition at line 60 of file asic_devices.c.

unsigned long asic_base

Definition at line 67 of file asic_devices.c.

unsigned long asic_phy_base

Definition at line 66 of file asic_devices.c.

struct resource asic_resource
Initial value:
= {
.name = "ASIC Resource",
.start = 0,
.end = ASIC_IO_SIZE,
.flags = IORESOURCE_MEM,
}

Definition at line 84 of file asic_devices.c.

struct resource* gp_resources

Definition at line 69 of file asic_devices.c.

unsigned long phys_to_dma_offset

Definition at line 75 of file asic_devices.c.

unsigned int platform_family

Definition at line 63 of file asic_devices.c.

unsigned int platform_features

Definition at line 62 of file asic_devices.c.