1118294Sambrisko/*- 2118294Sambrisko * Copyright (c) 1997-2000 Nicolas Souchu 3118294Sambrisko * Copyright (c) 2001 Alcove - Nicolas Souchu 4118294Sambrisko * All rights reserved. 5118294Sambrisko * 6118294Sambrisko * Redistribution and use in source and binary forms, with or without 7118294Sambrisko * modification, are permitted provided that the following conditions 8118294Sambrisko * are met: 9118294Sambrisko * 1. Redistributions of source code must retain the above copyright 10118294Sambrisko * notice, this list of conditions and the following disclaimer. 11118294Sambrisko * 2. Redistributions in binary form must reproduce the above copyright 12118294Sambrisko * notice, this list of conditions and the following disclaimer in the 13118294Sambrisko * documentation and/or other materials provided with the distribution. 14118294Sambrisko * 15118294Sambrisko * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16118294Sambrisko * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17118294Sambrisko * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18118294Sambrisko * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19118294Sambrisko * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20118294Sambrisko * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21118294Sambrisko * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22118294Sambrisko * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23118294Sambrisko * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24118294Sambrisko * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25118294Sambrisko * SUCH DAMAGE. 26118294Sambrisko * 27118294Sambrisko * $FreeBSD: releng/11.0/sys/dev/ppc/ppcvar.h 294883 2016-01-27 02:23:54Z jhibbits $ 28118294Sambrisko * 29118294Sambrisko */ 30118294Sambrisko 31158005Smarcelint ppc_probe(device_t dev, int rid); 32118294Sambriskoint ppc_attach(device_t dev); 33157774Siwasakiint ppc_detach(device_t dev); 34118294Sambriskoint ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val); 35187576Sjhbint ppc_write_ivar(device_t bus, device_t dev, int index, uintptr_t val); 36118294Sambrisko 37118294Sambriskoint ppc_read(device_t, char *, int, int); 38118294Sambriskoint ppc_write(device_t, char *, int, int); 39118294Sambrisko 40118294Sambriskou_char ppc_io(device_t, int, u_char *, int, u_char); 41118294Sambriskoint ppc_exec_microseq(device_t, struct ppb_microseq **); 42118294Sambrisko 43183053Sjhbstruct resource *ppc_alloc_resource(device_t bus, device_t child, int type, 44294883Sjhibbits int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags); 45183053Sjhbint ppc_release_resource(device_t bus, device_t child, int type, int rid, 46183053Sjhb struct resource *r); 47188173Simpint ppc_reset_epp(device_t); 48188173Simpint ppc_ecp_sync(device_t); 49118294Sambriskoint ppc_setmode(device_t, int); 50118294Sambrisko 51158005Smarcelextern devclass_t ppc_devclass; 52158005Smarcelextern const char ppc_driver_name[]; 53