cfictl.h revision 184251
1184251Smarcel/*-
2184251Smarcel * Copyright (c) 2007, Juniper Networks, Inc.
3184251Smarcel * All rights reserved.
4184251Smarcel *
5184251Smarcel * Redistribution and use in source and binary forms, with or without
6184251Smarcel * modification, are permitted provided that the following conditions
7184251Smarcel * are met:
8184251Smarcel * 1. Redistributions of source code must retain the above copyright
9184251Smarcel *    notice, this list of conditions and the following disclaimer.
10184251Smarcel * 2. Redistributions in binary form must reproduce the above copyright
11184251Smarcel *    notice, this list of conditions and the following disclaimer in the
12184251Smarcel *    documentation and/or other materials provided with the distribution.
13184251Smarcel * 3. Neither the name of the author nor the names of any co-contributors
14184251Smarcel *    may be used to endorse or promote products derived from this software
15184251Smarcel *    without specific prior written permission.
16184251Smarcel *
17184251Smarcel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18184251Smarcel * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19184251Smarcel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20184251Smarcel * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
21184251Smarcel * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22184251Smarcel * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23184251Smarcel * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24184251Smarcel * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25184251Smarcel * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26184251Smarcel * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27184251Smarcel * THE POSSIBILITY OF SUCH DAMAGE.
28184251Smarcel *
29184251Smarcel * $FreeBSD: head/sys/sys/cfictl.h 184251 2008-10-25 06:18:12Z marcel $
30184251Smarcel */
31184251Smarcel
32184251Smarcel#ifndef _SYS_CFICTL_H_
33184251Smarcel#define _SYS_CFICTL_H_
34184251Smarcel
35184251Smarcel/*
36184251Smarcel * Allow reading of the CFI query structure.
37184251Smarcel */
38184251Smarcel
39184251Smarcelstruct cfiocqry {
40184251Smarcel	unsigned long	offset;
41184251Smarcel	unsigned long	count;
42184251Smarcel	u_char		*buffer;
43184251Smarcel};
44184251Smarcel
45184251Smarcel#define	CFIOCQRY	_IOWR('q', 0, struct cfiocqry)
46184251Smarcel
47184251Smarcel#endif	/* _SYS_CFICTL_H_ */
48