RTEMS 6.1-rc6
Loading...
Searching...
No Matches
milkymist_pfpu.h
Go to the documentation of this file.
1
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
25#ifndef __MILKYMIST_PFPU_H_
26#define __MILKYMIST_PFPU_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/* Ioctls */
33#define PFPU_EXECUTE 0x4600
34
35#define PFPU_PROGSIZE (2048)
36#define PFPU_REG_COUNT (128)
37
38struct 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;
49};
50
51rtems_device_driver pfpu_initialize(
54 void *arg
55);
56
57rtems_device_driver pfpu_control(
60 void *arg
61);
62
63#define PFPU_DRIVER_TABLE_ENTRY {pfpu_initialize, \
64NULL, NULL, NULL, NULL, pfpu_control}
65
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* __MILKYMIST_PFPU_H_ */
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
Definition: milkymist_pfpu.h:38
bool update
shall we update the "registers" array after completion
Definition: milkymist_pfpu.h:46
bool invalidate
shall we invalidate L1 data cache after completion
Definition: milkymist_pfpu.h:48