1160370Simp#-
2160370Simp# Copyright (c) 2006 M. Warner Losh
3160370Simp# All rights reserved.
4160370Simp#
5160370Simp# Redistribution and use in source and binary forms, with or without
6160370Simp# modification, are permitted provided that the following conditions
7160370Simp# are met:
8160370Simp# 1. Redistributions of source code must retain the above copyright
9160370Simp#    notice, this list of conditions and the following disclaimer.
10160370Simp# 2. Redistributions in binary form must reproduce the above copyright
11160370Simp#    notice, this list of conditions and the following disclaimer in the
12160370Simp#    documentation and/or other materials provided with the distribution.
13160370Simp#
14160370Simp# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15160370Simp# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16160370Simp# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17160370Simp# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18160370Simp# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19160370Simp# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20160370Simp# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21160370Simp# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22160370Simp# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23160370Simp# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24160370Simp# SUCH DAMAGE.
25160370Simp#
26160370Simp# $FreeBSD$
27160370Simp#
28160370Simp
29160370Simp#include <sys/bus.h>
30160370Simp#include <dev/spibus/spi.h>
31160370Simp
32160370SimpINTERFACE spibus;
33160370Simp
34160370Simp#
35160370Simp# Do a spi command
36160370Simp#
37160370SimpMETHOD int transfer {
38160370Simp	device_t dev;
39160370Simp	device_t child;
40160370Simp	struct spi_command *cmd;
41160370Simp};
42