xref: /netbsd-src/sys/fs/ntfs/ntfs_compr.h (revision 4bffed72de1153c35e4d45b223abcf74ea22e699)
1*4bffed72Schristos /*	$NetBSD: ntfs_compr.h,v 1.2 2005/12/03 17:34:43 christos Exp $	*/
29accf4dfSjdolecek 
39accf4dfSjdolecek /*-
49accf4dfSjdolecek  * Copyright (c) 1998, 1999 Semen Ustimenko
59accf4dfSjdolecek  * All rights reserved.
69accf4dfSjdolecek  *
79accf4dfSjdolecek  * Redistribution and use in source and binary forms, with or without
89accf4dfSjdolecek  * modification, are permitted provided that the following conditions
99accf4dfSjdolecek  * are met:
109accf4dfSjdolecek  * 1. Redistributions of source code must retain the above copyright
119accf4dfSjdolecek  *    notice, this list of conditions and the following disclaimer.
129accf4dfSjdolecek  * 2. Redistributions in binary form must reproduce the above copyright
139accf4dfSjdolecek  *    notice, this list of conditions and the following disclaimer in the
149accf4dfSjdolecek  *    documentation and/or other materials provided with the distribution.
159accf4dfSjdolecek  *
169accf4dfSjdolecek  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
179accf4dfSjdolecek  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
189accf4dfSjdolecek  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
199accf4dfSjdolecek  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
209accf4dfSjdolecek  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
219accf4dfSjdolecek  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
229accf4dfSjdolecek  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
239accf4dfSjdolecek  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
249accf4dfSjdolecek  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
259accf4dfSjdolecek  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
269accf4dfSjdolecek  * SUCH DAMAGE.
279accf4dfSjdolecek  *
289accf4dfSjdolecek  *	Id: ntfs_compr.h,v 1.4 1999/05/12 09:42:55 semenu Exp
299accf4dfSjdolecek  */
30*4bffed72Schristos #if !defined(_KERNEL)
31*4bffed72Schristos #error not supposed to be exposed to userland.
32*4bffed72Schristos #endif
339accf4dfSjdolecek 
349accf4dfSjdolecek #define NTFS_COMPBLOCK_SIZE	0x1000
359accf4dfSjdolecek #define NTFS_COMPUNIT_CL	16
369accf4dfSjdolecek 
379accf4dfSjdolecek int	ntfs_uncompblock(u_int8_t *, u_int8_t *);
389accf4dfSjdolecek int	ntfs_uncompunit(struct ntfsmount *, u_int8_t *, u_int8_t *);
39