7568150a58e78021968b6c22bc28e9787b33496agwr/*
7568150a58e78021968b6c22bc28e9787b33496agwr * CDDL HEADER START
7568150a58e78021968b6c22bc28e9787b33496agwr *
7568150a58e78021968b6c22bc28e9787b33496agwr * The contents of this file are subject to the terms of the
7568150a58e78021968b6c22bc28e9787b33496agwr * Common Development and Distribution License (the "License").
7568150a58e78021968b6c22bc28e9787b33496agwr * You may not use this file except in compliance with the License.
7568150a58e78021968b6c22bc28e9787b33496agwr *
7568150a58e78021968b6c22bc28e9787b33496agwr * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7568150a58e78021968b6c22bc28e9787b33496agwr * or http://www.opensolaris.org/os/licensing.
7568150a58e78021968b6c22bc28e9787b33496agwr * See the License for the specific language governing permissions
7568150a58e78021968b6c22bc28e9787b33496agwr * and limitations under the License.
7568150a58e78021968b6c22bc28e9787b33496agwr *
7568150a58e78021968b6c22bc28e9787b33496agwr * When distributing Covered Code, include this CDDL HEADER in each
7568150a58e78021968b6c22bc28e9787b33496agwr * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7568150a58e78021968b6c22bc28e9787b33496agwr * If applicable, add the following below this CDDL HEADER, with the
7568150a58e78021968b6c22bc28e9787b33496agwr * fields enclosed by brackets "[]" replaced with your own identifying
7568150a58e78021968b6c22bc28e9787b33496agwr * information: Portions Copyright [yyyy] [name of copyright owner]
7568150a58e78021968b6c22bc28e9787b33496agwr *
7568150a58e78021968b6c22bc28e9787b33496agwr * CDDL HEADER END
7568150a58e78021968b6c22bc28e9787b33496agwr */
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr/*
7568150a58e78021968b6c22bc28e9787b33496agwr * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
7568150a58e78021968b6c22bc28e9787b33496agwr * Use is subject to license terms.
7568150a58e78021968b6c22bc28e9787b33496agwr */
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr#ifndef _SMBFS_IOCTL_H
7568150a58e78021968b6c22bc28e9787b33496agwr#define _SMBFS_IOCTL_H
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr#pragma ident "%Z%%M% %I% %E% SMI"
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr/*
7568150a58e78021968b6c22bc28e9787b33496agwr * Project private IOCTL interface provided by SMBFS.
7568150a58e78021968b6c22bc28e9787b33496agwr */
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr#include <sys/ioccom.h>
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr#ifdef __cplusplus
7568150a58e78021968b6c22bc28e9787b33496agwrextern "C" {
7568150a58e78021968b6c22bc28e9787b33496agwr#endif
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwrtypedef struct ioc_sdbuf {
7568150a58e78021968b6c22bc28e9787b33496agwr uint64_t addr; /* buffer address (user space) */
7568150a58e78021968b6c22bc28e9787b33496agwr uint32_t alloc; /* allocated length */
7568150a58e78021968b6c22bc28e9787b33496agwr uint32_t used; /* content length */
7568150a58e78021968b6c22bc28e9787b33496agwr uint32_t selector; /* i.e. DACL_SECURITY_INFORMATION */
7568150a58e78021968b6c22bc28e9787b33496agwr} ioc_sdbuf_t;
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr/*
7568150a58e78021968b6c22bc28e9787b33496agwr * SMBFS ioctl codes
7568150a58e78021968b6c22bc28e9787b33496agwr *
7568150a58e78021968b6c22bc28e9787b33496agwr * We only need a couple of these, so (re)using some
7568150a58e78021968b6c22bc28e9787b33496agwr * FS-specific ioctl codes from sys/filio.h
7568150a58e78021968b6c22bc28e9787b33496agwr * Data for both is ioc_sdbuf_t
7568150a58e78021968b6c22bc28e9787b33496agwr */
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr#define SMBFSIO_GETSD _IO('f', 81)
7568150a58e78021968b6c22bc28e9787b33496agwr#define SMBFSIO_SETSD _IO('f', 82)
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr#ifdef __cplusplus
7568150a58e78021968b6c22bc28e9787b33496agwr}
7568150a58e78021968b6c22bc28e9787b33496agwr#endif
7568150a58e78021968b6c22bc28e9787b33496agwr
7568150a58e78021968b6c22bc28e9787b33496agwr#endif /* _SMBFS_IOCTL_H */