blob: 8aa0db078b112397c9e4e09316eeceddc8ca8a65 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _CYCX_CFM_H
20#define _CYCX_CFM_H
21#define CFM_VERSION 2
22#define CFM_SIGNATURE "CFM - Cyclades CYCX Firmware Module"
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define CFM_IMAGE_SIZE 0x20000
25#define CFM_DESCR_LEN 256
26#define CFM_MAX_CYCX 1
27#define CFM_LOAD_BUFSZ 0x400
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define GEN_POWER_ON 0x1280
30#define GEN_SET_SEG 0x1401
31#define GEN_BOOT_DAT 0x1402
32#define GEN_START 0x1403
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define GEN_DEFPAR 0x1404
35#define CYCX_2X 2
36#define CYCX_8X 8
37#define CYCX_16X 16
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define CFID_X25_2X 5200
40struct cycx_fw_info {
Tao Baod7db5942015-01-28 10:07:51 -080041 unsigned short codeid;
42 unsigned short version;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 unsigned short adapter[CFM_MAX_CYCX];
45 unsigned long memsize;
46 unsigned short reserved[2];
47 unsigned short startoffs;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 unsigned short winoffs;
50 unsigned short codeoffs;
51 unsigned long codesize;
52 unsigned short dataoffs;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 unsigned long datasize;
Ben Cheng655a7c02013-10-16 16:09:24 -070055};
56struct cycx_firmware {
Tao Baod7db5942015-01-28 10:07:51 -080057 char signature[80];
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned short version;
60 unsigned short checksum;
61 unsigned short reserved[6];
62 char descr[CFM_DESCR_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 struct cycx_fw_info info;
65 unsigned char image[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070066};
67struct cycx_fw_header {
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 unsigned long reset_size;
70 unsigned long data_size;
71 unsigned long code_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#endif