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