blob: 181cd8fac8f780472ad84be94d89e8e5e8a42b88 [file] [log] [blame]
Christopher Ferris38062f92014-07-09 15:33:25 -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 _UAPI_LINUX_ZORRO_H
20#define _UAPI_LINUX_ZORRO_H
21#include <linux/types.h>
22#define ZORRO_MANUF(id) ((id) >> 16)
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define ZORRO_PROD(id) (((id) >> 8) & 0xff)
25#define ZORRO_EPC(id) ((id) & 0xff)
Tao Baod7db5942015-01-28 10:07:51 -080026#define ZORRO_ID(manuf,prod,epc) ((ZORRO_MANUF_ ##manuf << 16) | ((prod) << 8) | (epc))
Christopher Ferris38062f92014-07-09 15:33:25 -070027typedef __u32 zorro_id;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#include <linux/zorro_ids.h>
30#define GVP_PRODMASK (0xf8)
31#define GVP_SCSICLKMASK (0x01)
32enum GVP_flags {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 GVP_IO = 0x01,
35 GVP_ACCEL = 0x02,
36 GVP_SCSI = 0x04,
37 GVP_24BITDMA = 0x08,
Christopher Ferris38062f92014-07-09 15:33:25 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 GVP_25BITDMA = 0x10,
40 GVP_NOBANK = 0x20,
41 GVP_14MHZ = 0x40,
Christopher Ferris38062f92014-07-09 15:33:25 -070042};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44struct Node {
Tao Baod7db5942015-01-28 10:07:51 -080045 __be32 ln_Succ;
46 __be32 ln_Pred;
47 __u8 ln_Type;
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __s8 ln_Pri;
50 __be32 ln_Name;
Christopher Ferris38062f92014-07-09 15:33:25 -070051} __packed;
52struct ExpansionRom {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u8 er_Type;
55 __u8 er_Product;
56 __u8 er_Flags;
57 __u8 er_Reserved03;
Christopher Ferris38062f92014-07-09 15:33:25 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __be16 er_Manufacturer;
60 __be32 er_SerialNumber;
61 __be16 er_InitDiagVec;
62 __u8 er_Reserved0c;
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u8 er_Reserved0d;
65 __u8 er_Reserved0e;
66 __u8 er_Reserved0f;
Christopher Ferris38062f92014-07-09 15:33:25 -070067} __packed;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define ERT_TYPEMASK 0xc0
70#define ERT_ZORROII 0xc0
71#define ERT_ZORROIII 0x80
72#define ERTB_MEMLIST 5
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074#define ERTF_MEMLIST (1 << 5)
Christopher Ferris38062f92014-07-09 15:33:25 -070075struct ConfigDev {
Tao Baod7db5942015-01-28 10:07:51 -080076 struct Node cd_Node;
77 __u8 cd_Flags;
Christopher Ferris38062f92014-07-09 15:33:25 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u8 cd_Pad;
80 struct ExpansionRom cd_Rom;
81 __be32 cd_BoardAddr;
82 __be32 cd_BoardSize;
Christopher Ferris38062f92014-07-09 15:33:25 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __be16 cd_SlotAddr;
85 __be16 cd_SlotSize;
86 __be32 cd_Driver;
87 __be32 cd_NextCD;
Christopher Ferris38062f92014-07-09 15:33:25 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __be32 cd_Unused[4];
Christopher Ferris38062f92014-07-09 15:33:25 -070090} __packed;
91#define ZORRO_NUM_AUTO 16
92#endif
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */