summaryrefslogtreecommitdiff
path: root/include/uapi/linux/parport.h
diff options
context:
space:
mode:
authorOndrej Zary <linux@zary.sk>2023-03-07 23:46:06 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2023-03-23 12:22:19 +0900
commit05f0adefd48a2ccbd66b3793d220beb9dcaf6988 (patch)
tree0f25fd15dd5bda7097080a1904ca4a9410b9aa1c /include/uapi/linux/parport.h
parent5e4696d5ed37e1b9128de9e557b2ae98e9699b52 (diff)
ata: parport_pc: add 16-bit and 8-bit fast EPP transfer flags
PARPORT_EPP_FAST flag currently uses 32-bit I/O port access for data read/write (insl/outsl). Add PARPORT_EPP_FAST_16 and PARPORT_EPP_FAST_8 that use insw/outsw and insb/outsb (and PARPORT_EPP_FAST_32 as alias for PARPORT_EPP_FAST). Signed-off-by: Ondrej Zary <linux@zary.sk> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'include/uapi/linux/parport.h')
-rw-r--r--include/uapi/linux/parport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/parport.h b/include/uapi/linux/parport.h
index f41388f88dc3..fe93e41fc205 100644
--- a/include/uapi/linux/parport.h
+++ b/include/uapi/linux/parport.h
@@ -90,6 +90,9 @@ typedef enum {
/* Flags for block transfer operations. */
#define PARPORT_EPP_FAST (1<<0) /* Unreliable counts. */
#define PARPORT_W91284PIC (1<<1) /* have a Warp9 w91284pic in the device */
+#define PARPORT_EPP_FAST_32 PARPORT_EPP_FAST /* 32-bit EPP transfers */
+#define PARPORT_EPP_FAST_16 (1<<2) /* 16-bit EPP transfers */
+#define PARPORT_EPP_FAST_8 (1<<3) /* 8-bit EPP transfers */
/* The rest is for the kernel only */
#endif /* _UAPI_PARPORT_H_ */