11.2Stsutsui# $NetBSD: genassym.cf,v 1.2 2008/09/20 18:29:05 tsutsui Exp $ 21.1Srjs 31.1Srjs# Copyright (c) 1982, 1990 The Regents of the University of California. 41.1Srjs# All rights reserved. 51.1Srjs# 61.1Srjs# This code is derived from software contributed to Berkeley by 71.1Srjs# William Jolitz. 81.1Srjs# 91.1Srjs# Redistribution and use in source and binary forms, with or without 101.1Srjs# modification, are permitted provided that the following conditions 111.1Srjs# are met: 121.1Srjs# 1. Redistributions of source code must retain the above copyright 131.1Srjs# notice, this list of conditions and the following disclaimer. 141.1Srjs# 2. Redistributions in binary form must reproduce the above copyright 151.1Srjs# notice, this list of conditions and the following disclaimer in the 161.1Srjs# documentation and/or other materials provided with the distribution. 171.2Stsutsui# 3. Neither the name of the University nor the names of its contributors 181.1Srjs# may be used to endorse or promote products derived from this software 191.1Srjs# without specific prior written permission. 201.1Srjs# 211.1Srjs# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221.1Srjs# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231.1Srjs# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241.1Srjs# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251.1Srjs# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261.1Srjs# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271.1Srjs# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281.1Srjs# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291.1Srjs# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301.1Srjs# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311.1Srjs# SUCH DAMAGE. 321.1Srjs 331.1Srjsinclude <machine/intr.h> 341.1Srjs 351.1Srjsdefine IH_FUNC offsetof(struct irqhandler, ih_func) 361.1Srjsdefine IH_ARG offsetof(struct irqhandler, ih_arg) 371.1Srjsdefine IH_FLAGS offsetof(struct irqhandler, ih_flags) 381.1Srjsdefine IH_LEVEL offsetof(struct irqhandler, ih_level) 391.1Srjsdefine IH_NUM offsetof(struct irqhandler, ih_num) 401.1Srjsdefine IH_MASKADDR offsetof(struct irqhandler, ih_maskaddr) 411.1Srjsdefine IH_MASKBITS offsetof(struct irqhandler, ih_maskbits) 421.1Srjsdefine IH_NEXT offsetof(struct irqhandler, ih_next) 431.1Srjs 44