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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [io/] [common/] [current/] [include/] [config_keys.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#ifndef CYGONCE_CONFIG_KEYS_H
2
#define CYGONCE_CONFIG_KEYS_H
3
// ====================================================================
4
//
5
//      config_keys.h
6
//
7
//      Device I/O "Keys" for get/put config functions
8
//
9
// ====================================================================
10
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
11
// -------------------------------------------                              
12
// This file is part of eCos, the Embedded Configurable Operating System.   
13
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
14
//
15
// eCos is free software; you can redistribute it and/or modify it under    
16
// the terms of the GNU General Public License as published by the Free     
17
// Software Foundation; either version 2 or (at your option) any later      
18
// version.                                                                 
19
//
20
// eCos is distributed in the hope that it will be useful, but WITHOUT      
21
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
22
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
23
// for more details.                                                        
24
//
25
// You should have received a copy of the GNU General Public License        
26
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
27
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
28
//
29
// As a special exception, if other files instantiate templates or use      
30
// macros or inline functions from this file, or you compile this file      
31
// and link it with other works to produce a work based on this file,       
32
// this file does not by itself cause the resulting work to be covered by   
33
// the GNU General Public License. However the source code for this file    
34
// must still be made available in accordance with section (3) of the GNU   
35
// General Public License v2.                                               
36
//
37
// This exception does not invalidate any other reasons why a work based    
38
// on this file might be covered by the GNU General Public License.         
39
// -------------------------------------------                              
40
// ####ECOSGPLCOPYRIGHTEND####                                              
41
// ====================================================================
42
//#####DESCRIPTIONBEGIN####
43
//
44
// Author(s):    gthomas
45
// Contributors: gthomas,jskov,grante,jlarmour
46
// Date:         1999-02-04
47
// Purpose:      Repository for all get/put config "keys"
48
// Description:
49
//
50
//####DESCRIPTIONEND####
51
//
52
// ====================================================================
53
 
54
// This file contains all of the 'key' values used by all I/O components.
55
// It is placed in this single repository to make it easy to reduce conflicts.
56
 
57
// ======== 0x0100 Serial ====================================================
58
// Get/Set configuration 'key' values for low-level serial I/O
59
 
60
#define CYG_IO_GET_CONFIG_SERIAL_INFO                  0x0101
61
#define CYG_IO_GET_CONFIG_SERIAL_OUTPUT_DRAIN          0x0102
62
#define CYG_IO_GET_CONFIG_SERIAL_OUTPUT_FLUSH          0x0103
63
#define CYG_IO_SET_CONFIG_SERIAL_OUTPUT_FLUSH          CYG_IO_GET_CONFIG_SERIAL_OUTPUT_FLUSH
64
#define CYG_IO_GET_CONFIG_SERIAL_INPUT_FLUSH           0x0104
65
#define CYG_IO_SET_CONFIG_SERIAL_INPUT_FLUSH           CYG_IO_GET_CONFIG_SERIAL_INPUT_FLUSH
66
#define CYG_IO_GET_CONFIG_SERIAL_ABORT                 0x0105
67
#define CYG_IO_GET_CONFIG_SERIAL_BUFFER_INFO           0x0111
68
#define CYG_IO_GET_CONFIG_SERIAL_FLOW_CONTROL_METHOD   0x0112
69
 
70
#define CYG_IO_SET_CONFIG_SERIAL_INFO                  0x0181
71
#define CYG_IO_SET_CONFIG_SERIAL_HW_RX_FLOW_THROTTLE   0x0184
72
#define CYG_IO_SET_CONFIG_SERIAL_HW_FLOW_CONFIG        0x0185
73
#define CYG_IO_SET_CONFIG_SERIAL_FLOW_CONTROL_METHOD   0x0186
74
#define CYG_IO_SET_CONFIG_SERIAL_FLOW_CONTROL_FORCE    0x0187
75
#define CYG_IO_SET_CONFIG_SERIAL_STATUS_CALLBACK       0x0188
76
#define CYG_IO_SET_CONFIG_SERIAL_HW_BREAK              0x0189
77
 
78
// Compatibility values. Use of these is deprecated, the generic symbols
79
// should be used instead.
80
#define CYG_IO_GET_CONFIG_SERIAL_READ_BLOCKING   CYG_IO_GET_CONFIG_READ_BLOCKING
81
#define CYG_IO_GET_CONFIG_SERIAL_WRITE_BLOCKING  CYG_IO_GET_CONFIG_WRITE_BLOCKING
82
#define CYG_IO_SET_CONFIG_SERIAL_READ_BLOCKING   CYG_IO_SET_CONFIG_READ_BLOCKING
83
#define CYG_IO_SET_CONFIG_SERIAL_WRITE_BLOCKING  CYG_IO_SET_CONFIG_WRITE_BLOCKING
84
 
85
// ======== 0x0200 TTY =======================================================
86
// Get/Set configuration 'key' values for tty-like driver
87
#define CYG_IO_GET_CONFIG_TTY_INFO       0x0201  // Get channel configuration
88
#define CYG_IO_SET_CONFIG_TTY_INFO       0x0281  // Set channel configuration
89
 
90
 
91
// ======== 0x0300 DSP =======================================================
92
// Get/Set configuration 'key' values for low-level DSP I/O
93
#define CYG_IO_GET_CONFIG_DSP_OUTPUT_DRAIN       0x0301
94
#define CYG_IO_GET_CONFIG_DSP_OUTPUT_FLUSH       0x0302
95
#define CYG_IO_GET_CONFIG_DSP_INPUT_FLUSH        0x0303
96
#define CYG_IO_GET_CONFIG_DSP_ABORT              0x0304
97
#define CYG_IO_GET_CONFIG_DSP_INPUT_OVERFLOW_RESET 0x0307
98
 
99
// Compatibility values. Use of these is deprecated, the generic symbols
100
// should be used instead.
101
#define CYG_IO_GET_CONFIG_DSP_READ_BLOCKING      CYG_IO_GET_CONFIG_READ_BLOCKING
102
#define CYG_IO_GET_CONFIG_DSP_WRITE_BLOCKING     CYG_IO_GET_CONFIG_WRITE_BLOCKING
103
#define CYG_IO_SET_CONFIG_DSP_READ_BLOCKING      CYG_IO_SET_CONFIG_READ_BLOCKING
104
#define CYG_IO_SET_CONFIG_DSP_WRITE_BLOCKING     CYG_IO_SET_CONFIG_WRITE_BLOCKING
105
 
106
// ======== 0x400 DSP =======================================================
107
// Get/Set configuration 'key' values for termios emulation
108
 
109
#define CYG_IO_GET_CONFIG_TERMIOS                0x0400
110
#define CYG_IO_SET_CONFIG_TERMIOS                0x0401
111
 
112
// ======== 0x600 FLASH =====================================================
113
// Get/Set configuration 'key' values for FLASH drivers
114
 
115
#define CYG_IO_GET_CONFIG_FLASH_ERASE            0x600
116
#define CYG_IO_GET_CONFIG_FLASH_QUERY            0x601
117
#define CYG_IO_GET_CONFIG_FLASH_LOCK             0x602
118
#define CYG_IO_GET_CONFIG_FLASH_UNLOCK           0x603
119
#define CYG_IO_GET_CONFIG_FLASH_VERIFY           0x604
120
#define CYG_IO_GET_CONFIG_FLASH_DEVSIZE          0x605
121
#define CYG_IO_GET_CONFIG_FLASH_BLOCKSIZE        0x606
122
#define CYG_IO_GET_CONFIG_FLASH_DEVADDR          0x607
123
 
124
// Note the following is now deprecated. See generic flash package for the replacement.
125
#define CYG_IO_SET_CONFIG_FLASH_FIS_NAME         0x680
126
 
127
// ======== 0x700 DISK =======================================================
128
// Get/Set configuration 'key' values for DISK I/O 
129
 
130
#define CYG_IO_GET_CONFIG_DISK_INFO              0x700
131
 
132
#define CYG_IO_SET_CONFIG_DISK_MOUNT             0x781
133
#define CYG_IO_SET_CONFIG_DISK_UMOUNT            0x782
134
 
135
// ======== 0x800 CAN ========================================================
136
// Get/Set configuration 'key' values for CAN I/O 
137
#define CYG_IO_GET_CONFIG_CAN_INFO                  0x0801
138
#define CYG_IO_GET_CONFIG_CAN_BUFFER_INFO           0x0802
139
#define CYG_IO_GET_CONFIG_CAN_MSGBUF_INFO           0x0803
140
#define CYG_IO_GET_CONFIG_CAN_TIMEOUT               0x0804
141
#define CYG_IO_GET_CONFIG_CAN_HDI                   0x0805
142
#define CYG_IO_GET_CONFIG_CAN_STATE                 0x0806
143
 
144
#define CYG_IO_SET_CONFIG_CAN_INFO                  0x0881
145
#define CYG_IO_SET_CONFIG_CAN_OUTPUT_DRAIN          0x0882
146
#define CYG_IO_SET_CONFIG_CAN_OUTPUT_FLUSH          0x0883
147
#define CYG_IO_SET_CONFIG_CAN_INPUT_FLUSH           0x0884
148
#define CYG_IO_SET_CONFIG_CAN_TIMEOUT               0x0885
149
#define CYG_IO_SET_CONFIG_CAN_MSGBUF                0x0886
150
#define CYG_IO_SET_CONFIG_CAN_MODE                  0x0887
151
#define CYG_IO_SET_CONFIG_CAN_ABORT                 0x0888
152
#define CYG_IO_SET_CONFIG_CAN_CALLBACK              0x0889
153
#define CYG_IO_SET_CONFIG_CAN_RANGE_FILTER          0x088A
154
#define CYG_IO_SET_CONFIG_CAN_MASK_FILTER           0x088B
155
 
156
// ======== 0x900 ADC ========================================================
157
// Get/Set configuration 'key' values for ADC I/O
158
 
159
#define CYG_IO_GET_CONFIG_ADC_RATE                  0x0901
160
 
161
#define CYG_IO_SET_CONFIG_ADC_RATE                  0x0981
162
#define CYG_IO_SET_CONFIG_ADC_ENABLE                0x0982
163
#define CYG_IO_SET_CONFIG_ADC_DISABLE               0x0983
164
#define CYG_IO_SET_CONFIG_ADC_DATA_FLUSH            0x0984
165
 
166
// ======== 0x1000 Generic ===================================================
167
// Get/Set configuration 'key' values that can apply to more than one
168
// class of device.
169
 
170
#define CYG_IO_GET_CONFIG_READ_BLOCKING         0x1001
171
#define CYG_IO_GET_CONFIG_WRITE_BLOCKING        0x1002
172
 
173
#define CYG_IO_SET_CONFIG_READ_BLOCKING         0x1081
174
#define CYG_IO_SET_CONFIG_WRITE_BLOCKING        0x1082
175
 
176
// Close the underlying device - primarily useful for io/fileio's devfs,
177
// but probably more widely applicable. Note that this is not like UNIX
178
// close in that there is no reference counting. If that is needed it must
179
// be done at a higher level.
180
#define CYG_IO_SET_CONFIG_CLOSE                 0x1100
181
 
182
#endif  /* CYGONCE_CONFIG_KEYS_H */
183
/* EOF config_keys.h */

powered by: WebSVN 2.1.0

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