platform_bionic/libc/kernel/uapi/linux/fdreg.h
Elliott Hughes 96c1db7b9d Remove the repetitive warnings from the uapi headers.
Having

  WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS

every four lines made the headers harder to read, made the diffs much worse
each time we upgraded, and wasn't really providing any benefit. Before the
next uapi update, let's just stop doing this.

Bug: N/A
Test: builds, manually inspected files look right
Change-Id: Id7088cf750894c9d24950f3d53587fe3156c4f7d
2017-05-25 13:48:01 -07:00

101 lines
2.8 KiB
C

/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call into the kernel available to libc. It contains only constants,
*** structures, and macros generated from the original header, and thus,
*** contains no copyrightable information.
***
*** To edit the content of this header, modify the corresponding
*** source file (e.g. under external/kernel-headers/original/) then
*** run bionic/libc/kernel/tools/update_all.py
***
*** Any manual change here will be lost the next time this script will
*** be run. You've been warned!
***
****************************************************************************
****************************************************************************/
#ifndef _LINUX_FDREG_H
#define _LINUX_FDREG_H
#ifdef FDPATCHES
#define FD_IOPORT fdc_state[fdc].address
#else
#define FD_IOPORT 0x3f0
#endif
#define FD_STATUS (4 + FD_IOPORT)
#define FD_DATA (5 + FD_IOPORT)
#define FD_DOR (2 + FD_IOPORT)
#define FD_DIR (7 + FD_IOPORT)
#define FD_DCR (7 + FD_IOPORT)
#define STATUS_BUSYMASK 0x0F
#define STATUS_BUSY 0x10
#define STATUS_DMA 0x20
#define STATUS_DIR 0x40
#define STATUS_READY 0x80
#define ST0_DS 0x03
#define ST0_HA 0x04
#define ST0_NR 0x08
#define ST0_ECE 0x10
#define ST0_SE 0x20
#define ST0_INTR 0xC0
#define ST1_MAM 0x01
#define ST1_WP 0x02
#define ST1_ND 0x04
#define ST1_OR 0x10
#define ST1_CRC 0x20
#define ST1_EOC 0x80
#define ST2_MAM 0x01
#define ST2_BC 0x02
#define ST2_SNS 0x04
#define ST2_SEH 0x08
#define ST2_WC 0x10
#define ST2_CRC 0x20
#define ST2_CM 0x40
#define ST3_HA 0x04
#define ST3_DS 0x08
#define ST3_TZ 0x10
#define ST3_RY 0x20
#define ST3_WP 0x40
#define ST3_FT 0x80
#define FD_RECALIBRATE 0x07
#define FD_SEEK 0x0F
#define FD_READ 0xE6
#define FD_WRITE 0xC5
#define FD_SENSEI 0x08
#define FD_SPECIFY 0x03
#define FD_FORMAT 0x4D
#define FD_VERSION 0x10
#define FD_CONFIGURE 0x13
#define FD_PERPENDICULAR 0x12
#define FD_GETSTATUS 0x04
#define FD_DUMPREGS 0x0E
#define FD_READID 0xEA
#define FD_UNLOCK 0x14
#define FD_LOCK 0x94
#define FD_RSEEK_OUT 0x8f
#define FD_RSEEK_IN 0xcf
#define FD_PARTID 0x18
#define FD_SAVE 0x2e
#define FD_DRIVESPEC 0x8e
#define FD_RESTORE 0x4e
#define FD_POWERDOWN 0x27
#define FD_FORMAT_N_WRITE 0xef
#define FD_OPTION 0x33
#define DMA_READ 0x46
#define DMA_WRITE 0x4A
#define FDC_NONE 0x00
#define FDC_UNKNOWN 0x10
#define FDC_8272A 0x20
#define FDC_765ED 0x30
#define FDC_82072 0x40
#define FDC_82072A 0x45
#define FDC_82077_ORIG 0x51
#define FDC_82077 0x52
#define FDC_82078_UNKN 0x5f
#define FDC_82078 0x60
#define FDC_82078_1 0x61
#define FDC_S82078B 0x62
#define FDC_87306 0x63
#define FD_RESET_DELAY 20
#endif