[BACK]Return to common.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / modules / ufetchstore

File: [cvs.NetBSD.org] / src / tests / modules / ufetchstore / common.h (download)

Revision 1.1, Mon Apr 15 23:41:23 2019 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, HEAD
Branch point for: phil-wifi

Re-arrange the ufetchstore tests to look like the other ones.

/*	$NetBSD: common.h,v 1.1 2019/04/15 23:41:23 christos Exp $	*/

/*-
 * Copyright (c) 2019 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by Jason R. Thorpe.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef _UFETCHSTORE_TESTER_COMMON_H_
#define	_UFETCHSTORE_TESTER_COMMON_H_

#define	OP_LOAD		0
#define	OP_STORE	1
#define	OP_CAS		2

struct ufetchstore_test_args {
	int		pointer_size;
	int		test_op;
	int		size;
	int		fetchstore_error;
	uint64_t	uaddr64;
	union {
		uint8_t  val8;
		uint16_t val16;
		uint32_t val32;
		uint64_t val64;
	};
	union {
		uint8_t  ea_val8;
		uint16_t ea_val16;
		uint32_t ea_val32;
		uint64_t ea_val64;
	};
};

#endif /* _UFETCHSTORE_TESTER_COMMON_H_ */