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 _LINUX_FDREG_H
20#define _LINUX_FDREG_H
21#ifdef FDPATCHES
22#define FD_IOPORT fdc_state[fdc].address
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#else
25#define FD_IOPORT 0x3f0
26#endif
27#define FD_STATUS (4 + FD_IOPORT)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define FD_DATA (5 + FD_IOPORT)
30#define FD_DOR (2 + FD_IOPORT)
31#define FD_DIR (7 + FD_IOPORT)
32#define FD_DCR (7 + FD_IOPORT)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define STATUS_BUSYMASK 0x0F
35#define STATUS_BUSY 0x10
36#define STATUS_DMA 0x20
37#define STATUS_DIR 0x40
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define STATUS_READY 0x80
40#define ST0_DS 0x03
41#define ST0_HA 0x04
42#define ST0_NR 0x08
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define ST0_ECE 0x10
45#define ST0_SE 0x20
46#define ST0_INTR 0xC0
47#define ST1_MAM 0x01
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define ST1_WP 0x02
50#define ST1_ND 0x04
51#define ST1_OR 0x10
52#define ST1_CRC 0x20
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define ST1_EOC 0x80
55#define ST2_MAM 0x01
56#define ST2_BC 0x02
57#define ST2_SNS 0x04
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define ST2_SEH 0x08
60#define ST2_WC 0x10
61#define ST2_CRC 0x20
62#define ST2_CM 0x40
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define ST3_HA 0x04
65#define ST3_DS 0x08
66#define ST3_TZ 0x10
67#define ST3_RY 0x20
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define ST3_WP 0x40
70#define ST3_FT 0x80
71#define FD_RECALIBRATE 0x07
72#define FD_SEEK 0x0F
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define FD_READ 0xE6
75#define FD_WRITE 0xC5
76#define FD_SENSEI 0x08
77#define FD_SPECIFY 0x03
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define FD_FORMAT 0x4D
80#define FD_VERSION 0x10
81#define FD_CONFIGURE 0x13
82#define FD_PERPENDICULAR 0x12
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define FD_GETSTATUS 0x04
85#define FD_DUMPREGS 0x0E
86#define FD_READID 0xEA
87#define FD_UNLOCK 0x14
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define FD_LOCK 0x94
90#define FD_RSEEK_OUT 0x8f
91#define FD_RSEEK_IN 0xcf
92#define FD_PARTID 0x18
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define FD_SAVE 0x2e
95#define FD_DRIVESPEC 0x8e
96#define FD_RESTORE 0x4e
97#define FD_POWERDOWN 0x27
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define FD_FORMAT_N_WRITE 0xef
100#define FD_OPTION 0x33
101#define DMA_READ 0x46
102#define DMA_WRITE 0x4A
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define FDC_NONE 0x00
105#define FDC_UNKNOWN 0x10
106#define FDC_8272A 0x20
107#define FDC_765ED 0x30
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define FDC_82072 0x40
110#define FDC_82072A 0x45
111#define FDC_82077_ORIG 0x51
112#define FDC_82077 0x52
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define FDC_82078_UNKN 0x5f
115#define FDC_82078 0x60
116#define FDC_82078_1 0x61
117#define FDC_S82078B 0x62
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define FDC_87306 0x63
120#define FD_RESET_DELAY 20
121#endif
122