summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/Kconfig
AgeCommit message (Expand)Author
2019-07-15docs: driver-api: add a series of orphaned documentsMauro Carvalho Chehab
2019-05-21treewide: Add SPDX license identifier - Makefile/KconfigThomas Gleixner
2019-04-19Make anon_inodes unconditionalDavid Howells
2018-09-25drivers/vfio: Allow type-1 IOMMU instantiation with all ARM/ARM64 IOMMUsGeert Uytterhoeven
2017-02-08vfio: Fix build break when SPAPR_TCE_IOMMU=nMichael Ellerman
2016-11-17vfio: Mediated device Core driverKirti Wankhede
2015-12-21vfio: Include No-IOMMU modeAlex Williamson
2015-12-04Revert: "vfio: Include No-IOMMU mode"Alex Williamson
2015-11-13Merge tag 'vfio-v4.4-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds
2015-11-04vfio: Include No-IOMMU modeAlex Williamson
2015-10-01vfio: Register/unregister irq_bypass_producerFeng Wu
2015-05-29drivers/vfio: Allow type-1 IOMMU instantiation on top of an ARM SMMUv3Will Deacon
2015-03-17vfio: Split virqfd into a separate module for vfio bus driversAlex Williamson
2015-03-16vfio: platform: add the VFIO PLATFORM module to KconfigAntonios Motakis
2014-11-14drivers/vfio: allow type-1 IOMMU instantiation on top of an ARM SMMUWill Deacon
2014-11-07vfio: make vfio run on s390Frank Blaschka
2014-08-08drivers/vfio: Fix EEH build errorGavin Shan
2014-03-27vfio: always select ANON_INODESArnd Bergmann
2013-06-20powerpc/vfio: Enable on pSeries platformAlexey Kardashevskiy
2013-06-20powerpc/vfio: Implement IOMMU driver for VFIOAlexey Kardashevskiy
2012-07-31vfio: Add PCI device driverAlex Williamson
2012-07-31vfio: Type1 IOMMU implementationAlex Williamson
2012-07-31vfio: VFIO coreAlex Williamson
g.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * collate.h - Defines for NTFS kernel collation handling.  Part of the
 *	       Linux-NTFS project.
 *
 * Copyright (c) 2004 Anton Altaparmakov
 *
 * This program/include file is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as published
 * by the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program/include file is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program (in the main directory of the Linux-NTFS
 * distribution in the file COPYING); if not, write to the Free Software
 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef _LINUX_NTFS_COLLATE_H
#define _LINUX_NTFS_COLLATE_H

#include "types.h"
#include "volume.h"

static inline bool ntfs_is_collation_rule_supported(COLLATION_RULE cr) {
	int i;

	/*
	 * FIXME:  At the moment we only support COLLATION_BINARY and
	 * COLLATION_NTOFS_ULONG, so we return false for everything else for
	 * now.
	 */
	if (unlikely(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG))
		return false;
	i = le32_to_cpu(cr);
	if (likely(((i >= 0) && (i <= 0x02)) ||
			((i >= 0x10) && (i <= 0x13))))
		return true;
	return false;
}

extern int ntfs_collate(ntfs_volume *vol, COLLATION_RULE cr,
		const void *data1, const int data1_len,
		const void *data2, const int data2_len);

#endif /* _LINUX_NTFS_COLLATE_H */