#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <asm/byteorder.h>
#include <asm/pdc.h>
#include <asm/pdcpat.h>
#include <asm/page.h>
#include <asm/io.h>
#include <asm/ropes.h>
#include "iosapic_private.h"
Go to the source code of this file.
#define COMPARE_IRTE_ADDR |
( |
|
irte, |
|
|
|
hpa |
|
) |
| ((irte)->dest_iosapic_addr == ((hpa) | 0xffffffff00000000ULL)) |
#define IOSAPIC_IRDT_ENABLE 0x10000 |
#define IOSAPIC_IRDT_ENTRY |
( |
|
idx | ) |
(0x10+(idx)*2) |
#define IOSAPIC_IRDT_ENTRY_HI |
( |
|
idx | ) |
(0x11+(idx)*2) |
#define IOSAPIC_IRDT_ID_EID_SHIFT 0x10 |
#define IOSAPIC_IRDT_LEVEL_TRIG 0x08000 |
#define IOSAPIC_IRDT_MODE_LPRI 0x00100 |
#define IOSAPIC_IRDT_PO_LOW 0x02000 |
#define IOSAPIC_MAX_ENTRY_MASK 0x00ff0000 |
#define IOSAPIC_MAX_ENTRY_SHIFT 0x10 |
#define IOSAPIC_REG_EOI 0x40 |
#define IOSAPIC_REG_SELECT 0x00 |
#define IOSAPIC_REG_VERSION 0x1 |
#define IOSAPIC_REG_WINDOW 0x10 |
#define IOSAPIC_VERSION_MASK 0x000000ff |
#define MODULE_NAME "iosapic" |
void* iosapic_register |
( |
unsigned long |
hpa | ) |
|