diff options
author | Joshua M. Clulow <jmc@joyent.com> | 2016-03-07 22:03:10 +0000 |
---|---|---|
committer | Joshua M. Clulow <jmc@joyent.com> | 2016-07-06 16:25:33 +0000 |
commit | 19119bc0d205d00f8a5623639ac879efc8959625 (patch) | |
tree | 8fc9612f1e25a752e91fee28d8e6266ccfa38a37 | |
parent | 90a7d022958606b544f5c442c92439fbdfaf5522 (diff) | |
download | illumos-joyent-19119bc0d205d00f8a5623639ac879efc8959625.tar.gz |
XXX oops, ioctl.h
-rw-r--r-- | usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h b/usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h new file mode 100644 index 0000000000..bb457d856b --- /dev/null +++ b/usr/src/uts/common/io/cpqary3/cpqary3_ioctl.h @@ -0,0 +1,53 @@ +/* + * This file and its contents are supplied under the terms of the + * Common Development and Distribution License ("CDDL"), version 1.0. + * You may only use this file in accordance with the terms of version + * 1.0 of the CDDL. + * + * A full copy of the text of the CDDL should have accompanied this + * source. A copy of the CDDL is also available via the Internet at + * http://www.illumos.org/license/CDDL. + */ + +/* + * Copyright 2016 Joyent, Inc. + */ + +#ifndef _CPQARY3_IOCTL_H +#define _CPQARY3_IOCTL_H + +#include <sys/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Ioctl Commands + */ +#define CPQARY3_IOCTL_CMD ('c' << 4) +#define CPQARY3_IOCTL_PASSTHROUGH CPQARY3_IOCTL_CMD | (0x01) + +typedef struct cpqary3_ioctl_req { + uint32_t cppt_for_read; + void *cppt_bufp; + uint32_t cppt_bufsz; + uint32_t cppt_cdblen; + uint8_t cppt_cdb[16]; +} cpqary3_ioctl_req_t; + +#ifdef _KERNEL +typedef struct cpqary3_ioctl_req32 { + uint32_t cppt_for_read; + caddr32_t cppt_bufp; + uint32_t cppt_bufsz; + uint32_t cppt_cdblen; + uint8_t cppt_cdb[16]; +} cpqary3_ioctl_req32_t; +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _CPQARY3_IOCTL_H */ |