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/lpc22xx/irq/irq.h

    ra0bdb9b rc193baad  
    2626 * Include some preprocessor value also used by assember code
    2727 */
    28 
     28#include <rtems/irq.h>
    2929#include <rtems.h>
    3030#include <lpc22xx.h>
    3131
    32 extern void default_int_handler();
     32extern void default_int_handler(rtems_irq_hdl_param unused);
     33
    3334/***********************************************************************
    3435 * Constants
     
    7980
    8081
    81 typedef unsigned char  rtems_irq_level;
    82 typedef unsigned char  rtems_irq_trigger;
    83 
    84 typedef unsigned int rtems_irq_number;
    85 struct  __rtems_irq_connect_data__;     /* forward declaratiuon */
    86 
    87 typedef void (*rtems_irq_hdl)       (void);
    88 typedef void (*rtems_irq_enable)    (const struct __rtems_irq_connect_data__*);
    89 typedef void (*rtems_irq_disable)   (const struct __rtems_irq_connect_data__*);
    90 typedef int  (*rtems_irq_is_enabled)(const struct __rtems_irq_connect_data__*);
    91 
    9282//extern rtems_irq_hdl bsp_vector_table[BSP_MAX_INT];
    9383#define VECTOR_TABLE VICVectAddrBase
    9484
    95 typedef struct __rtems_irq_connect_data__ {
    96     /* IRQ line */
    97     rtems_irq_number              name;
    98 
    99     /* Handler */
    100     rtems_irq_hdl                 hdl;
    101 
    102     /* function for enabling interrupts at device level. */
    103     rtems_irq_enable              on;
    104 
    105     /* function for disabling interrupts at device level. */
    106     rtems_irq_disable             off;
    107 
    108     /* Function to test if interrupt is enabled */
    109     rtems_irq_is_enabled        isOn;
    110 
    111     /* priority level of interrupt */
    112     rtems_irq_level               irqLevel;
    113 
    114     /* Trigger method (rising/falling edge or high/low level) */
    115     rtems_irq_trigger             irqTrigger;
    116 } rtems_irq_connect_data;
    11785
    11886/*
    11987 * function to initialize the interrupt for a specific BSP
    12088 */
    121 void BSP_rtems_irq_mngt_init();
    122 
    123 
    124 /*
    125  * function to connect a particular irq handler.
    126  */
    127 int BSP_install_rtems_irq_handler       (const rtems_irq_connect_data*);
    128 
    129 /*
    130  * function to get the current RTEMS irq handler for ptr->name.
    131  */
    132 int BSP_get_current_rtems_irq_handler   (rtems_irq_connect_data* ptr);
    133 
    134 /*
    135  * function to disconnect the RTEMS irq handler for ptr->name.
    136  */
    137 int BSP_remove_rtems_irq_handler        (const rtems_irq_connect_data*);
     89void BSP_rtems_irq_mngt_init(void);
    13890
    13991#endif /* __asm__ */
Note: See TracChangeset for help on using the changeset viewer.