Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * SGI UV IRQ definitions
0007  *
0008  * Copyright (C) 2008 Silicon Graphics, Inc. All rights reserved.
0009  */
0010 
0011 #ifndef _ASM_X86_UV_UV_IRQ_H
0012 #define _ASM_X86_UV_UV_IRQ_H
0013 
0014 /* If a generic version of this structure gets defined, eliminate this one. */
0015 struct uv_IO_APIC_route_entry {
0016     __u64   vector      :  8,
0017         delivery_mode   :  3,
0018         dest_mode   :  1,
0019         delivery_status :  1,
0020         polarity    :  1,
0021         __reserved_1    :  1,
0022         trigger     :  1,
0023         mask        :  1,
0024         __reserved_2    : 15,
0025         dest        : 32;
0026 };
0027 
0028 enum {
0029     UV_AFFINITY_ALL,
0030     UV_AFFINITY_NODE,
0031     UV_AFFINITY_CPU
0032 };
0033 
0034 extern int uv_irq_2_mmr_info(int, unsigned long *, int *);
0035 extern int uv_setup_irq(char *, int, int, unsigned long, int);
0036 extern void uv_teardown_irq(unsigned int);
0037 
0038 #endif /* _ASM_X86_UV_UV_IRQ_H */