ppcvar.h revision 157774
134355Sjb/*-
234355Sjb * Copyright (c) 1997-2000 Nicolas Souchu
351138Salfred * Copyright (c) 2001 Alcove - Nicolas Souchu
483652Speter * All rights reserved.
534355Sjb *
634355Sjb * Redistribution and use in source and binary forms, with or without
764002Speter * modification, are permitted provided that the following conditions
834355Sjb * are met:
934355Sjb * 1. Redistributions of source code must retain the above copyright
1034355Sjb *    notice, this list of conditions and the following disclaimer.
1134355Sjb * 2. Redistributions in binary form must reproduce the above copyright
1234355Sjb *    notice, this list of conditions and the following disclaimer in the
1334355Sjb *    documentation and/or other materials provided with the distribution.
1434355Sjb *
1534355Sjb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1634355Sjb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1734355Sjb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1834355Sjb * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1934355Sjb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2034355Sjb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2134355Sjb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2234355Sjb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2334355Sjb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2434355Sjb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2534355Sjb * SUCH DAMAGE.
2634355Sjb *
2734355Sjb * $FreeBSD: head/sys/dev/ppc/ppcvar.h 157774 2006-04-15 12:31:34Z iwasaki $
2834355Sjb *
2934355Sjb */
3034355Sjb
3134355Sjbint ppc_probe(device_t dev);
3234355Sjbint ppc_attach(device_t dev);
3334355Sjbint ppc_detach(device_t dev);
3434355Sjbint ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val);
3534355Sjb
3634355Sjbint ppc_read(device_t, char *, int, int);
3734355Sjbint ppc_write(device_t, char *, int, int);
3834355Sjb
3934355Sjbu_char ppc_io(device_t, int, u_char *, int, u_char);
4034355Sjbint ppc_exec_microseq(device_t, struct ppb_microseq **);
4134355Sjb
4234355Sjbint ppc_setup_intr(device_t, device_t, struct resource *, int,
4334355Sjb		void (*)(void *), void *, void **);
4434355Sjbint ppc_teardown_intr(device_t, device_t, struct resource *, void *);
4534355Sjbvoid ppc_reset_epp(device_t);
4634355Sjbvoid ppc_ecp_sync(device_t);
4734355Sjbint ppc_setmode(device_t, int);
4834355Sjb
4934355Sjbextern	devclass_t	ppc_devclass;
5034355Sjb