1219089Spjd/* 2219089Spjd * CDDL HEADER START 3219089Spjd * 4219089Spjd * The contents of this file are subject to the terms of the 5219089Spjd * Common Development and Distribution License (the "License"). 6219089Spjd * You may not use this file except in compliance with the License. 7219089Spjd * 8219089Spjd * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9219089Spjd * or http://www.opensolaris.org/os/licensing. 10219089Spjd * See the License for the specific language governing permissions 11219089Spjd * and limitations under the License. 12219089Spjd * 13219089Spjd * When distributing Covered Code, include this CDDL HEADER in each 14219089Spjd * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15219089Spjd * If applicable, add the following below this CDDL HEADER, with the 16219089Spjd * fields enclosed by brackets "[]" replaced with your own identifying 17219089Spjd * information: Portions Copyright [yyyy] [name of copyright owner] 18219089Spjd * 19219089Spjd * CDDL HEADER END 20219089Spjd */ 21219089Spjd/* 22219089Spjd * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23219089Spjd * Use is subject to license terms. 24219089Spjd */ 25219089Spjd 26219089Spjd#ifndef _ZFS_FLETCHER_H 27219089Spjd#define _ZFS_FLETCHER_H 28219089Spjd 29219089Spjd#include <sys/types.h> 30219089Spjd#include <sys/spa.h> 31219089Spjd 32219089Spjd#ifdef __cplusplus 33219089Spjdextern "C" { 34219089Spjd#endif 35219089Spjd 36219089Spjd/* 37219089Spjd * fletcher checksum functions 38219089Spjd */ 39219089Spjd 40219089Spjdvoid fletcher_2_native(const void *, uint64_t, zio_cksum_t *); 41219089Spjdvoid fletcher_2_byteswap(const void *, uint64_t, zio_cksum_t *); 42219089Spjdvoid fletcher_4_native(const void *, uint64_t, zio_cksum_t *); 43219089Spjdvoid fletcher_4_byteswap(const void *, uint64_t, zio_cksum_t *); 44219089Spjdvoid fletcher_4_incremental_native(const void *, uint64_t, 45219089Spjd zio_cksum_t *); 46219089Spjdvoid fletcher_4_incremental_byteswap(const void *, uint64_t, 47219089Spjd zio_cksum_t *); 48219089Spjd 49219089Spjd#ifdef __cplusplus 50219089Spjd} 51219089Spjd#endif 52219089Spjd 53219089Spjd#endif /* _ZFS_FLETCHER_H */ 54