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