| /* |
| * Copyright: (C) Copyright 2015 Marvell International Ltd. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 as |
| * publishhed by the Free Software Foundation. |
| * |
| * Author: Yan Markman (ymarkman@marvell.com) |
| * |
| * RAMDUMP Devices are for System Debug ErrorHandling and Health Management |
| * Working MISC-Devices may be stack whilst working but RAMDUMP-devices |
| * must be always ok to guaranty system recovery and logging. |
| * |
| * Do not use MISC-Device for RAMDUMPs but use own |
| * Major-Node-Number for them. The devices are still "char" |
| * |
| * An alternation depends upon ALTERNATE_MISC_TO_SYSDBG |
| */ |
| |
| #ifndef _RAMDUMP_MISCDEVICE_H |
| #define _RAMDUMP_MISCDEVICE_H |
| |
| #include <linux/miscdevice.h> |
| |
| #define ALTERNATE_MISC_TO_SYSDBG |
| |
| #if !defined(_RAMDUMP_UTIL_C) |
| #ifdef ALTERNATE_MISC_TO_SYSDBG |
| #define misc_register sysdbg_misc_register |
| #define misc_deregister sysdbg_misc_deregister |
| #endif |
| #endif |
| |
| extern int sysdbg_misc_register(struct miscdevice * misc); |
| extern int sysdbg_misc_deregister(struct miscdevice * misc); |
| |
| #endif/*_RAMDUMP_MISCDEVICE_H*/ |