linux-next/drivers/misc/pvpanic/pvpanic.h
Mihai Carabas b3c0f87746 misc/pvpanic: probe multiple instances
Create the mecahism that allows multiple pvpanic instances to call
pvpanic_probe and receive panic events. A global list will retain all the
mapped addresses where to write panic events.

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Link: https://lore.kernel.org/r/1616597356-20696-3-git-send-email-mihai.carabas@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-28 14:56:47 +02:00

22 lines
391 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Pvpanic Device Support
*
* Copyright (C) 2021 Oracle.
*/
#ifndef PVPANIC_H_
#define PVPANIC_H_
struct pvpanic_instance {
void __iomem *base;
unsigned int capability;
unsigned int events;
struct list_head list;
};
int pvpanic_probe(struct pvpanic_instance *pi);
void pvpanic_remove(struct pvpanic_instance *pi);
#endif /* PVPANIC_H_ */