ドライバの使い方が書かれている
[詳解]
#include <sys/types.h>
#include <stdint.h>
#include <linux/ioctl.h>
[ソースコード]
|
#define | DEVICE_IOC_MAGIC 'c' |
| undocumented
|
|
#define | CSZ_REG_ADDR_W _IOW(DEVICE_IOC_MAGIC, 0, uint32_t) |
| undocumented
|
|
#define | CSZ_REG_ADDR_R _IOR(DEVICE_IOC_MAGIC, 1, uint32_t) |
| undocumented
|
|
#define | CSZ_WRITE_VALUE _IOW(DEVICE_IOC_MAGIC, 2, uint32_t) |
| undocumented
|
|
#define | CSZ_READ_VALUE _IOR(DEVICE_IOC_MAGIC, 3, uint32_t) |
| undocumented
|
|
#define | CSZ_SET_READ_PTR _IOW(DEVICE_IOC_MAGIC, 4, uint32_t) |
| undocumented
|
|
#define | CSZ_SET_WRITE_PTR _IOW(DEVICE_IOC_MAGIC, 5, uint32_t) |
| undocumented
|
|
#define | CSZ_SET_CUR _IOW(DEVICE_IOC_MAGIC, 6, uint32_t) |
| undocumented
|
|
#define | CSZ_GET_CUR _IOW(DEVICE_IOC_MAGIC, 7, uint32_t) |
| undocumented
|
|
#define | CSZ_GET_VERSION _IOR(DEVICE_IOC_MAGIC, 8, uint32_t) |
| undocumented
|
|
#define | CSZ_GET_MEM_RANGE _IOR(DEVICE_IOC_MAGIC, 9, uint32_t) |
| undocumented
|
|
#define | CSZ_COPY_TO_USER _IOW(DEVICE_IOC_MAGIC, 16, uint32_t) |
| undocumented
|
|
#define | CSZ_TEST_CMD _IOWR(DEVICE_IOC_MAGIC, 10, uint32_t) |
| undocumented
|
|