• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _CYCX_CFM_H
8 #define _CYCX_CFM_H
9 #define CFM_VERSION 2
10 #define CFM_SIGNATURE "CFM - Cyclades CYCX Firmware Module"
11 #define CFM_IMAGE_SIZE 0x20000
12 #define CFM_DESCR_LEN 256
13 #define CFM_MAX_CYCX 1
14 #define CFM_LOAD_BUFSZ 0x400
15 #define GEN_POWER_ON 0x1280
16 #define GEN_SET_SEG 0x1401
17 #define GEN_BOOT_DAT 0x1402
18 #define GEN_START 0x1403
19 #define GEN_DEFPAR 0x1404
20 #define CYCX_2X 2
21 #define CYCX_8X 8
22 #define CYCX_16X 16
23 #define CFID_X25_2X 5200
24 struct cycx_fw_info {
25   unsigned short codeid;
26   unsigned short version;
27   unsigned short adapter[CFM_MAX_CYCX];
28   unsigned long memsize;
29   unsigned short reserved[2];
30   unsigned short startoffs;
31   unsigned short winoffs;
32   unsigned short codeoffs;
33   unsigned long codesize;
34   unsigned short dataoffs;
35   unsigned long datasize;
36 };
37 struct cycx_firmware {
38   char signature[80];
39   unsigned short version;
40   unsigned short checksum;
41   unsigned short reserved[6];
42   char descr[CFM_DESCR_LEN];
43   struct cycx_fw_info info;
44   unsigned char image[];
45 };
46 struct cycx_fw_header {
47   unsigned long reset_size;
48   unsigned long data_size;
49   unsigned long code_size;
50 };
51 #endif
52