192f282eaSDoug Ambrisko /*- 24d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 492f282eaSDoug Ambrisko * Copyright (c) 1997-2000 Nicolas Souchu 592f282eaSDoug Ambrisko * Copyright (c) 2001 Alcove - Nicolas Souchu 692f282eaSDoug Ambrisko * All rights reserved. 792f282eaSDoug Ambrisko * 892f282eaSDoug Ambrisko * Redistribution and use in source and binary forms, with or without 992f282eaSDoug Ambrisko * modification, are permitted provided that the following conditions 1092f282eaSDoug Ambrisko * are met: 1192f282eaSDoug Ambrisko * 1. Redistributions of source code must retain the above copyright 1292f282eaSDoug Ambrisko * notice, this list of conditions and the following disclaimer. 1392f282eaSDoug Ambrisko * 2. Redistributions in binary form must reproduce the above copyright 1492f282eaSDoug Ambrisko * notice, this list of conditions and the following disclaimer in the 1592f282eaSDoug Ambrisko * documentation and/or other materials provided with the distribution. 1692f282eaSDoug Ambrisko * 1792f282eaSDoug Ambrisko * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1892f282eaSDoug Ambrisko * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1992f282eaSDoug Ambrisko * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2092f282eaSDoug Ambrisko * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2192f282eaSDoug Ambrisko * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2292f282eaSDoug Ambrisko * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2392f282eaSDoug Ambrisko * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2492f282eaSDoug Ambrisko * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2592f282eaSDoug Ambrisko * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2692f282eaSDoug Ambrisko * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2792f282eaSDoug Ambrisko * SUCH DAMAGE. 2892f282eaSDoug Ambrisko * 2992f282eaSDoug Ambrisko */ 3092f282eaSDoug Ambrisko 31cea4d875SMarcel Moolenaar int ppc_probe(device_t dev, int rid); 3292f282eaSDoug Ambrisko int ppc_attach(device_t dev); 33858a52f4SMitsuru IWASAKI int ppc_detach(device_t dev); 3492f282eaSDoug Ambrisko int ppc_read_ivar(device_t bus, device_t dev, int index, uintptr_t *val); 352067d312SJohn Baldwin int ppc_write_ivar(device_t bus, device_t dev, int index, uintptr_t val); 3692f282eaSDoug Ambrisko 3792f282eaSDoug Ambrisko int ppc_read(device_t, char *, int, int); 3892f282eaSDoug Ambrisko int ppc_write(device_t, char *, int, int); 3992f282eaSDoug Ambrisko 4092f282eaSDoug Ambrisko u_char ppc_io(device_t, int, u_char *, int, u_char); 4192f282eaSDoug Ambrisko int ppc_exec_microseq(device_t, struct ppb_microseq **); 4292f282eaSDoug Ambrisko 43ca3d3795SJohn Baldwin struct resource *ppc_alloc_resource(device_t bus, device_t child, int type, 442dd1bdf1SJustin Hibbits int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags); 45*9dbf5b0eSJohn Baldwin int ppc_release_resource(device_t bus, device_t child, struct resource *r); 463fd85273SWarner Losh int ppc_reset_epp(device_t); 473fd85273SWarner Losh int ppc_ecp_sync(device_t); 4892f282eaSDoug Ambrisko int ppc_setmode(device_t, int); 4992f282eaSDoug Ambrisko 50cea4d875SMarcel Moolenaar extern const char ppc_driver_name[]; 51