1b4dbc599SNathan Whitehorn /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 4b4dbc599SNathan Whitehorn * Copyright (C) 2008 Nathan Whitehorn 5b4dbc599SNathan Whitehorn * All rights reserved. 6b4dbc599SNathan Whitehorn * 7b4dbc599SNathan Whitehorn * Redistribution and use in source and binary forms, with or without 8b4dbc599SNathan Whitehorn * modification, are permitted provided that the following conditions 9b4dbc599SNathan Whitehorn * are met: 10b4dbc599SNathan Whitehorn * 1. Redistributions of source code must retain the above copyright 11b4dbc599SNathan Whitehorn * notice, this list of conditions and the following disclaimer. 12b4dbc599SNathan Whitehorn * 2. Redistributions in binary form must reproduce the above copyright 13b4dbc599SNathan Whitehorn * notice, this list of conditions and the following disclaimer in the 14b4dbc599SNathan Whitehorn * documentation and/or other materials provided with the distribution. 15b4dbc599SNathan Whitehorn * 16b4dbc599SNathan Whitehorn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17b4dbc599SNathan Whitehorn * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18b4dbc599SNathan Whitehorn * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19b4dbc599SNathan Whitehorn * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20b4dbc599SNathan Whitehorn * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21b4dbc599SNathan Whitehorn * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22b4dbc599SNathan Whitehorn * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23b4dbc599SNathan Whitehorn * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24b4dbc599SNathan Whitehorn * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25b4dbc599SNathan Whitehorn * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26b4dbc599SNathan Whitehorn */ 27b4dbc599SNathan Whitehorn 28b4dbc599SNathan Whitehorn #ifndef _POWERPC_ADBVAR_H_ 29b4dbc599SNathan Whitehorn #define _POWERPC_ADBVAR_H_ 30b4dbc599SNathan Whitehorn 31b4dbc599SNathan Whitehorn #include "adb.h" 32b4dbc599SNathan Whitehorn 33b4dbc599SNathan Whitehorn enum { 34b4dbc599SNathan Whitehorn ADB_COMMAND_BUS_RESET = 0 35b4dbc599SNathan Whitehorn }; 36b4dbc599SNathan Whitehorn 37b4dbc599SNathan Whitehorn struct adb_softc { 38b4dbc599SNathan Whitehorn device_t sc_dev; 39b4dbc599SNathan Whitehorn device_t parent; 40b4dbc599SNathan Whitehorn 4101418697SNathan Whitehorn struct intr_config_hook enum_hook; 42b4dbc599SNathan Whitehorn 43b4dbc599SNathan Whitehorn volatile int sync_packet; 44b4dbc599SNathan Whitehorn volatile int packet_reply; 45b4dbc599SNathan Whitehorn 46b4dbc599SNathan Whitehorn uint16_t autopoll_mask; 47b4dbc599SNathan Whitehorn uint8_t syncreg[8]; 48b4dbc599SNathan Whitehorn 49b4dbc599SNathan Whitehorn device_t children[16]; 50b4dbc599SNathan Whitehorn struct adb_devinfo devinfo[16]; 51b4dbc599SNathan Whitehorn }; 52b4dbc599SNathan Whitehorn 53b4dbc599SNathan Whitehorn #endif /* _POWERPC_ADBVAR_H_ */ 54