aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2018-04-07 20:53:34 +0000
committerIan Lepore <ian@FreeBSD.org>2018-04-07 20:53:34 +0000
commit9edf7bc8d3a330d0ab5f0cbde8ac8c93f6b130e1 (patch)
tree8fd97e79f4b38b114bac65ab5be68886f1da7aae
parenta0e911e097450300add9e7b7db35b1bef2613504 (diff)
downloadsrc-9edf7bc8d3a330d0ab5f0cbde8ac8c93f6b130e1.tar.gz
src-9edf7bc8d3a330d0ab5f0cbde8ac8c93f6b130e1.zip
Add the ioctl definitions for spigen get/set spi mode. Should have been
part of r332233.
Notes
Notes: svn path=/head/; revision=332240
-rw-r--r--sys/sys/spigenio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/spigenio.h b/sys/sys/spigenio.h
index 4287cfec2d14..6ad9b01b634a 100644
--- a/sys/sys/spigenio.h
+++ b/sys/sys/spigenio.h
@@ -50,5 +50,7 @@ struct spigen_transfer_mmapped {
struct spigen_transfer_mmapped)
#define SPIGENIOC_GET_CLOCK_SPEED _IOR(SPIGENIOC_BASE, 2, uint32_t)
#define SPIGENIOC_SET_CLOCK_SPEED _IOW(SPIGENIOC_BASE, 3, uint32_t)
+#define SPIGENIOC_GET_SPI_MODE _IOR(SPIGENIOC_BASE, 4, uint32_t)
+#define SPIGENIOC_SET_SPI_MODE _IOW(SPIGENIOC_BASE, 5, uint32_t)
#endif /* !_SYS_SPIGENIO_H_ */