OSHW-DEIMOS/SOFTWARE/A64-TERES/linux-a64/drivers/power/axp_power/sunxi-nmi.h
Dimitar Gamishev f9b0e7a283 linux
2017-10-13 14:07:04 +03:00

32 lines
655 B
C
Executable File

#ifndef _SUNXI_NMI_H
#define _SUNXI_NMI_H
#define NMI_MODULE_NAME "nmi"
typedef struct {
void __iomem *base_addr;
u32 nmi_irq_ctrl;
u32 nmi_irq_en;
u32 nmi_irq_status;
u32 nmi_irq_mask;
}nmi_struct;
#define NMI_IRQ_LOW_LEVEL (0x0)
#define NMI_IRQ_NE_EDGE (0x1)
#define NMI_IRQ_HIGH_LEVEL (0x2)
#define NMI_IRQ_PO_EDGE (0x3)
#define NMI_IRQ_MASK (0x1)
#define NMI_IRQ_ENABLE (0x1)
#define NMI_IRQ_PENDING (0x1)
enum {
DEBUG_INIT = 1U << 0,
DEBUG_INT = 1U << 1,
};
#define dprintk(level_mask, fmt, arg...) if (unlikely(debug_mask & level_mask)) \
printk(KERN_DEBUG fmt , ## arg)
#endif