nand_crc.h revision 1.1.4.2 1 1.1.4.2 rmind /* $NetBSD: nand_crc.h,v 1.1.4.2 2011/03/05 20:53:33 rmind Exp $ */
2 1.1.4.2 rmind
3 1.1.4.2 rmind /*-
4 1.1.4.2 rmind * Copyright (c) 2010 Department of Software Engineering,
5 1.1.4.2 rmind * University of Szeged, Hungary
6 1.1.4.2 rmind * Copyright (c) 2010 Adam Hoka <ahoka (at) NetBSD.org>
7 1.1.4.2 rmind * All rights reserved.
8 1.1.4.2 rmind *
9 1.1.4.2 rmind * This code is derived from software contributed to The NetBSD Foundation
10 1.1.4.2 rmind * by the Department of Software Engineering, University of Szeged, Hungary
11 1.1.4.2 rmind *
12 1.1.4.2 rmind * Redistribution and use in source and binary forms, with or without
13 1.1.4.2 rmind * modification, are permitted provided that the following conditions
14 1.1.4.2 rmind * are met:
15 1.1.4.2 rmind * 1. Redistributions of source code must retain the above copyright
16 1.1.4.2 rmind * notice, this list of conditions and the following disclaimer.
17 1.1.4.2 rmind * 2. Redistributions in binary form must reproduce the above copyright
18 1.1.4.2 rmind * notice, this list of conditions and the following disclaimer in the
19 1.1.4.2 rmind * documentation and/or other materials provided with the distribution.
20 1.1.4.2 rmind *
21 1.1.4.2 rmind * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 1.1.4.2 rmind * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 1.1.4.2 rmind * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 1.1.4.2 rmind * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 1.1.4.2 rmind * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 1.1.4.2 rmind * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 1.1.4.2 rmind * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28 1.1.4.2 rmind * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 1.1.4.2 rmind * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 1.1.4.2 rmind * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 1.1.4.2 rmind * SUCH DAMAGE.
32 1.1.4.2 rmind */
33 1.1.4.2 rmind
34 1.1.4.2 rmind #ifndef _NAND_CRC_H_
35 1.1.4.2 rmind #define _NAND_CRC_H_
36 1.1.4.2 rmind
37 1.1.4.2 rmind #include <sys/param.h>
38 1.1.4.2 rmind #include <sys/types.h>
39 1.1.4.2 rmind
40 1.1.4.2 rmind uint16_t nand_crc16(uint8_t *, size_t);
41 1.1.4.2 rmind
42 1.1.4.2 rmind #endif
43