Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
flipper-pic.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/of.h>
#include <asm/io.h>
#include "flipper-pic.h"

Go to the source code of this file.

Macros

#define DRV_MODULE_NAME   "flipper-pic"
 
#define pr_fmt(fmt)   DRV_MODULE_NAME ": " fmt
 
#define FLIPPER_NR_IRQS   32
 
#define FLIPPER_ICR   0x00
 
#define FLIPPER_ICR_RSS   (1<<16) /* reset switch state */
 
#define FLIPPER_IMR   0x04
 
#define FLIPPER_RESET   0x24
 

Functions

struct irq_domain *__init flipper_pic_init (struct device_node *np)
 
unsigned int flipper_pic_get_irq (void)
 
void __init flipper_pic_probe (void)
 
void flipper_quiesce (void)
 
void flipper_platform_reset (void)
 
int flipper_is_reset_button_pressed (void)
 

Macro Definition Documentation

#define DRV_MODULE_NAME   "flipper-pic"

Definition at line 14 of file flipper-pic.c.

#define FLIPPER_ICR   0x00

Definition at line 36 of file flipper-pic.c.

#define FLIPPER_ICR_RSS   (1<<16) /* reset switch state */

Definition at line 37 of file flipper-pic.c.

#define FLIPPER_IMR   0x04

Definition at line 39 of file flipper-pic.c.

#define FLIPPER_NR_IRQS   32

Definition at line 25 of file flipper-pic.c.

#define FLIPPER_RESET   0x24

Definition at line 41 of file flipper-pic.c.

#define pr_fmt (   fmt)    DRV_MODULE_NAME ": " fmt

Definition at line 15 of file flipper-pic.c.

Function Documentation

int flipper_is_reset_button_pressed ( void  )

Definition at line 242 of file flipper-pic.c.

unsigned int flipper_pic_get_irq ( void  )

Definition at line 173 of file flipper-pic.c.

struct irq_domain* __init flipper_pic_init ( struct device_node np)
read

Definition at line 133 of file flipper-pic.c.

void __init flipper_pic_probe ( void  )

Definition at line 193 of file flipper-pic.c.

void flipper_platform_reset ( void  )

Definition at line 229 of file flipper-pic.c.

void flipper_quiesce ( void  )

flipper_quiesce() - quiesce flipper irq controller

Mask and ack all interrupt sources.

Definition at line 219 of file flipper-pic.c.