Home | History | Annotate | Line # | Download | only in pci
pci_eb164.c revision 1.45
      1  1.45  christos /* $NetBSD: pci_eb164.c,v 1.45 2014/03/21 16:39:29 christos Exp $ */
      2  1.14   thorpej 
      3  1.14   thorpej /*-
      4  1.14   thorpej  * Copyright (c) 1998 The NetBSD Foundation, Inc.
      5  1.14   thorpej  * All rights reserved.
      6  1.14   thorpej  *
      7  1.14   thorpej  * This code is derived from software contributed to The NetBSD Foundation
      8  1.14   thorpej  * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
      9  1.14   thorpej  * NASA Ames Research Center.
     10  1.14   thorpej  *
     11  1.14   thorpej  * Redistribution and use in source and binary forms, with or without
     12  1.14   thorpej  * modification, are permitted provided that the following conditions
     13  1.14   thorpej  * are met:
     14  1.14   thorpej  * 1. Redistributions of source code must retain the above copyright
     15  1.14   thorpej  *    notice, this list of conditions and the following disclaimer.
     16  1.14   thorpej  * 2. Redistributions in binary form must reproduce the above copyright
     17  1.14   thorpej  *    notice, this list of conditions and the following disclaimer in the
     18  1.14   thorpej  *    documentation and/or other materials provided with the distribution.
     19  1.14   thorpej  *
     20  1.14   thorpej  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     21  1.14   thorpej  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     22  1.14   thorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     23  1.14   thorpej  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     24  1.14   thorpej  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     25  1.14   thorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     26  1.14   thorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     27  1.14   thorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     28  1.14   thorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     29  1.14   thorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     30  1.14   thorpej  * POSSIBILITY OF SUCH DAMAGE.
     31  1.14   thorpej  */
     32   1.1       cgd 
     33   1.1       cgd /*
     34   1.1       cgd  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
     35   1.1       cgd  * All rights reserved.
     36   1.1       cgd  *
     37   1.1       cgd  * Author: Chris G. Demetriou
     38  1.44      matt  *
     39   1.1       cgd  * Permission to use, copy, modify and distribute this software and
     40   1.1       cgd  * its documentation is hereby granted, provided that both the copyright
     41   1.1       cgd  * notice and this permission notice appear in all copies of the
     42   1.1       cgd  * software, derivative works or modified versions, and any portions
     43   1.1       cgd  * thereof, and that both notices appear in supporting documentation.
     44  1.44      matt  *
     45  1.44      matt  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     46  1.44      matt  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     47   1.1       cgd  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     48  1.44      matt  *
     49   1.1       cgd  * Carnegie Mellon requests users of this software to return to
     50   1.1       cgd  *
     51   1.1       cgd  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     52   1.1       cgd  *  School of Computer Science
     53   1.1       cgd  *  Carnegie Mellon University
     54   1.1       cgd  *  Pittsburgh PA 15213-3890
     55   1.1       cgd  *
     56   1.1       cgd  * any improvements or extensions that they make and grant Carnegie the
     57   1.1       cgd  * rights to redistribute these changes.
     58   1.1       cgd  */
     59   1.5       cgd 
     60   1.6       cgd #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
     61   1.6       cgd 
     62  1.45  christos __KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.45 2014/03/21 16:39:29 christos Exp $");
     63   1.1       cgd 
     64   1.1       cgd #include <sys/types.h>
     65   1.1       cgd #include <sys/param.h>
     66   1.1       cgd #include <sys/time.h>
     67   1.1       cgd #include <sys/systm.h>
     68   1.1       cgd #include <sys/errno.h>
     69   1.1       cgd #include <sys/malloc.h>
     70   1.1       cgd #include <sys/device.h>
     71   1.1       cgd #include <sys/syslog.h>
     72   1.1       cgd 
     73   1.1       cgd #include <machine/autoconf.h>
     74  1.18   thorpej #include <machine/rpb.h>
     75   1.1       cgd 
     76   1.1       cgd #include <dev/pci/pcireg.h>
     77   1.1       cgd #include <dev/pci/pcivar.h>
     78  1.14   thorpej #include <dev/pci/pciidereg.h>
     79  1.14   thorpej #include <dev/pci/pciidevar.h>
     80   1.1       cgd 
     81   1.1       cgd #include <alpha/pci/ciareg.h>
     82   1.1       cgd #include <alpha/pci/ciavar.h>
     83   1.1       cgd 
     84   1.1       cgd #include <alpha/pci/pci_eb164.h>
     85   1.1       cgd 
     86   1.1       cgd #include "sio.h"
     87   1.1       cgd #if NSIO
     88   1.1       cgd #include <alpha/pci/siovar.h>
     89   1.1       cgd #endif
     90   1.1       cgd 
     91  1.42    dyoung int	dec_eb164_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
     92  1.45  christos const char *dec_eb164_intr_string(void *, pci_intr_handle_t, char *, size_t);
     93  1.37       dsl const struct evcnt *dec_eb164_intr_evcnt(void *, pci_intr_handle_t);
     94  1.37       dsl void	*dec_eb164_intr_establish(void *, pci_intr_handle_t,
     95  1.37       dsl 	    int, int (*func)(void *), void *);
     96  1.37       dsl void	dec_eb164_intr_disestablish(void *, void *);
     97   1.1       cgd 
     98  1.42    dyoung void	*dec_eb164_pciide_compat_intr_establish(void *, device_t,
     99  1.42    dyoung 	    const struct pci_attach_args *, int, int (*)(void *), void *);
    100  1.14   thorpej 
    101  1.44      matt #define	EB164_SIO_IRQ	4
    102   1.3       cgd #define	EB164_MAX_IRQ	24
    103   1.3       cgd #define	PCI_STRAY_MAX	5
    104   1.3       cgd 
    105   1.3       cgd struct alpha_shared_intr *eb164_pci_intr;
    106   1.3       cgd 
    107   1.3       cgd bus_space_tag_t eb164_intrgate_iot;
    108   1.3       cgd bus_space_handle_t eb164_intrgate_ioh;
    109   1.3       cgd 
    110  1.37       dsl void	eb164_iointr(void *arg, unsigned long vec);
    111  1.37       dsl extern void	eb164_intr_enable(int irq);	/* pci_eb164_intr.S */
    112  1.37       dsl extern void	eb164_intr_disable(int irq);	/* pci_eb164_intr.S */
    113   1.1       cgd 
    114   1.1       cgd void
    115  1.38       dsl pci_eb164_pickintr(struct cia_config *ccp)
    116   1.1       cgd {
    117  1.10   thorpej 	bus_space_tag_t iot = &ccp->cc_iot;
    118   1.1       cgd 	pci_chipset_tag_t pc = &ccp->cc_pc;
    119  1.26   thorpej 	char *cp;
    120   1.3       cgd 	int i;
    121   1.1       cgd 
    122  1.44      matt 	pc->pc_intr_v = ccp;
    123  1.44      matt 	pc->pc_intr_map = dec_eb164_intr_map;
    124  1.44      matt 	pc->pc_intr_string = dec_eb164_intr_string;
    125  1.25       cgd 	pc->pc_intr_evcnt = dec_eb164_intr_evcnt;
    126  1.44      matt 	pc->pc_intr_establish = dec_eb164_intr_establish;
    127  1.44      matt 	pc->pc_intr_disestablish = dec_eb164_intr_disestablish;
    128   1.1       cgd 
    129  1.14   thorpej 	pc->pc_pciide_compat_intr_establish =
    130  1.14   thorpej 	    dec_eb164_pciide_compat_intr_establish;
    131  1.14   thorpej 
    132   1.3       cgd 	eb164_intrgate_iot = iot;
    133   1.3       cgd 	if (bus_space_map(eb164_intrgate_iot, 0x804, 3, 0,
    134   1.3       cgd 	    &eb164_intrgate_ioh) != 0)
    135   1.3       cgd 		panic("pci_eb164_pickintr: couldn't map interrupt PLD");
    136   1.3       cgd 	for (i = 0; i < EB164_MAX_IRQ; i++)
    137   1.4       cgd 		eb164_intr_disable(i);
    138   1.3       cgd 
    139  1.45  christos #define PCI_EB164_IRQ_STR	8
    140  1.45  christos 	eb164_pci_intr = alpha_shared_intr_alloc(EB164_MAX_IRQ,
    141  1.45  christos 	    PCI_EB164_IRQ_STR);
    142  1.20   thorpej 	for (i = 0; i < EB164_MAX_IRQ; i++) {
    143  1.20   thorpej 		/*
    144  1.20   thorpej 		 * Systems with a Pyxis seem to have problems with
    145  1.20   thorpej 		 * stray interrupts, so just ignore them.  Sigh,
    146  1.20   thorpej 		 * I hate buggy hardware.
    147  1.20   thorpej 		 */
    148   1.3       cgd 		alpha_shared_intr_set_maxstrays(eb164_pci_intr, i,
    149  1.21   thorpej 			(ccp->cc_flags & CCF_ISPYXIS) ? 0 : PCI_STRAY_MAX);
    150  1.26   thorpej 
    151  1.26   thorpej 		cp = alpha_shared_intr_string(eb164_pci_intr, i);
    152  1.45  christos 		snprintf(cp, PCI_EB164_IRQ_STR, "irq %d", i);
    153  1.26   thorpej 		evcnt_attach_dynamic(alpha_shared_intr_evcnt(
    154  1.26   thorpej 		    eb164_pci_intr, i), EVCNT_TYPE_INTR, NULL,
    155  1.26   thorpej 		    "eb164", cp);
    156  1.20   thorpej 	}
    157   1.3       cgd 
    158   1.1       cgd #if NSIO
    159  1.11   thorpej 	sio_intr_setup(pc, iot);
    160   1.4       cgd 	eb164_intr_enable(EB164_SIO_IRQ);
    161   1.1       cgd #endif
    162   1.1       cgd }
    163   1.1       cgd 
    164  1.44      matt int
    165  1.42    dyoung dec_eb164_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
    166   1.1       cgd {
    167  1.44      matt 	pcitag_t bustag = pa->pa_intrtag;
    168  1.44      matt 	int buspin = pa->pa_intrpin, line = pa->pa_intrline;
    169  1.29  sommerfe 	pci_chipset_tag_t pc = pa->pa_pc;
    170  1.16   thorpej 	int bus, device, function;
    171  1.44      matt 	uint64_t variation;
    172   1.1       cgd 
    173  1.15   thorpej 	if (buspin == 0) {
    174  1.15   thorpej 		/* No IRQ used. */
    175  1.15   thorpej 		return 1;
    176  1.15   thorpej 	}
    177  1.15   thorpej 	if (buspin > 4) {
    178  1.15   thorpej 		printf("dec_eb164_intr_map: bad interrupt pin %d\n", buspin);
    179  1.15   thorpej 		return 1;
    180  1.15   thorpej 	}
    181   1.1       cgd 
    182  1.31   thorpej 	pci_decompose_tag(pc, bustag, &bus, &device, &function);
    183  1.16   thorpej 
    184  1.18   thorpej 	variation = hwrpb->rpb_variation & SV_ST_MASK;
    185  1.18   thorpej 
    186  1.12   thorpej 	/*
    187  1.18   thorpej 	 *
    188  1.18   thorpej 	 * The AlphaPC 164 and AlphaPC 164LX have a CMD PCI IDE controller
    189  1.18   thorpej 	 * at bus 0 device 11.  These are wired to compatibility mode,
    190  1.18   thorpej 	 * so do not map their interrupts.
    191  1.18   thorpej 	 *
    192  1.18   thorpej 	 * The AlphaPC 164SX has PCI IDE on functions 1 and 2 of the
    193  1.18   thorpej 	 * Cypress PCI-ISA bridge at bus 0 device 8.  These, too, are
    194  1.18   thorpej 	 * wired to compatibility mode.
    195  1.18   thorpej 	 *
    196  1.18   thorpej 	 * Real EB164s have ISA IDE on the Super I/O chip.
    197  1.12   thorpej 	 */
    198  1.18   thorpej 	if (bus == 0) {
    199  1.18   thorpej 		if (variation >= SV_ST_ALPHAPC164_366 &&
    200  1.18   thorpej 		    variation <= SV_ST_ALPHAPC164LX_600) {
    201  1.18   thorpej 			if (device == 8)
    202  1.18   thorpej 				panic("dec_eb164_intr_map: SIO device");
    203  1.18   thorpej 			if (device == 11)
    204  1.18   thorpej 				return (1);
    205  1.18   thorpej 		} else if (variation >= SV_ST_ALPHAPC164SX_400 &&
    206  1.18   thorpej 			   variation <= SV_ST_ALPHAPC164SX_600) {
    207  1.18   thorpej 			if (device == 8) {
    208  1.18   thorpej 				if (function == 0)
    209  1.18   thorpej 					panic("dec_eb164_intr_map: SIO device");
    210  1.18   thorpej 				return (1);
    211  1.18   thorpej 			}
    212  1.18   thorpej 		} else {
    213  1.18   thorpej 			if (device == 8)
    214  1.18   thorpej 				panic("dec_eb164_intr_map: SIO device");
    215  1.18   thorpej 		}
    216  1.16   thorpej 	}
    217  1.16   thorpej 
    218  1.16   thorpej 	/*
    219  1.16   thorpej 	 * The console places the interrupt mapping in the "line" value.
    220  1.16   thorpej 	 * A value of (char)-1 indicates there is no mapping.
    221  1.16   thorpej 	 */
    222  1.16   thorpej 	if (line == 0xff) {
    223  1.16   thorpej 		printf("dec_eb164_intr_map: no mapping for %d/%d/%d\n",
    224  1.16   thorpej 		    bus, device, function);
    225  1.16   thorpej 		return (1);
    226   1.1       cgd 	}
    227   1.1       cgd 
    228  1.16   thorpej 	if (line > EB164_MAX_IRQ)
    229  1.32    provos 		panic("dec_eb164_intr_map: eb164 irq too large (%d)",
    230  1.16   thorpej 		    line);
    231   1.1       cgd 
    232  1.16   thorpej 	*ihp = line;
    233   1.1       cgd 	return (0);
    234   1.1       cgd }
    235   1.1       cgd 
    236   1.1       cgd const char *
    237  1.45  christos dec_eb164_intr_string(void *ccv, pci_intr_handle_t ih, char *buf, size_t len)
    238   1.1       cgd {
    239   1.2       cgd #if 0
    240   1.1       cgd 	struct cia_config *ccp = ccv;
    241   1.2       cgd #endif
    242   1.1       cgd 
    243  1.44      matt 	if (ih > EB164_MAX_IRQ)
    244  1.45  christos 	        panic("%s: bogus eb164 IRQ 0x%lx", __func__, ih);
    245  1.45  christos 	snprintf(buf, len, "eb164 irq %ld", ih);
    246  1.45  christos 	return buf;
    247  1.25       cgd }
    248  1.25       cgd 
    249  1.25       cgd const struct evcnt *
    250  1.38       dsl dec_eb164_intr_evcnt(void *ccv, pci_intr_handle_t ih)
    251  1.25       cgd {
    252  1.25       cgd #if 0
    253  1.25       cgd 	struct cia_config *ccp = ccv;
    254  1.25       cgd #endif
    255  1.25       cgd 
    256  1.26   thorpej 	if (ih > EB164_MAX_IRQ)
    257  1.45  christos 		panic("%s: bogus eb164 IRQ 0x%lx", __func__, ih);
    258  1.26   thorpej 	return (alpha_shared_intr_evcnt(eb164_pci_intr, ih));
    259   1.1       cgd }
    260   1.1       cgd 
    261   1.1       cgd void *
    262  1.40       dsl dec_eb164_intr_establish(void *ccv, pci_intr_handle_t ih, int level, int (*func)(void *), void *arg)
    263   1.1       cgd {
    264   1.3       cgd #if 0
    265   1.3       cgd 	struct cia_config *ccp = ccv;
    266   1.3       cgd #endif
    267   1.3       cgd 	void *cookie;
    268   1.1       cgd 
    269   1.3       cgd 	if (ih > EB164_MAX_IRQ)
    270  1.32    provos 		panic("dec_eb164_intr_establish: bogus eb164 IRQ 0x%lx", ih);
    271   1.1       cgd 
    272   1.3       cgd 	cookie = alpha_shared_intr_establish(eb164_pci_intr, ih, IST_LEVEL,
    273   1.3       cgd 	    level, func, arg, "eb164 irq");
    274   1.1       cgd 
    275  1.30   thorpej 	if (cookie != NULL &&
    276  1.30   thorpej 	    alpha_shared_intr_firstactive(eb164_pci_intr, ih)) {
    277  1.35        ad 		scb_set(0x900 + SCB_IDXTOVEC(ih), eb164_iointr, NULL,
    278  1.35        ad 		   level);
    279   1.4       cgd 		eb164_intr_enable(ih);
    280  1.30   thorpej 	}
    281   1.1       cgd 	return (cookie);
    282   1.1       cgd }
    283   1.1       cgd 
    284   1.3       cgd void
    285  1.39       dsl dec_eb164_intr_disestablish(void *ccv, void *cookie)
    286   1.1       cgd {
    287   1.3       cgd #if 0
    288   1.3       cgd 	struct cia_config *ccp = ccv;
    289   1.3       cgd #endif
    290  1.23   thorpej 	struct alpha_shared_intrhand *ih = cookie;
    291  1.23   thorpej 	unsigned int irq = ih->ih_num;
    292  1.23   thorpej 	int s;
    293  1.44      matt 
    294  1.23   thorpej 	s = splhigh();
    295  1.23   thorpej 
    296  1.23   thorpej 	alpha_shared_intr_disestablish(eb164_pci_intr, cookie,
    297  1.23   thorpej 	    "eb164 irq");
    298  1.23   thorpej 	if (alpha_shared_intr_isactive(eb164_pci_intr, irq) == 0) {
    299  1.23   thorpej 		eb164_intr_disable(irq);
    300  1.23   thorpej 		alpha_shared_intr_set_dfltsharetype(eb164_pci_intr, irq,
    301  1.23   thorpej 		    IST_NONE);
    302  1.30   thorpej 		scb_free(0x900 + SCB_IDXTOVEC(irq));
    303  1.23   thorpej 	}
    304  1.44      matt 
    305  1.23   thorpej 	splx(s);
    306  1.14   thorpej }
    307  1.14   thorpej 
    308  1.14   thorpej void *
    309  1.42    dyoung dec_eb164_pciide_compat_intr_establish(void *v, device_t dev,
    310  1.42    dyoung     const struct pci_attach_args *pa, int chan, int (*func)(void *), void *arg)
    311  1.14   thorpej {
    312  1.14   thorpej 	pci_chipset_tag_t pc = pa->pa_pc;
    313  1.14   thorpej 	void *cookie = NULL;
    314  1.14   thorpej 	int bus, irq;
    315  1.45  christos 	char buf[64];
    316  1.14   thorpej 
    317  1.31   thorpej 	pci_decompose_tag(pc, pa->pa_tag, &bus, NULL, NULL);
    318  1.14   thorpej 
    319  1.14   thorpej 	/*
    320  1.14   thorpej 	 * If this isn't PCI bus #0, all bets are off.
    321  1.14   thorpej 	 */
    322  1.14   thorpej 	if (bus != 0)
    323  1.14   thorpej 		return (NULL);
    324  1.14   thorpej 
    325  1.14   thorpej 	irq = PCIIDE_COMPAT_IRQ(chan);
    326  1.14   thorpej #if NSIO
    327  1.14   thorpej 	cookie = sio_intr_establish(NULL /*XXX*/, irq, IST_EDGE, IPL_BIO,
    328  1.14   thorpej 	    func, arg);
    329  1.27   thorpej 	if (cookie == NULL)
    330  1.27   thorpej 		return (NULL);
    331  1.43      matt 	aprint_normal_dev(dev, "%s channel interrupting at %s\n",
    332  1.45  christos 	    PCIIDE_CHANNEL_NAME(chan), sio_intr_string(NULL /*XXX*/, irq,
    333  1.45  christos 		buf, sizeof(buf)));
    334  1.14   thorpej #endif
    335  1.14   thorpej 	return (cookie);
    336   1.1       cgd }
    337   1.1       cgd 
    338   1.1       cgd void
    339  1.38       dsl eb164_iointr(void *arg, unsigned long vec)
    340   1.1       cgd {
    341  1.44      matt 	int irq;
    342   1.3       cgd 
    343  1.30   thorpej 	irq = SCB_VECTOIDX(vec - 0x900);
    344  1.30   thorpej 
    345  1.30   thorpej 	if (!alpha_shared_intr_dispatch(eb164_pci_intr, irq)) {
    346  1.30   thorpej 		alpha_shared_intr_stray(eb164_pci_intr, irq,
    347  1.30   thorpej 		    "eb164 irq");
    348  1.30   thorpej 		if (ALPHA_SHARED_INTR_DISABLE(eb164_pci_intr, irq))
    349  1.30   thorpej 			eb164_intr_disable(irq);
    350  1.33   thorpej 	} else
    351  1.33   thorpej 		alpha_shared_intr_reset_strays(eb164_pci_intr, irq);
    352   1.3       cgd }
    353   1.3       cgd 
    354   1.4       cgd #if 0		/* THIS DOES NOT WORK!  see pci_eb164_intr.S. */
    355  1.44      matt uint8_t eb164_intr_mask[3] = { 0xff, 0xff, 0xff };
    356   1.3       cgd 
    357   1.3       cgd void
    358  1.38       dsl eb164_intr_enable(int irq)
    359   1.3       cgd {
    360   1.3       cgd 	int byte = (irq / 8), bit = (irq % 8);
    361   1.3       cgd 
    362   1.3       cgd #if 1
    363   1.4       cgd 	printf("eb164_intr_enable: enabling %d (%d:%d)\n", irq, byte, bit);
    364   1.3       cgd #endif
    365   1.3       cgd 	eb164_intr_mask[byte] &= ~(1 << bit);
    366   1.3       cgd 
    367   1.3       cgd 	bus_space_write_1(eb164_intrgate_iot, eb164_intrgate_ioh, byte,
    368   1.3       cgd 	    eb164_intr_mask[byte]);
    369   1.3       cgd }
    370   1.3       cgd 
    371   1.3       cgd void
    372  1.38       dsl eb164_intr_disable(int irq)
    373   1.3       cgd {
    374   1.3       cgd 	int byte = (irq / 8), bit = (irq % 8);
    375   1.3       cgd 
    376   1.3       cgd #if 1
    377   1.4       cgd 	printf("eb164_intr_disable: disabling %d (%d:%d)\n", irq, byte, bit);
    378   1.3       cgd #endif
    379   1.3       cgd 	eb164_intr_mask[byte] |= (1 << bit);
    380   1.3       cgd 
    381   1.3       cgd 	bus_space_write_1(eb164_intrgate_iot, eb164_intrgate_ioh, byte,
    382   1.3       cgd 	    eb164_intr_mask[byte]);
    383   1.1       cgd }
    384   1.4       cgd #endif
    385