Ignore:
Timestamp:
Apr 9, 2010, 8:24:57 PM (10 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
3ed964f9
Parents:
a0bdb9b
Message:

unify irq data types and code, merge s3c2400/s3c2410 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/at91rm9200/irq/irq.h

    ra0bdb9b rc193baad  
    2626 */
    2727
     28#include <rtems/irq.h>
    2829#include <rtems.h>
    2930#include <at91rm9200.h>
    3031
    31 extern void default_int_handler();
     32extern void default_int_handler(rtems_irq_hdl_param unused);
    3233/***********************************************************************
    3334 * Constants
     
    7374#define VECTOR_TABLE AIC_SVR_BASE
    7475
    75 typedef unsigned char  rtems_irq_level;
    76 typedef unsigned char  rtems_irq_trigger;
    77 
    78 struct  __rtems_irq_connect_data__;     /* forward declaratiuon */
    79 typedef unsigned int rtems_irq_number;
    80 typedef void (*rtems_irq_hdl)       (uint32_t vector);
    81 typedef void (*rtems_irq_enable)    (const struct __rtems_irq_connect_data__*);
    82 typedef void (*rtems_irq_disable)   (const struct __rtems_irq_connect_data__*);
    83 typedef int  (*rtems_irq_is_enabled)(const struct __rtems_irq_connect_data__*);
    84 
    85 typedef struct __rtems_irq_connect_data__ {
    86     /* IRQ line */
    87     rtems_irq_number             name;
    88 
    89     /* Handler */
    90     rtems_irq_hdl                 hdl;
    91 
    92     /* function for enabling interrupts at device level. */
    93     rtems_irq_enable              on;
    94 
    95     /* function for disabling interrupts at device level. */
    96     rtems_irq_disable             off;
    97 
    98     /* Function to test if interrupt is enabled */
    99     rtems_irq_is_enabled        isOn;
    100 
    101     /* priority level of interrupt */
    102     rtems_irq_level               irqLevel;
    103 
    104     /* Trigger method (rising/falling edge or high/low level) */
    105     rtems_irq_trigger             irqTrigger;
    106 } rtems_irq_connect_data;
    107 
    10876/*
    10977 * function to initialize the interrupt for a specific BSP
    11078 */
    11179void BSP_rtems_irq_mngt_init();
    112 
    113 
    114 /*
    115  * function to connect a particular irq handler.
    116  */
    117 int BSP_install_rtems_irq_handler       (const rtems_irq_connect_data*);
    118 
    119 /*
    120  * function to get the current RTEMS irq handler for ptr->name.
    121  */
    122 int BSP_get_current_rtems_irq_handler   (rtems_irq_connect_data* ptr);
    123 
    124 /*
    125  * function to disconnect the RTEMS irq handler for ptr->name.
    126  */
    127 int BSP_remove_rtems_irq_handler        (const rtems_irq_connect_data*);
    12880
    12981#endif /* __asm__ */
Note: See TracChangeset for help on using the changeset viewer.