blob: e963344b044902a78340be45c30e5634bfdb2566 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001// SPDX-License-Identifier: GPL-2.0-only
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * EISA specific code
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5#include <linux/ioport.h>
6#include <linux/eisa.h>
7#include <linux/io.h>
8
9#include <xen/xen.h>
10
11static __init int eisa_bus_probe(void)
12{
13 void __iomem *p;
14
15 if (xen_pv_domain() && !xen_initial_domain())
16 return 0;
17
18 p = ioremap(0x0FFFD9, 4);
19 if (p && readl(p) == 'E' + ('I' << 8) + ('S' << 16) + ('A' << 24))
20 EISA_bus = 1;
21 iounmap(p);
22 return 0;
23}
24subsys_initcall(eisa_bus_probe);