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 #define FD_STATUS 4 22 #define FD_DATA 5 23 #define FD_DOR 2 24 #define FD_DIR 7 25 #define FD_DCR 7 26 #define STATUS_BUSYMASK 0x0F 27 #define STATUS_BUSY 0x10 28 #define STATUS_DMA 0x20 29 #define STATUS_DIR 0x40 30 #define STATUS_READY 0x80 31 #define ST0_DS 0x03 32 #define ST0_HA 0x04 33 #define ST0_NR 0x08 34 #define ST0_ECE 0x10 35 #define ST0_SE 0x20 36 #define ST0_INTR 0xC0 37 #define ST1_MAM 0x01 38 #define ST1_WP 0x02 39 #define ST1_ND 0x04 40 #define ST1_OR 0x10 41 #define ST1_CRC 0x20 42 #define ST1_EOC 0x80 43 #define ST2_MAM 0x01 44 #define ST2_BC 0x02 45 #define ST2_SNS 0x04 46 #define ST2_SEH 0x08 47 #define ST2_WC 0x10 48 #define ST2_CRC 0x20 49 #define ST2_CM 0x40 50 #define ST3_HA 0x04 51 #define ST3_DS 0x08 52 #define ST3_TZ 0x10 53 #define ST3_RY 0x20 54 #define ST3_WP 0x40 55 #define ST3_FT 0x80 56 #define FD_RECALIBRATE 0x07 57 #define FD_SEEK 0x0F 58 #define FD_READ 0xE6 59 #define FD_WRITE 0xC5 60 #define FD_SENSEI 0x08 61 #define FD_SPECIFY 0x03 62 #define FD_FORMAT 0x4D 63 #define FD_VERSION 0x10 64 #define FD_CONFIGURE 0x13 65 #define FD_PERPENDICULAR 0x12 66 #define FD_GETSTATUS 0x04 67 #define FD_DUMPREGS 0x0E 68 #define FD_READID 0xEA 69 #define FD_UNLOCK 0x14 70 #define FD_LOCK 0x94 71 #define FD_RSEEK_OUT 0x8f 72 #define FD_RSEEK_IN 0xcf 73 #define FD_PARTID 0x18 74 #define FD_SAVE 0x2e 75 #define FD_DRIVESPEC 0x8e 76 #define FD_RESTORE 0x4e 77 #define FD_POWERDOWN 0x27 78 #define FD_FORMAT_N_WRITE 0xef 79 #define FD_OPTION 0x33 80 #define DMA_READ 0x46 81 #define DMA_WRITE 0x4A 82 #define FDC_NONE 0x00 83 #define FDC_UNKNOWN 0x10 84 #define FDC_8272A 0x20 85 #define FDC_765ED 0x30 86 #define FDC_82072 0x40 87 #define FDC_82072A 0x45 88 #define FDC_82077_ORIG 0x51 89 #define FDC_82077 0x52 90 #define FDC_82078_UNKN 0x5f 91 #define FDC_82078 0x60 92 #define FDC_82078_1 0x61 93 #define FDC_S82078B 0x62 94 #define FDC_87306 0x63 95 #define FD_RESET_DELAY 20 96 #endif 97