]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86, io-apic: define names for redirection table entry fields
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 7 Jun 2008 15:53:56 +0000 (19:53 +0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 07:13:21 +0000 (09:13 +0200)
Each I/O APIC redirection table entry has a number of fields.
Define names for them to eliminate reference by hard coded
numbers.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/io_apic.h

index a6732566ad054d6d2b8218a45e12ad1ec0440e04..dc0f55f2b034d93fe7cb804bfedc28c650c6ead4 100644 (file)
  * Copyright (C) 1997, 1998, 1999, 2000 Ingo Molnar
  */
 
+/* I/O Unit Redirection Table */
+#define IO_APIC_REDIR_VECTOR_MASK      0x000FF
+#define IO_APIC_REDIR_DEST_LOGICAL     0x00800
+#define IO_APIC_REDIR_DEST_PHYSICAL    0x00000
+#define IO_APIC_REDIR_SEND_PENDING     (1 << 12)
+#define IO_APIC_REDIR_REMOTE_IRR       (1 << 14)
+#define IO_APIC_REDIR_LEVEL_TRIGGER    (1 << 15)
+#define IO_APIC_REDIR_MASKED           (1 << 16)
+
 /*
  * The structure of the IO-APIC:
  */