OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [kernel/] [v2_0/] [cdl/] [interrupts.cdl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
# ====================================================================
2
#
3
#      interrupts.cdl
4
#
5
#      configuration data related to kernel interrupt handling
6
#
7
# ====================================================================
8
#####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later version.
16
##
17
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20
## for more details.
21
##
22
## You should have received a copy of the GNU General Public License along
23
## with eCos; if not, write to the Free Software Foundation, Inc.,
24
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
##
26
## As a special exception, if other files instantiate templates or use macros
27
## or inline functions from this file, or you compile this file and link it
28
## with other works to produce a work based on this file, this file does not
29
## by itself cause the resulting work to be covered by the GNU General Public
30
## License. However the source code for this file must still be made available
31
## in accordance with section (3) of the GNU General Public License.
32
##
33
## This exception does not invalidate any other reasons why a work based on
34
## this file might be covered by the GNU General Public License.
35
##
36
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
## at http://sources.redhat.com/ecos/ecos-license/
38
## -------------------------------------------
39
#####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      bartv
44
# Original data:  nickg
45
# Contributors:
46
# Date:           1999-06-13
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
# NOTE: the choice of list vs table should not be two separate
53
# options. There is a single option which must have one of
54
# two legal values.
55
cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS {
56
    display       "Use delayed service routines (DSRs)"
57
    default_value 1
58
    description   "
59
        In eCos the recommended way to handle device interrupts is to
60
        do a minimum amount of work inside the low level interrupt
61
        handler itself, and instead do as much as possible in a
62
        Delayed Service Routine or DSR. If an application does not
63
        make use of DSRs directly or indirectly then it is possible
64
        to disable the DSR support completely, which reduces the
65
        overheads of context switches and interrupt handling. Note
66
        that the kernel real-time clock makes use of DSRs, as do many
67
        of the device drivers. "
68
 
69
    cdl_interface CYGINT_KERNEL_INTERRUPTS_DSRS {
70
        requires 1 == CYGINT_KERNEL_INTERRUPTS_DSRS
71
        no_define
72
    }
73
 
74
    # NOTE: the choice of list vs table should not be two separate
75
    # options. There is a single option which must have one of
76
    # two legal values.
77
    cdl_option CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST {
78
        display       "Use linked lists for DSRs"
79
        default_value 1
80
        implements    CYGINT_KERNEL_INTERRUPTS_DSRS
81
        description   "
82
            When DSR support is enabled the kernel must keep track of all
83
            the DSRs that are pending. This information can be kept in a
84
            fixed-size table or in a linked list. The list implementation
85
            requires that the kernel disable interrupts for a very short
86
            period of time outside interrupt handlers, but there is no
87
            possibility of a table overflow occurring."
88
    }
89
 
90
    cdl_component CYGIMP_KERNEL_INTERRUPTS_DSRS_TABLE {
91
        display       "Use fixed-size table for DSRs"
92
        default_value 0
93
        implements    CYGINT_KERNEL_INTERRUPTS_DSRS
94
        description   "
95
            When DSR support is enabled the kernel must keep track of all
96
            the DSRs that are pending. This information can be kept in a
97
            fixed-size table or in a linked list. The table
98
            implementation involves a very small risk of overflow at
99
            run-time if a given interrupt source is able to have more
100
            than one pending DSR. However it has the advantage that
101
            the kernel does not need to disable interrupts outside
102
            interrupt handlers."
103
 
104
        cdl_option CYGNUM_KERNEL_INTERRUPTS_DSRS_TABLE_SIZE {
105
            display       "Number of entries in fixed-size DSR table"
106
            flavor        data
107
            legal_values  2 to 1024
108
            default_value 32
109
            description "
110
            When DSR support is enabled the kernel must keep track of all
111
            the DSRs that are pending. One approach involves a fixed-size
112
            table, which involves a very small risk of overflow at
113
            run-time. By increasing the table size it is possible to reduce
114
            this risk."
115
        }
116
    }
117
 
118
    cdl_option CYGIMP_KERNEL_INTERRUPTS_CHAIN {
119
        display       "Chain all interrupts together"
120
        requires      CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN
121
        default_value 0
122
        description "
123
            Interrupts can be attached to vectors either singly, or be
124
            chained together. The latter is necessary if there is no way
125
            of discovering which device has interrupted without
126
            inspecting the device itself. It can also reduce the amount
127
            of RAM needed for interrupt decoding tables and code."
128
    }
129
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.