eisa.c 459 Bytes
Newer Older
1 2 3 4 5 6 7
/*
 * EISA specific code
 *
 * This file is licensed under the GPL V2
 */
#include <linux/ioport.h>
#include <linux/eisa.h>
8
#include <linux/io.h>
9

10 11
#include <xen/xen.h>

12 13
static __init int eisa_bus_probe(void)
{
14 15 16 17
	void __iomem *p;

	if (xen_pv_domain() && !xen_initial_domain())
		return 0;
18

19 20
	p = ioremap(0x0FFFD9, 4);
	if (p && readl(p) == 'E' + ('I' << 8) + ('S' << 16) + ('A' << 24))
21 22 23 24 25
		EISA_bus = 1;
	iounmap(p);
	return 0;
}
subsys_initcall(eisa_bus_probe);