1184299Snwhitehorn#-
2184299Snwhitehorn# Copyright (c) 2008 Nathan Whitehorn
3184299Snwhitehorn# All rights reserved.
4184299Snwhitehorn#
5184299Snwhitehorn# Redistribution and use in source and binary forms, with or without
6184299Snwhitehorn# modification, are permitted provided that the following conditions
7184299Snwhitehorn# are met:
8184299Snwhitehorn# 1. Redistributions of source code must retain the above copyright
9184299Snwhitehorn#    notice, this list of conditions and the following disclaimer.
10184299Snwhitehorn# 2. Redistributions in binary form must reproduce the above copyright
11184299Snwhitehorn#    notice, this list of conditions and the following disclaimer in the
12184299Snwhitehorn#    documentation and/or other materials provided with the distribution.
13184299Snwhitehorn#
14184299Snwhitehorn# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15184299Snwhitehorn# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16184299Snwhitehorn# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17184299Snwhitehorn# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18184299Snwhitehorn# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19184299Snwhitehorn# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20184299Snwhitehorn# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21184299Snwhitehorn# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22184299Snwhitehorn# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23184299Snwhitehorn# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24184299Snwhitehorn# SUCH DAMAGE.
25184299Snwhitehorn#
26184299Snwhitehorn# $FreeBSD$
27184299Snwhitehorn#
28184299Snwhitehorn
29184299Snwhitehorn#include <sys/bus.h>
30184299Snwhitehorn
31184299Snwhitehorn#include <dev/adb/adb.h>
32184299Snwhitehorn
33184299SnwhitehornINTERFACE adb_hb;
34184299Snwhitehorn
35184299Snwhitehorn#
36184299Snwhitehorn# Bus level operations. These are used by the ADB bus manager, and are
37184299Snwhitehorn# required to inplement an ADB interface.
38184299Snwhitehorn#
39184299Snwhitehorn
40184299SnwhitehornMETHOD u_int send_raw_packet {
41184299Snwhitehorn	device_t dev;
42184299Snwhitehorn	u_char command_byte;
43184299Snwhitehorn
44184299Snwhitehorn	int len;
45184299Snwhitehorn	u_char *data;
46184299Snwhitehorn	u_char poll;
47184299Snwhitehorn};
48184299Snwhitehorn
49184299SnwhitehornMETHOD u_int controller_poll {
50184299Snwhitehorn	device_t dev;
51184299Snwhitehorn};
52184299Snwhitehorn
53184299SnwhitehornMETHOD u_int set_autopoll_mask {
54184299Snwhitehorn	device_t dev;
55184299Snwhitehorn
56184299Snwhitehorn	uint16_t mask;
57184299Snwhitehorn};
58184299Snwhitehorn
59