adbvar.h revision 225736
1169695Skan/*- 2169695Skan * Copyright (C) 2008 Nathan Whitehorn 3169695Skan * All rights reserved. 4169695Skan * 5169695Skan * Redistribution and use in source and binary forms, with or without 6169695Skan * modification, are permitted provided that the following conditions 7169695Skan * are met: 8169695Skan * 1. Redistributions of source code must retain the above copyright 9169695Skan * notice, this list of conditions and the following disclaimer. 10169695Skan * 2. Redistributions in binary form must reproduce the above copyright 11169695Skan * notice, this list of conditions and the following disclaimer in the 12169695Skan * documentation and/or other materials provided with the distribution. 13169695Skan * 14169695Skan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15169695Skan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16169695Skan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17169695Skan * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 18169695Skan * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19169695Skan * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 20169695Skan * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 21169695Skan * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 22169695Skan * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23169695Skan * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24169695Skan * 25169695Skan * $FreeBSD: stable/9/sys/dev/adb/adbvar.h 185724 2008-12-06 23:26:02Z nwhitehorn $ 26169695Skan */ 27169695Skan 28169695Skan#ifndef _POWERPC_ADBVAR_H_ 29169695Skan#define _POWERPC_ADBVAR_H_ 30169695Skan 31169695Skan#include "adb.h" 32169695Skan 33169695Skanenum { 34169695Skan ADB_COMMAND_BUS_RESET = 0 35169695Skan}; 36169695Skan 37 38struct adb_softc { 39 device_t sc_dev; 40 device_t parent; 41 42 struct intr_config_hook enum_hook; 43 44 volatile int sync_packet; 45 volatile int packet_reply; 46 47 uint16_t autopoll_mask; 48 uint8_t syncreg[8]; 49 50 device_t children[16]; 51 struct adb_devinfo devinfo[16]; 52}; 53 54#endif /* _POWERPC_ADBVAR_H_ */ 55