1*ce099b40Smartin /* $NetBSD: hpciomanvar.h,v 1.3 2008/04/28 20:23:48 martin Exp $ */ 226b0905dStakemura 326b0905dStakemura /*- 426b0905dStakemura * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. 526b0905dStakemura * All rights reserved. 626b0905dStakemura * 726b0905dStakemura * This code is derived from software contributed to The NetBSD Foundation 826b0905dStakemura * by UCHIYAMA Yasushi. 926b0905dStakemura * 1026b0905dStakemura * Redistribution and use in source and binary forms, with or without 1126b0905dStakemura * modification, are permitted provided that the following conditions 1226b0905dStakemura * are met: 1326b0905dStakemura * 1. Redistributions of source code must retain the above copyright 1426b0905dStakemura * notice, this list of conditions and the following disclaimer. 1526b0905dStakemura * 2. Redistributions in binary form must reproduce the above copyright 1626b0905dStakemura * notice, this list of conditions and the following disclaimer in the 1726b0905dStakemura * documentation and/or other materials provided with the distribution. 1826b0905dStakemura * 1926b0905dStakemura * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2026b0905dStakemura * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2126b0905dStakemura * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2226b0905dStakemura * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2326b0905dStakemura * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2426b0905dStakemura * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2526b0905dStakemura * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2626b0905dStakemura * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2726b0905dStakemura * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2826b0905dStakemura * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2926b0905dStakemura * POSSIBILITY OF SUCH DAMAGE. 3026b0905dStakemura */ 3126b0905dStakemura 3226b0905dStakemura #ifndef _DEV_HPC_HPCIOMANVAR_H_ 3326b0905dStakemura #define _DEV_HPC_HPCIOMANVAR_H_ 3426b0905dStakemura 3526b0905dStakemura struct hpcioman_attach_args { 3626b0905dStakemura hpcio_chip_t hma_hc; 3726b0905dStakemura int hma_intr_mode; 3826b0905dStakemura int hma_type; 3926b0905dStakemura int hma_id; 4026b0905dStakemura int hma_port; 4126b0905dStakemura int hma_initvalue; 4226b0905dStakemura int hma_on; 4326b0905dStakemura int hma_off; 443d94c421Stakemura int hma_connect; 4526b0905dStakemura }; 4626b0905dStakemura 4726b0905dStakemura #define cf_iochip cf_loc[HPCIOMANCF_IOCHIP] 4826b0905dStakemura #define cf_port cf_loc[HPCIOMANCF_PORT] 4926b0905dStakemura #define cf_type cf_loc[HPCIOMANCF_EVTYPE] 5026b0905dStakemura #define cf_id cf_loc[HPCIOMANCF_ID] 5126b0905dStakemura #define cf_level cf_loc[HPCIOMANCF_LEVEL] 5226b0905dStakemura #define cf_edge cf_loc[HPCIOMANCF_EDGE] 5326b0905dStakemura #define cf_active cf_loc[HPCIOMANCF_ACTIVE] 5426b0905dStakemura #define cf_initvalue cf_loc[HPCIOMANCF_INITVALUE] 553d94c421Stakemura #define cf_hold cf_loc[HPCIOMANCF_HOLD] 563d94c421Stakemura #define cf_connect cf_loc[HPCIOMANCF_CONNECT] 5726b0905dStakemura 5826b0905dStakemura #endif /* !_DEV_HPC_HPCIOMANVAR_H_ */ 59