810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski/*
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * CDDL HEADER START
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski *
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * The contents of this file are subject to the terms of the
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * Common Development and Distribution License (the "License").
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * You may not use this file except in compliance with the License.
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski *
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * or http://www.opensolaris.org/os/licensing.
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * See the License for the specific language governing permissions
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * and limitations under the License.
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski *
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * When distributing Covered Code, include this CDDL HEADER in each
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * If applicable, add the following below this CDDL HEADER, with the
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * fields enclosed by brackets "[]" replaced with your own identifying
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * information: Portions Copyright [yyyy] [name of copyright owner]
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski *
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * CDDL HEADER END
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski */
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski/*
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski * Copyright (c) 2013, Joyent, Inc. All rights reserved.
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski */
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#ifndef _SYS_VDEV_RAIDZ_H
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#define _SYS_VDEV_RAIDZ_H
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#include <sys/vdev.h>
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#include <sys/semaphore.h>
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#ifdef _KERNEL
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#include <sys/ddi.h>
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#include <sys/sunldi.h>
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#include <sys/sunddi.h>
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#endif
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#ifdef __cplusplus
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewskiextern "C" {
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#endif
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#ifdef _KERNEL
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewskiextern int vdev_raidz_physio(vdev_t *,
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski caddr_t, size_t, uint64_t, uint64_t, boolean_t, boolean_t);
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#endif
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#ifdef __cplusplus
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski}
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#endif
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski
810e43b2eb0e320833671a403fdda51917e8b036Bill Pijewski#endif /* _SYS_VDEV_RAIDZ_H */