1*87ddecb9Smickey /* $OpenBSD: ntfs_compr.h,v 1.2 2003/05/20 03:23:11 mickey Exp $ */ 226f3deacStedu /* $NetBSD: ntfs_compr.h,v 1.1 2002/12/23 17:38:32 jdolecek Exp $ */ 326f3deacStedu 426f3deacStedu /*- 526f3deacStedu * Copyright (c) 1998, 1999 Semen Ustimenko 626f3deacStedu * All rights reserved. 726f3deacStedu * 826f3deacStedu * Redistribution and use in source and binary forms, with or without 926f3deacStedu * modification, are permitted provided that the following conditions 1026f3deacStedu * are met: 1126f3deacStedu * 1. Redistributions of source code must retain the above copyright 1226f3deacStedu * notice, this list of conditions and the following disclaimer. 1326f3deacStedu * 2. Redistributions in binary form must reproduce the above copyright 1426f3deacStedu * notice, this list of conditions and the following disclaimer in the 1526f3deacStedu * documentation and/or other materials provided with the distribution. 1626f3deacStedu * 1726f3deacStedu * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1826f3deacStedu * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1926f3deacStedu * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2026f3deacStedu * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2126f3deacStedu * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2226f3deacStedu * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2326f3deacStedu * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2426f3deacStedu * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2526f3deacStedu * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2626f3deacStedu * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2726f3deacStedu * SUCH DAMAGE. 2826f3deacStedu * 2926f3deacStedu * Id: ntfs_compr.h,v 1.4 1999/05/12 09:42:55 semenu Exp 3026f3deacStedu */ 3126f3deacStedu 3226f3deacStedu #define NTFS_COMPBLOCK_SIZE 0x1000 3326f3deacStedu #define NTFS_COMPUNIT_CL 16 3426f3deacStedu 3526f3deacStedu int ntfs_uncompblock(u_int8_t *, u_int8_t *); 3626f3deacStedu int ntfs_uncompunit(struct ntfsmount *, u_int8_t *, u_int8_t *); 37