1/****************************************************************************
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 {
41  unsigned short codeid;
42  unsigned short version;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  unsigned short adapter[CFM_MAX_CYCX];
45  unsigned long memsize;
46  unsigned short reserved[2];
47  unsigned short startoffs;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  unsigned short winoffs;
50  unsigned short codeoffs;
51  unsigned long codesize;
52  unsigned short dataoffs;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  unsigned long datasize;
55};
56struct cycx_firmware {
57  char signature[80];
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  unsigned short version;
60  unsigned short checksum;
61  unsigned short reserved[6];
62  char descr[CFM_DESCR_LEN];
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  struct cycx_fw_info info;
65  unsigned char image[0];
66};
67struct cycx_fw_header {
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  unsigned long reset_size;
70  unsigned long data_size;
71  unsigned long code_size;
72};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#endif
75