Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
rm200.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/serial_8250.h>
#include <linux/io.h>
#include <asm/sni.h>
#include <asm/time.h>
#include <asm/irq_cpu.h>

Go to the source code of this file.

Macros

#define RM200_I8259A_IRQ_BASE   32
 
#define MEMPORT(_base, _irq)
 
#define PIC_CMD   0x00
 
#define PIC_IMR   0x01
 
#define PIC_ISR   PIC_CMD
 
#define PIC_POLL   PIC_ISR
 
#define PIC_OCW3   PIC_ISR
 
#define PIC_CASCADE_IR   2
 
#define MASTER_ICW4_DEFAULT   0x01
 
#define SLAVE_ICW4_DEFAULT   0x01
 
#define cached_master_mask   (rm200_cached_irq_mask)
 
#define cached_slave_mask   (rm200_cached_irq_mask >> 8)
 
#define SNI_RM200_INT_STAT_REG   CKSEG1ADDR(0xbc000000)
 
#define SNI_RM200_INT_ENA_REG   CKSEG1ADDR(0xbc080000)
 
#define SNI_RM200_INT_START   24
 
#define SNI_RM200_INT_END   28
 

Functions

 device_initcall (snirm_setup_devinit)
 
void sni_rm200_mask_and_ack_8259A (struct irq_data *d)
 
void sni_rm200_init_8259A (void)
 
void __init sni_rm200_i8259_irqs (void)
 
void disable_rm200_irq (struct irq_data *d)
 
void __init sni_rm200_irq_init (void)
 
void __init sni_rm200_init (void)
 

Variables

struct irqaction sni_rm200_i8259A_irq
 

Macro Definition Documentation

#define cached_master_mask   (rm200_cached_irq_mask)

Definition at line 155 of file rm200.c.

#define cached_slave_mask   (rm200_cached_irq_mask >> 8)

Definition at line 156 of file rm200.c.

#define MASTER_ICW4_DEFAULT   0x01

Definition at line 145 of file rm200.c.

#define MEMPORT (   _base,
  _irq 
)
Value:
{ \
.mapbase = _base, \
.irq = _irq, \
.uartclk = 1843200, \
.iotype = UPIO_MEM, \
}

Definition at line 27 of file rm200.c.

#define PIC_CASCADE_IR   2

Definition at line 144 of file rm200.c.

#define PIC_CMD   0x00

Definition at line 137 of file rm200.c.

#define PIC_IMR   0x01

Definition at line 138 of file rm200.c.

#define PIC_ISR   PIC_CMD

Definition at line 139 of file rm200.c.

#define PIC_OCW3   PIC_ISR

Definition at line 141 of file rm200.c.

#define PIC_POLL   PIC_ISR

Definition at line 140 of file rm200.c.

#define RM200_I8259A_IRQ_BASE   32

Definition at line 25 of file rm200.c.

#define SLAVE_ICW4_DEFAULT   0x01

Definition at line 146 of file rm200.c.

#define SNI_RM200_INT_ENA_REG   CKSEG1ADDR(0xbc080000)

Definition at line 425 of file rm200.c.

#define SNI_RM200_INT_END   28

Definition at line 428 of file rm200.c.

#define SNI_RM200_INT_START   24

Definition at line 427 of file rm200.c.

#define SNI_RM200_INT_STAT_REG   CKSEG1ADDR(0xbc000000)

Definition at line 424 of file rm200.c.

Function Documentation

device_initcall ( snirm_setup_devinit  )
void disable_rm200_irq ( struct irq_data d)

Definition at line 437 of file rm200.c.

void __init sni_rm200_i8259_irqs ( void  )

Definition at line 398 of file rm200.c.

void __init sni_rm200_init ( void  )

Definition at line 488 of file rm200.c.

void sni_rm200_init_8259A ( void  )

Definition at line 331 of file rm200.c.

void __init sni_rm200_irq_init ( void  )

Definition at line 471 of file rm200.c.

void sni_rm200_mask_and_ack_8259A ( struct irq_data d)

Definition at line 211 of file rm200.c.

Variable Documentation

struct irqaction sni_rm200_i8259A_irq
Initial value:
= {
.handler = sni_rm200_i8259A_irq_handler,
.name = "onboard ISA",
.flags = IRQF_SHARED
}

Definition at line 392 of file rm200.c.