RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
lm32
include
bsp
milkymist_pfpu.h
Go to the documentation of this file.
1
6
7
/* milkymist_pfpu.h
8
*
9
* Milkymist PFPU driver for RTEMS
10
*
11
* The license and distribution terms for this file may be
12
* found in the file LICENSE in this distribution or at
13
* http://www.rtems.org/license/LICENSE.
14
*
15
* COPYRIGHT (c) 2010 Sebastien Bourdeauducq
16
*/
17
24
25
#ifndef __MILKYMIST_PFPU_H_
26
#define __MILKYMIST_PFPU_H_
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
/* Ioctls */
33
#define PFPU_EXECUTE 0x4600
34
35
#define PFPU_PROGSIZE (2048)
36
#define PFPU_REG_COUNT (128)
37
38
struct
pfpu_td
{
39
unsigned
int
*output;
40
unsigned
int
hmeshlast;
41
unsigned
int
vmeshlast;
42
unsigned
int
*program;
43
unsigned
int
progsize;
44
float
*registers;
46
bool
update
;
48
bool
invalidate
;
49
};
50
51
rtems_device_driver
pfpu_initialize(
52
rtems_device_major_number
major,
53
rtems_device_minor_number
minor,
54
void
*arg
55
);
56
57
rtems_device_driver
pfpu_control(
58
rtems_device_major_number
major,
59
rtems_device_minor_number
minor,
60
void
*arg
61
);
62
63
#define PFPU_DRIVER_TABLE_ENTRY {pfpu_initialize, \
64
NULL, NULL, NULL, NULL, pfpu_control}
65
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* __MILKYMIST_PFPU_H_ */
rtems_device_driver
rtems_status_code rtems_device_driver
This type shall be used in device driver entry declarations and definitions.
Definition
io.h:90
rtems_device_major_number
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition
io.h:103
rtems_device_minor_number
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition
io.h:115
pfpu_td
Definition
milkymist_pfpu.h:38
pfpu_td::update
bool update
shall we update the "registers" array after completion
Definition
milkymist_pfpu.h:46
pfpu_td::invalidate
bool invalidate
shall we invalidate L1 data cache after completion
Definition
milkymist_pfpu.h:48
Generated by
1.18.0