Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
wii.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/seq_file.h>
#include <linux/of_platform.h>
#include <linux/memblock.h>
#include <mm/mmu_decl.h>
#include <asm/io.h>
#include <asm/machdep.h>
#include <asm/prom.h>
#include <asm/time.h>
#include <asm/udbg.h>
#include "flipper-pic.h"
#include "hlwd-pic.h"
#include "usbgecko_udbg.h"

Go to the source code of this file.

Macros

#define DRV_MODULE_NAME   "wii"
 
#define pr_fmt(fmt)   DRV_MODULE_NAME ": " fmt
 
#define HW_CTRL_COMPATIBLE   "nintendo,hollywood-control"
 
#define HW_CTRL_RESETS   0x94
 
#define HW_CTRL_RESETS_SYS   (1<<0)
 
#define HW_GPIO_COMPATIBLE   "nintendo,hollywood-gpio"
 
#define HW_GPIO_BASE(idx)   (idx * 0x20)
 
#define HW_GPIO_OUT(idx)   (HW_GPIO_BASE(idx) + 0)
 
#define HW_GPIO_DIR(idx)   (HW_GPIO_BASE(idx) + 4)
 
#define HW_GPIO_SHUTDOWN   (1<<1)
 
#define HW_GPIO_SLOT_LED   (1<<5)
 
#define HW_GPIO_SENSOR_BAR   (1<<8)
 

Functions

void __init wii_memory_fixups (void)
 
unsigned long __init wii_mmu_mapin_mem2 (unsigned long top)
 
 define_machine (wii)
 
 device_initcall (wii_device_probe)
 

Variables

unsigned long wii_hole_start
 
unsigned long wii_hole_size
 

Macro Definition Documentation

#define DRV_MODULE_NAME   "wii"

Definition at line 14 of file wii.c.

#define HW_CTRL_COMPATIBLE   "nintendo,hollywood-control"

Definition at line 36 of file wii.c.

#define HW_CTRL_RESETS   0x94

Definition at line 38 of file wii.c.

#define HW_CTRL_RESETS_SYS   (1<<0)

Definition at line 39 of file wii.c.

#define HW_GPIO_BASE (   idx)    (idx * 0x20)

Definition at line 44 of file wii.c.

#define HW_GPIO_COMPATIBLE   "nintendo,hollywood-gpio"

Definition at line 42 of file wii.c.

#define HW_GPIO_DIR (   idx)    (HW_GPIO_BASE(idx) + 4)

Definition at line 46 of file wii.c.

#define HW_GPIO_OUT (   idx)    (HW_GPIO_BASE(idx) + 0)

Definition at line 45 of file wii.c.

#define HW_GPIO_SENSOR_BAR   (1<<8)

Definition at line 50 of file wii.c.

#define HW_GPIO_SHUTDOWN   (1<<1)

Definition at line 48 of file wii.c.

#define HW_GPIO_SLOT_LED   (1<<5)

Definition at line 49 of file wii.c.

#define pr_fmt (   fmt)    DRV_MODULE_NAME ": " fmt

Definition at line 15 of file wii.c.

Function Documentation

define_machine ( wii  )

Definition at line 223 of file wii.c.

device_initcall ( wii_device_probe  )
void __init wii_memory_fixups ( void  )

Definition at line 65 of file wii.c.

unsigned long __init wii_mmu_mapin_mem2 ( unsigned long  top)

Definition at line 99 of file wii.c.

Variable Documentation

unsigned long wii_hole_size

Definition at line 57 of file wii.c.

unsigned long wii_hole_start

Definition at line 56 of file wii.c.