1*10602SLori.Alt@Sun.COM /* 2*10602SLori.Alt@Sun.COM * CDDL HEADER START 3*10602SLori.Alt@Sun.COM * 4*10602SLori.Alt@Sun.COM * The contents of this file are subject to the terms of the 5*10602SLori.Alt@Sun.COM * Common Development and Distribution License (the "License"). 6*10602SLori.Alt@Sun.COM * You may not use this file except in compliance with the License. 7*10602SLori.Alt@Sun.COM * 8*10602SLori.Alt@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*10602SLori.Alt@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*10602SLori.Alt@Sun.COM * See the License for the specific language governing permissions 11*10602SLori.Alt@Sun.COM * and limitations under the License. 12*10602SLori.Alt@Sun.COM * 13*10602SLori.Alt@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*10602SLori.Alt@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*10602SLori.Alt@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*10602SLori.Alt@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*10602SLori.Alt@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*10602SLori.Alt@Sun.COM * 19*10602SLori.Alt@Sun.COM * CDDL HEADER END 20*10602SLori.Alt@Sun.COM */ 21*10602SLori.Alt@Sun.COM /* 22*10602SLori.Alt@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*10602SLori.Alt@Sun.COM * Use is subject to license terms. 24*10602SLori.Alt@Sun.COM */ 25*10602SLori.Alt@Sun.COM 26*10602SLori.Alt@Sun.COM #ifndef _ZFS_FLETCHER_H 27*10602SLori.Alt@Sun.COM #define _ZFS_FLETCHER_H 28*10602SLori.Alt@Sun.COM 29*10602SLori.Alt@Sun.COM #include <sys/types.h> 30*10602SLori.Alt@Sun.COM #include <sys/spa.h> 31*10602SLori.Alt@Sun.COM 32*10602SLori.Alt@Sun.COM #ifdef __cplusplus 33*10602SLori.Alt@Sun.COM extern "C" { 34*10602SLori.Alt@Sun.COM #endif 35*10602SLori.Alt@Sun.COM 36*10602SLori.Alt@Sun.COM /* 37*10602SLori.Alt@Sun.COM * fletcher checksum functions 38*10602SLori.Alt@Sun.COM */ 39*10602SLori.Alt@Sun.COM 40*10602SLori.Alt@Sun.COM void fletcher_2_native(const void *, uint64_t, zio_cksum_t *); 41*10602SLori.Alt@Sun.COM void fletcher_2_byteswap(const void *, uint64_t, zio_cksum_t *); 42*10602SLori.Alt@Sun.COM void fletcher_4_native(const void *, uint64_t, zio_cksum_t *); 43*10602SLori.Alt@Sun.COM void fletcher_4_byteswap(const void *, uint64_t, zio_cksum_t *); 44*10602SLori.Alt@Sun.COM void fletcher_4_incremental_native(const void *, uint64_t, 45*10602SLori.Alt@Sun.COM zio_cksum_t *); 46*10602SLori.Alt@Sun.COM void fletcher_4_incremental_byteswap(const void *, uint64_t, 47*10602SLori.Alt@Sun.COM zio_cksum_t *); 48*10602SLori.Alt@Sun.COM 49*10602SLori.Alt@Sun.COM #ifdef __cplusplus 50*10602SLori.Alt@Sun.COM } 51*10602SLori.Alt@Sun.COM #endif 52*10602SLori.Alt@Sun.COM 53*10602SLori.Alt@Sun.COM #endif /* _ZFS_FLETCHER_H */ 54