Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / alpha / pci / pci_eb164_intr.s
blob836945eba803b74197fbee58d232f5a23f878ddf
1 /* $NetBSD: pci_eb164_intr.s,v 1.5 1997/09/02 13:19:42 thorpej Exp $ */
3 /*
4 * Copyright (c) 1996 Carnegie-Mellon University.
5 * All rights reserved.
7 * Author: Chris G. Demetriou
8 *
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
31 * The description of how to enable and disable interrupts in the
32 * AlphaPC 164 motherboard technical reference manual is incorrect,
33 * at least for the OSF/1 PALcode.
35 * These functions were written by disassembling a Digital UNIX kernel's
36 * eb164_intrdsabl and eb164_intrenabl functions (because they had
37 * interesting names), and then playing with them to see how to call
38 * them correctly.
40 * It looks like the right thing to do is to call them with the interrupt
41 * request that you want to enable or disable (presumably in the range
42 * 0 -> 23, since there are 3 8-bit interrupt-enable bits in the
43 * interrupt mask PLD).
46 #include <machine/asm.h>
48 __KERNEL_RCSID(0, "$NetBSD: pci_eb164_intr.s,v 1.5 1997/09/02 13:19:42 thorpej Exp $");
50 .text
51 LEAF(eb164_intr_enable,1)
52 mov a0, a1
53 ldiq a0, 0x34
54 call_pal PAL_cserve
55 RET
56 END(eb164_intr_enable)
58 .text
59 LEAF(eb164_intr_disable,1)
60 mov a0, a1
61 ldiq a0, 0x35
62 call_pal PAL_cserve
63 RET
64 END(eb164_intr_disable)