1b4dbc599SNathan Whitehorn#- 2b4dbc599SNathan Whitehorn# Copyright (c) 2008 Nathan Whitehorn 3b4dbc599SNathan Whitehorn# All rights reserved. 4b4dbc599SNathan Whitehorn# 5b4dbc599SNathan Whitehorn# Redistribution and use in source and binary forms, with or without 6b4dbc599SNathan Whitehorn# modification, are permitted provided that the following conditions 7b4dbc599SNathan Whitehorn# are met: 8b4dbc599SNathan Whitehorn# 1. Redistributions of source code must retain the above copyright 9b4dbc599SNathan Whitehorn# notice, this list of conditions and the following disclaimer. 10b4dbc599SNathan Whitehorn# 2. Redistributions in binary form must reproduce the above copyright 11b4dbc599SNathan Whitehorn# notice, this list of conditions and the following disclaimer in the 12b4dbc599SNathan Whitehorn# documentation and/or other materials provided with the distribution. 13b4dbc599SNathan Whitehorn# 14b4dbc599SNathan Whitehorn# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15b4dbc599SNathan Whitehorn# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16b4dbc599SNathan Whitehorn# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17b4dbc599SNathan Whitehorn# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18b4dbc599SNathan Whitehorn# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19b4dbc599SNathan Whitehorn# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20b4dbc599SNathan Whitehorn# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21b4dbc599SNathan Whitehorn# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22b4dbc599SNathan Whitehorn# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23b4dbc599SNathan Whitehorn# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24b4dbc599SNathan Whitehorn# SUCH DAMAGE. 25b4dbc599SNathan Whitehorn# 26b4dbc599SNathan Whitehorn# 27b4dbc599SNathan Whitehorn 28b4dbc599SNathan Whitehorn#include <sys/bus.h> 29b4dbc599SNathan Whitehorn 30b4dbc599SNathan Whitehorn#include <dev/adb/adb.h> 31b4dbc599SNathan Whitehorn 32b4dbc599SNathan WhitehornINTERFACE adb_hb; 33b4dbc599SNathan Whitehorn 34b4dbc599SNathan Whitehorn# 35b4dbc599SNathan Whitehorn# Bus level operations. These are used by the ADB bus manager, and are 36b4dbc599SNathan Whitehorn# required to inplement an ADB interface. 37b4dbc599SNathan Whitehorn# 38b4dbc599SNathan Whitehorn 39b4dbc599SNathan WhitehornMETHOD u_int send_raw_packet { 40b4dbc599SNathan Whitehorn device_t dev; 41b4dbc599SNathan Whitehorn u_char command_byte; 42b4dbc599SNathan Whitehorn 43b4dbc599SNathan Whitehorn int len; 44b4dbc599SNathan Whitehorn u_char *data; 45b4dbc599SNathan Whitehorn u_char poll; 46b4dbc599SNathan Whitehorn}; 47b4dbc599SNathan Whitehorn 48b4dbc599SNathan WhitehornMETHOD u_int controller_poll { 49b4dbc599SNathan Whitehorn device_t dev; 50b4dbc599SNathan Whitehorn}; 51b4dbc599SNathan Whitehorn 52b4dbc599SNathan WhitehornMETHOD u_int set_autopoll_mask { 53b4dbc599SNathan Whitehorn device_t dev; 54b4dbc599SNathan Whitehorn 55b4dbc599SNathan Whitehorn uint16_t mask; 56b4dbc599SNathan Whitehorn}; 57b4dbc599SNathan Whitehorn 58