Blame view
include/ACEX1K.h
1.94 KB
5da627a42 * Patch by Steven... |
1 2 3 4 5 6 7 |
/* * (C) Copyright 2003 * Steven Scholz, imc Measurement & Control, steven.scholz@imc-berlin.de * * (C) Copyright 2002 * Rich Ireland, Enterasys Networks, rireland@enterasys.com. * |
1a4596601 Add GPL-2.0+ SPDX... |
8 |
* SPDX-License-Identifier: GPL-2.0+ |
5da627a42 * Patch by Steven... |
9 10 11 12 13 14 |
*/ #ifndef _ACEX1K_H_ #define _ACEX1K_H_ #include <altera.h> |
e6a857da7 fpga: constify to... |
15 16 17 |
extern int ACEX1K_load(Altera_desc *desc, const void *image, size_t size); extern int ACEX1K_dump(Altera_desc *desc, const void *buf, size_t bsize); extern int ACEX1K_info(Altera_desc *desc); |
5da627a42 * Patch by Steven... |
18 |
|
e6a857da7 fpga: constify to... |
19 20 21 |
extern int CYC2_load(Altera_desc *desc, const void *image, size_t size); extern int CYC2_dump(Altera_desc *desc, const void *buf, size_t bsize); extern int CYC2_info(Altera_desc *desc); |
f0ff4692f Add FPGA Altera C... |
22 |
|
5da627a42 * Patch by Steven... |
23 24 25 26 27 28 29 30 31 32 |
/* Slave Serial Implementation function table */ typedef struct { Altera_pre_fn pre; Altera_config_fn config; Altera_clk_fn clk; Altera_status_fn status; Altera_done_fn done; Altera_data_fn data; Altera_abort_fn abort; Altera_post_fn post; |
5da627a42 * Patch by Steven... |
33 |
} Altera_ACEX1K_Passive_Serial_fns; |
f0ff4692f Add FPGA Altera C... |
34 35 36 37 38 39 40 41 42 |
/* Slave Serial Implementation function table */ typedef struct { Altera_pre_fn pre; Altera_config_fn config; Altera_status_fn status; Altera_done_fn done; Altera_write_fn write; Altera_abort_fn abort; Altera_post_fn post; |
f0ff4692f Add FPGA Altera C... |
43 |
} Altera_CYC2_Passive_Serial_fns; |
5da627a42 * Patch by Steven... |
44 45 46 47 48 49 50 51 |
/* Device Image Sizes *********************************************************************/ /* ACEX1K */ /* FIXME: Which size do we mean? * Datasheet says 1337000/8=167125Bytes, * Filesize of an *.rbf file is 166965 Bytes */ #if 0 |
53677ef18 Big white-space c... |
52 |
#define Altera_EP1K100_SIZE 1337000/8 /* 167125 Bytes */ |
5da627a42 * Patch by Steven... |
53 |
#endif |
53677ef18 Big white-space c... |
54 |
#define Altera_EP1K100_SIZE (166965*8) |
5da627a42 * Patch by Steven... |
55 |
|
b64b8a0bd Add size #defines... |
56 57 |
#define Altera_EP2C8_SIZE 247942 #define Altera_EP2C20_SIZE 586562 |
f0ff4692f Add FPGA Altera C... |
58 |
#define Altera_EP2C35_SIZE 883905 |
20a9f8e25 fpga: add #define... |
59 |
#define Altera_EP3C5_SIZE 368011 /* .rbf size in bytes */ |
f0ff4692f Add FPGA Altera C... |
60 |
|
5da627a42 * Patch by Steven... |
61 62 63 64 65 66 67 |
/* Descriptor Macros *********************************************************************/ /* ACEX1K devices */ #define Altera_EP1K100_DESC(iface, fn_table, cookie) \ { Altera_ACEX1K, iface, Altera_EP1K100_SIZE, fn_table, cookie } #endif /* _ACEX1K_H_ */ |