Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
internals.h File Reference
#include <linux/irqdesc.h>
#include "debug.h"
#include "settings.h"

Go to the source code of this file.

Macros

#define IRQ_BITMAP_BITS   NR_IRQS
 
#define istate   core_internal_state__do_not_mess_with_it
 
#define irq_data_to_desc(data)   container_of(data, struct irq_desc, irq_data)
 
#define _IRQ_DESC_CHECK   (1 << 0)
 
#define _IRQ_DESC_PERCPU   (1 << 1)
 
#define IRQ_GET_DESC_CHECK_GLOBAL   (_IRQ_DESC_CHECK)
 
#define IRQ_GET_DESC_CHECK_PERCPU   (_IRQ_DESC_CHECK | _IRQ_DESC_PERCPU)
 

Enumerations

enum  { IRQTF_RUNTHREAD, IRQTF_WARNED, IRQTF_AFFINITY, IRQTF_FORCED_THREAD }
 
enum  {
  IRQS_AUTODETECT = 0x00000001, IRQS_SPURIOUS_DISABLED = 0x00000002, IRQS_POLL_INPROGRESS = 0x00000008, IRQS_ONESHOT = 0x00000020,
  IRQS_REPLAY = 0x00000040, IRQS_WAITING = 0x00000080, IRQS_PENDING = 0x00000200, IRQS_SUSPENDED = 0x00000800
}
 

Functions

int __irq_set_trigger (struct irq_desc *desc, unsigned int irq, unsigned long flags)
 
void __disable_irq (struct irq_desc *desc, unsigned int irq, bool susp)
 
void __enable_irq (struct irq_desc *desc, unsigned int irq, bool resume)
 
int irq_startup (struct irq_desc *desc, bool resend)
 
void irq_shutdown (struct irq_desc *desc)
 
void irq_enable (struct irq_desc *desc)
 
void irq_disable (struct irq_desc *desc)
 
void irq_percpu_enable (struct irq_desc *desc, unsigned int cpu)
 
void irq_percpu_disable (struct irq_desc *desc, unsigned int cpu)
 
void mask_irq (struct irq_desc *desc)
 
void unmask_irq (struct irq_desc *desc)
 
void init_kstat_irqs (struct irq_desc *desc, int node, int nr)
 
irqreturn_t handle_irq_event_percpu (struct irq_desc *desc, struct irqaction *action)
 
irqreturn_t handle_irq_event (struct irq_desc *desc)
 
void check_irq_resend (struct irq_desc *desc, unsigned int irq)
 
bool irq_wait_for_poll (struct irq_desc *desc)
 
int irq_select_affinity_usr (unsigned int irq, struct cpumask *mask)
 
void irq_set_thread_affinity (struct irq_desc *desc)
 
int irq_do_set_affinity (struct irq_data *data, const struct cpumask *dest, bool force)
 
struct irq_desc__irq_get_desc_lock (unsigned int irq, unsigned long *flags, bool bus, unsigned int check)
 
void __irq_put_desc_unlock (struct irq_desc *desc, unsigned long flags, bool bus)
 

Variables

bool noirqdebug
 

Macro Definition Documentation

#define _IRQ_DESC_CHECK   (1 << 0)

Definition at line 120 of file internals.h.

#define _IRQ_DESC_PERCPU   (1 << 1)

Definition at line 121 of file internals.h.

#define IRQ_BITMAP_BITS   NR_IRQS

Definition at line 13 of file internals.h.

#define irq_data_to_desc (   data)    container_of(data, struct irq_desc, irq_data)

Definition at line 61 of file internals.h.

#define IRQ_GET_DESC_CHECK_GLOBAL   (_IRQ_DESC_CHECK)

Definition at line 123 of file internals.h.

#define IRQ_GET_DESC_CHECK_PERCPU   (_IRQ_DESC_CHECK | _IRQ_DESC_PERCPU)

Definition at line 124 of file internals.h.

#define istate   core_internal_state__do_not_mess_with_it

Definition at line 16 of file internals.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
IRQTF_RUNTHREAD 
IRQTF_WARNED 
IRQTF_AFFINITY 
IRQTF_FORCED_THREAD 

Definition at line 27 of file internals.h.

anonymous enum
Enumerator:
IRQS_AUTODETECT 
IRQS_SPURIOUS_DISABLED 
IRQS_POLL_INPROGRESS 
IRQS_ONESHOT 
IRQS_REPLAY 
IRQS_WAITING 
IRQS_PENDING 
IRQS_SUSPENDED 

Definition at line 47 of file internals.h.

Function Documentation

void __disable_irq ( struct irq_desc desc,
unsigned int  irq,
bool  susp 
)

Definition at line 359 of file manage.c.

void __enable_irq ( struct irq_desc desc,
unsigned int  irq,
bool  resume 
)

Definition at line 419 of file manage.c.

struct irq_desc* __irq_get_desc_lock ( unsigned int  irq,
unsigned long flags,
bool  bus,
unsigned int  check 
)
read

Definition at line 428 of file irqdesc.c.

void __irq_put_desc_unlock ( struct irq_desc desc,
unsigned long  flags,
bool  bus 
)

Definition at line 451 of file irqdesc.c.

int __irq_set_trigger ( struct irq_desc desc,
unsigned int  irq,
unsigned long  flags 
)

Definition at line 565 of file manage.c.

void check_irq_resend ( struct irq_desc desc,
unsigned int  irq 
)

Definition at line 56 of file resend.c.

irqreturn_t handle_irq_event ( struct irq_desc desc)

Definition at line 182 of file handle.c.

irqreturn_t handle_irq_event_percpu ( struct irq_desc desc,
struct irqaction action 
)

Definition at line 133 of file handle.c.

void init_kstat_irqs ( struct irq_desc desc,
int  node,
int  nr 
)
void irq_disable ( struct irq_desc desc)

Definition at line 202 of file chip.c.

int irq_do_set_affinity ( struct irq_data data,
const struct cpumask dest,
bool  force 
)
void irq_enable ( struct irq_desc desc)

Definition at line 192 of file chip.c.

void irq_percpu_disable ( struct irq_desc desc,
unsigned int  cpu 
)

Definition at line 220 of file chip.c.

void irq_percpu_enable ( struct irq_desc desc,
unsigned int  cpu 
)

Definition at line 211 of file chip.c.

int irq_select_affinity_usr ( unsigned int  irq,
struct cpumask mask 
)
void irq_set_thread_affinity ( struct irq_desc desc)
void irq_shutdown ( struct irq_desc desc)

Definition at line 179 of file chip.c.

int irq_startup ( struct irq_desc desc,
bool  resend 
)

Definition at line 161 of file chip.c.

bool irq_wait_for_poll ( struct irq_desc desc)

Definition at line 38 of file spurious.c.

void mask_irq ( struct irq_desc desc)

Definition at line 241 of file chip.c.

void unmask_irq ( struct irq_desc desc)

Definition at line 249 of file chip.c.

Variable Documentation

bool noirqdebug