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 ``AS IS'' AND ANY EXPRESS OR 15b4dbc599SNathan Whitehorn * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16b4dbc599SNathan Whitehorn * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17b4dbc599SNathan Whitehorn * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 18b4dbc599SNathan Whitehorn * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19b4dbc599SNathan Whitehorn * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 20b4dbc599SNathan Whitehorn * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 21b4dbc599SNathan Whitehorn * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 22b4dbc599SNathan Whitehorn * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23b4dbc599SNathan Whitehorn * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24b4dbc599SNathan Whitehorn * 25b4dbc599SNathan Whitehorn * $FreeBSD$ 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 38b4dbc599SNathan Whitehorn struct adb_softc { 39b4dbc599SNathan Whitehorn device_t sc_dev; 40b4dbc599SNathan Whitehorn device_t parent; 41b4dbc599SNathan Whitehorn 4201418697SNathan Whitehorn struct intr_config_hook enum_hook; 43b4dbc599SNathan Whitehorn struct mtx sc_sync_mtx; 44b4dbc599SNathan Whitehorn 45b4dbc599SNathan Whitehorn volatile int sync_packet; 46b4dbc599SNathan Whitehorn volatile int packet_reply; 47b4dbc599SNathan Whitehorn 48b4dbc599SNathan Whitehorn uint16_t autopoll_mask; 49b4dbc599SNathan Whitehorn uint8_t syncreg[8]; 50b4dbc599SNathan Whitehorn 51b4dbc599SNathan Whitehorn device_t children[16]; 52b4dbc599SNathan Whitehorn struct adb_devinfo devinfo[16]; 53b4dbc599SNathan Whitehorn }; 54b4dbc599SNathan Whitehorn 55b4dbc599SNathan Whitehorn #endif /* _POWERPC_ADBVAR_H_ */ 56