zorro.h revision 38062f954c637861348dd8078cefb73554e6f12c
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 _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)
26#define ZORRO_ID(manuf, prod, epc)   ((ZORRO_MANUF_##manuf << 16) | ((prod) << 8) | (epc))
27typedef __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 */
34 GVP_IO = 0x01,
35 GVP_ACCEL = 0x02,
36 GVP_SCSI = 0x04,
37 GVP_24BITDMA = 0x08,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 GVP_25BITDMA = 0x10,
40 GVP_NOBANK = 0x20,
41 GVP_14MHZ = 0x40,
42};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44struct Node {
45 __be32 ln_Succ;
46 __be32 ln_Pred;
47 __u8 ln_Type;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __s8 ln_Pri;
50 __be32 ln_Name;
51} __packed;
52struct ExpansionRom {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __u8 er_Type;
55 __u8 er_Product;
56 __u8 er_Flags;
57 __u8 er_Reserved03;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 __be16 er_Manufacturer;
60 __be32 er_SerialNumber;
61 __be16 er_InitDiagVec;
62 __u8 er_Reserved0c;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 __u8 er_Reserved0d;
65 __u8 er_Reserved0e;
66 __u8 er_Reserved0f;
67} __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 */
74#define ERTF_MEMLIST (1<<5)
75struct ConfigDev {
76 struct Node cd_Node;
77 __u8 cd_Flags;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __u8 cd_Pad;
80 struct ExpansionRom cd_Rom;
81 __be32 cd_BoardAddr;
82 __be32 cd_BoardSize;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 __be16 cd_SlotAddr;
85 __be16 cd_SlotSize;
86 __be32 cd_Driver;
87 __be32 cd_NextCD;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 __be32 cd_Unused[4];
90} __packed;
91#define ZORRO_NUM_AUTO 16
92#endif
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94