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