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 ``AS IS'' AND ANY EXPRESS OR
15184299Snwhitehorn * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16184299Snwhitehorn * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17184299Snwhitehorn * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18184299Snwhitehorn * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19184299Snwhitehorn * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20184299Snwhitehorn * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21184299Snwhitehorn * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22184299Snwhitehorn * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23184299Snwhitehorn * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24184299Snwhitehorn *
25184299Snwhitehorn * $FreeBSD$
26184299Snwhitehorn */
27184299Snwhitehorn
28184299Snwhitehorn#ifndef	_POWERPC_ADBVAR_H_
29184299Snwhitehorn#define	_POWERPC_ADBVAR_H_
30184299Snwhitehorn
31184299Snwhitehorn#include "adb.h"
32184299Snwhitehorn
33184299Snwhitehornenum {
34184299Snwhitehorn	ADB_COMMAND_BUS_RESET = 0
35184299Snwhitehorn};
36184299Snwhitehorn
37184299Snwhitehorn
38184299Snwhitehornstruct adb_softc {
39184299Snwhitehorn	device_t	sc_dev;
40184299Snwhitehorn	device_t	parent;
41184299Snwhitehorn
42184473Snwhitehorn	struct intr_config_hook enum_hook;
43184299Snwhitehorn
44184299Snwhitehorn	volatile int 	sync_packet;
45184299Snwhitehorn	volatile int	packet_reply;
46184299Snwhitehorn
47184299Snwhitehorn	uint16_t	autopoll_mask;
48184299Snwhitehorn	uint8_t		syncreg[8];
49184299Snwhitehorn
50184299Snwhitehorn	device_t	children[16];
51184299Snwhitehorn	struct adb_devinfo devinfo[16];
52184299Snwhitehorn};
53184299Snwhitehorn
54184299Snwhitehorn#endif /* _POWERPC_ADBVAR_H_ */
55