1*ce099b40Smartin /* $NetBSD: plumvar.h,v 1.3 2008/04/28 20:23:21 martin Exp $ */ 29a758aabSuch 358f851eeSuch /*- 458f851eeSuch * Copyright (c) 1999 The NetBSD Foundation, Inc. 59a758aabSuch * All rights reserved. 69a758aabSuch * 758f851eeSuch * This code is derived from software contributed to The NetBSD Foundation 858f851eeSuch * by UCHIYAMA Yasushi. 958f851eeSuch * 109a758aabSuch * Redistribution and use in source and binary forms, with or without 119a758aabSuch * modification, are permitted provided that the following conditions 129a758aabSuch * are met: 139a758aabSuch * 1. Redistributions of source code must retain the above copyright 149a758aabSuch * notice, this list of conditions and the following disclaimer. 1558f851eeSuch * 2. Redistributions in binary form must reproduce the above copyright 1658f851eeSuch * notice, this list of conditions and the following disclaimer in the 1758f851eeSuch * documentation and/or other materials provided with the distribution. 189a758aabSuch * 1958f851eeSuch * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2058f851eeSuch * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2158f851eeSuch * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2258f851eeSuch * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2358f851eeSuch * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2458f851eeSuch * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2558f851eeSuch * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2658f851eeSuch * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2758f851eeSuch * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2858f851eeSuch * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2958f851eeSuch * POSSIBILITY OF SUCH DAMAGE. 309a758aabSuch */ 319a758aabSuch 329a758aabSuch typedef u_int32_t plumreg_t; 339a758aabSuch 3458f851eeSuch plumreg_t plum_conf_read(bus_space_tag_t, bus_space_handle_t, int); 3558f851eeSuch void plum_conf_write(bus_space_tag_t, bus_space_handle_t, int, plumreg_t); 369a758aabSuch 379a758aabSuch struct plum_chipset_tag { 389a758aabSuch tx_chipset_tag_t pc_tc; /* TX39 layer tag */ 399a758aabSuch void *pc_intrt; /* Plum2 interrupt tag */ 409a758aabSuch void *pc_powert; /* Plum2 power/clock tag */ 419a758aabSuch }; 429a758aabSuch 439a758aabSuch typedef struct plum_chipset_tag *plum_chipset_tag_t; 449a758aabSuch 459a758aabSuch struct plum_attach_args { 469a758aabSuch plum_chipset_tag_t pa_pc; 479a758aabSuch bus_space_tag_t pa_regt; 489a758aabSuch bus_space_tag_t pa_iot; 499a758aabSuch bus_space_tag_t pa_memt; 509a758aabSuch int pa_irq; 519a758aabSuch }; 529a758aabSuch 5358f851eeSuch void plum_conf_register_intr(plum_chipset_tag_t, void *); 5458f851eeSuch void plum_conf_register_power(plum_chipset_tag_t, void *); 55