Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
asic.h File Reference
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <asm/mach-powertv/asic_regs.h>

Go to the source code of this file.

Macros

#define DVR_CAPABLE   (1<<0)
 
#define PCIE_CAPABLE   (1<<1)
 
#define FFS_CAPABLE   (1<<2)
 
#define DISPLAY_CAPABLE   (1<<3)
 
#define ASIC_RESOURCE_GET_EXISTS   1
 

Enumerations

enum  family_type {
  FAMILY_8500, FAMILY_8500RNG, FAMILY_4500, FAMILY_1500,
  FAMILY_8600, FAMILY_4600, FAMILY_4600VZA, FAMILY_8600VZB,
  FAMILY_1500VZE, FAMILY_1500VZF, FAMILY_8700, FAMILIES
}
 
enum  sys_reboot_type {
  sys_unknown_reboot = 0x00, sys_davic_change = 0x01, sys_user_reboot = 0x02, sys_system_reboot = 0x03,
  sys_trap_reboot = 0x04, sys_silent_reboot = 0x05, sys_boot_ldr_reboot = 0x06, sys_power_up_reboot = 0x07,
  sys_code_change = 0x08, sys_hardware_reset = 0x09, sys_watchdogInterrupt = 0x0A
}
 

Functions

void powertv_platform_init (void)
 
void platform_alloc_bootmem (void)
 
enum asic_type platform_get_asic (void)
 
enum family_type platform_get_family (void)
 
int platform_supports_dvr (void)
 
int platform_supports_ffs (void)
 
int platform_supports_pcie (void)
 
int platform_supports_display (void)
 
void configure_platform (void)
 
struct resourceasic_resource_get (const char *name)
 
void platform_release_memory (void *baddr, int size)
 
void platform_configure_usb_ehci (void)
 
void platform_unconfigure_usb_ehci (void)
 
void platform_configure_usb_ohci (void)
 
void platform_unconfigure_usb_ohci (void)
 
int platform_usb_devices_init (struct platform_device **echi_dev, struct platform_device **ohci_dev)
 
void set_reboot_cause (char code, unsigned int data, unsigned int data2)
 
void set_locked_reboot_cause (char code, unsigned int data, unsigned int data2)
 

Variables

struct register_map calliope_register_map
 
struct register_map cronus_register_map
 
struct register_map gaia_register_map
 
struct register_map zeus_register_map
 
struct resource dvr_cronus_resources []
 
struct resource dvr_gaia_resources []
 
struct resource dvr_zeus_resources []
 
struct resource non_dvr_calliope_resources []
 
struct resource non_dvr_cronus_resources []
 
struct resource non_dvr_cronuslite_resources []
 
struct resource non_dvr_gaia_resources []
 
struct resource non_dvr_vz_calliope_resources []
 
struct resource non_dvr_vze_calliope_resources []
 
struct resource non_dvr_vzf_calliope_resources []
 
struct resource non_dvr_zeus_resources []
 
struct resource asic_resource
 

Macro Definition Documentation

#define ASIC_RESOURCE_GET_EXISTS   1

Definition at line 77 of file asic.h.

#define DISPLAY_CAPABLE   (1<<3)

Definition at line 29 of file asic.h.

#define DVR_CAPABLE   (1<<0)

Definition at line 26 of file asic.h.

#define FFS_CAPABLE   (1<<2)

Definition at line 28 of file asic.h.

#define PCIE_CAPABLE   (1<<1)

Definition at line 27 of file asic.h.

Enumeration Type Documentation

Enumerator:
FAMILY_8500 
FAMILY_8500RNG 
FAMILY_4500 
FAMILY_1500 
FAMILY_8600 
FAMILY_4600 
FAMILY_4600VZA 
FAMILY_8600VZB 
FAMILY_1500VZE 
FAMILY_1500VZF 
FAMILY_8700 
FAMILIES 

Definition at line 33 of file asic.h.

Enumerator:
sys_unknown_reboot 
sys_davic_change 
sys_user_reboot 
sys_system_reboot 
sys_trap_reboot 
sys_silent_reboot 
sys_boot_ldr_reboot 
sys_power_up_reboot 
sys_code_change 
sys_hardware_reset 
sys_watchdogInterrupt 

Definition at line 98 of file asic.h.

Function Documentation

struct resource* asic_resource_get ( const char name)
read

Definition at line 509 of file asic_devices.c.

void configure_platform ( void  )

configure_platform - configuration based on platform type.

Definition at line 241 of file asic_devices.c.

void platform_alloc_bootmem ( void  )

Definition at line 385 of file asic_devices.c.

void platform_configure_usb_ehci ( void  )

Definition at line 356 of file powertv-usb.c.

void platform_configure_usb_ohci ( void  )

Definition at line 365 of file powertv-usb.c.

enum asic_type platform_get_asic ( void  )

Definition at line 218 of file asic_devices.c.

enum family_type 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.

void platform_unconfigure_usb_ehci ( void  )

Definition at line 374 of file powertv-usb.c.

void platform_unconfigure_usb_ohci ( void  )

Definition at line 383 of file powertv-usb.c.

int platform_usb_devices_init ( struct platform_device **  ehci_dev,
struct platform_device **  ohci_dev 
)

platform_devices_init - sets up USB device resourse.

Definition at line 392 of file powertv-usb.c.

void powertv_platform_init ( void  )
void set_locked_reboot_cause ( char  code,
unsigned int  data,
unsigned int  data2 
)
void set_reboot_cause ( char  code,
unsigned int  data,
unsigned int  data2 
)

Variable Documentation

struct resource asic_resource

Definition at line 84 of file asic_devices.c.

struct register_map calliope_register_map
struct register_map cronus_register_map
struct resource dvr_cronus_resources[]
struct resource dvr_gaia_resources[]
struct resource dvr_zeus_resources[]
struct register_map gaia_register_map
struct resource non_dvr_calliope_resources[]
struct resource non_dvr_cronus_resources

Definition at line 195 of file prealloc-cronus.c.

struct resource non_dvr_cronuslite_resources[]
struct resource non_dvr_gaia_resources

Definition at line 319 of file prealloc-gaia.c.

struct resource non_dvr_vz_calliope_resources[]
struct resource non_dvr_vze_calliope_resources

Definition at line 161 of file prealloc-calliope.c.

struct resource non_dvr_vzf_calliope_resources

Definition at line 267 of file prealloc-calliope.c.

struct resource non_dvr_zeus_resources

Definition at line 185 of file prealloc-zeus.c.

struct register_map zeus_register_map