[BACK]Return to pci_eb64plus_intr.s CVS log [TXT][DIR] Up to [local] / sys / arch / alpha / pci

Annotation of sys/arch/alpha/pci/pci_eb64plus_intr.s, Revision 1.1.1.1

1.1       nbrk        1: /* $OpenBSD: pci_eb64plus_intr.s,v 1.2 2003/01/08 17:26:21 miod Exp $ */
                      2: /* $NetBSD: pci_eb64plus_intr.s,v 1.2 1997/09/02 13:19:43 thorpej Exp $ */
                      3:
                      4: /*
                      5:  * Copyright (c) 1996 Carnegie-Mellon University.
                      6:  * All rights reserved.
                      7:  *
                      8:  * Author: Chris G. Demetriou
                      9:  *
                     10:  * Permission to use, copy, modify and distribute this software and
                     11:  * its documentation is hereby granted, provided that both the copyright
                     12:  * notice and this permission notice appear in all copies of the
                     13:  * software, derivative works or modified versions, and any portions
                     14:  * thereof, and that both notices appear in supporting documentation.
                     15:  *
                     16:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     17:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
                     18:  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     19:  *
                     20:  * Carnegie Mellon requests users of this software to return to
                     21:  *
                     22:  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
                     23:  *  School of Computer Science
                     24:  *  Carnegie Mellon University
                     25:  *  Pittsburgh PA 15213-3890
                     26:  *
                     27:  * any improvements or extensions that they make and grant Carnegie the
                     28:  * rights to redistribute these changes.
                     29:  */
                     30:
                     31: /*
                     32:  * This file hacked from pci_eb164_intr.s
                     33:  *
                     34:  * These functions were written by disassembling a Digital UNIX kernel's
                     35:  * eb64p_intrdsabl and eb64p_intrenabl functions (because they had
                     36:  * interesting names, and looked like the eb164 versions which were
                     37:  * known to already work), and then playing with them to see how to call
                     38:  * them correctly.
                     39:  *
                     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).
                     44:  */
                     45:
                     46: #include <machine/asm.h>
                     47:
                     48:        .text
                     49: LEAF(eb64plus_intr_enable,1)
                     50:        mov     a0, a1
                     51:        ldiq    a0, 0x34
                     52:        call_pal PAL_cserve
                     53:        RET
                     54:        END(eb64plus_intr_enable)
                     55:
                     56:        .text
                     57: LEAF(eb64plus_intr_disable,1)
                     58:        mov     a0, a1
                     59:        ldiq    a0, 0x35
                     60:        call_pal PAL_cserve
                     61:        RET
                     62:        END(eb64plus_intr_disable)

CVSweb