blob: 052de5366207edc5159917b077801c68b3633330 [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"
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define CFM_IMAGE_SIZE 0x20000
24#define CFM_DESCR_LEN 256
25#define CFM_MAX_CYCX 1
26#define CFM_LOAD_BUFSZ 0x400
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define GEN_POWER_ON 0x1280
28#define GEN_SET_SEG 0x1401
29#define GEN_BOOT_DAT 0x1402
30#define GEN_START 0x1403
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define GEN_DEFPAR 0x1404
32#define CYCX_2X 2
33#define CYCX_8X 8
34#define CYCX_16X 16
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define CFID_X25_2X 5200
36struct cycx_fw_info {
Tao Baod7db5942015-01-28 10:07:51 -080037 unsigned short codeid;
38 unsigned short version;
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned short adapter[CFM_MAX_CYCX];
40 unsigned long memsize;
41 unsigned short reserved[2];
42 unsigned short startoffs;
Tao Baod7db5942015-01-28 10:07:51 -080043 unsigned short winoffs;
44 unsigned short codeoffs;
45 unsigned long codesize;
46 unsigned short dataoffs;
Tao Baod7db5942015-01-28 10:07:51 -080047 unsigned long datasize;
Ben Cheng655a7c02013-10-16 16:09:24 -070048};
49struct cycx_firmware {
Tao Baod7db5942015-01-28 10:07:51 -080050 char signature[80];
Tao Baod7db5942015-01-28 10:07:51 -080051 unsigned short version;
52 unsigned short checksum;
53 unsigned short reserved[6];
54 char descr[CFM_DESCR_LEN];
Tao Baod7db5942015-01-28 10:07:51 -080055 struct cycx_fw_info info;
56 unsigned char image[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070057};
58struct cycx_fw_header {
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned long reset_size;
60 unsigned long data_size;
61 unsigned long code_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
Ben Cheng655a7c02013-10-16 16:09:24 -070063#endif