2019-06-03 12:44:59 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2017-08-28 13:47:20 +07:00
|
|
|
/*
|
|
|
|
* EISA specific code
|
|
|
|
*/
|
|
|
|
#include <linux/ioport.h>
|
|
|
|
#include <linux/eisa.h>
|
2017-09-01 01:08:16 +07:00
|
|
|
#include <linux/io.h>
|
2017-08-28 13:47:20 +07:00
|
|
|
|
2018-09-12 02:55:38 +07:00
|
|
|
#include <xen/xen.h>
|
|
|
|
|
2017-08-28 13:47:20 +07:00
|
|
|
static __init int eisa_bus_probe(void)
|
|
|
|
{
|
2018-09-12 02:55:38 +07:00
|
|
|
void __iomem *p;
|
|
|
|
|
|
|
|
if (xen_pv_domain() && !xen_initial_domain())
|
|
|
|
return 0;
|
2017-08-28 13:47:20 +07:00
|
|
|
|
2018-09-12 02:55:38 +07:00
|
|
|
p = ioremap(0x0FFFD9, 4);
|
|
|
|
if (p && readl(p) == 'E' + ('I' << 8) + ('S' << 16) + ('A' << 24))
|
2017-08-28 13:47:20 +07:00
|
|
|
EISA_bus = 1;
|
|
|
|
iounmap(p);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
subsys_initcall(eisa_bus_probe);
|