sm.h 651 B

123456789101112131415161718192021222324252627
  1. /*
  2. * AT32 System Manager interface.
  3. *
  4. * Copyright (C) 2006 Atmel Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_AVR32_AT32_SM_H__
  11. #define __ASM_AVR32_AT32_SM_H__
  12. struct irq_chip;
  13. struct platform_device;
  14. struct at32_sm {
  15. spinlock_t lock;
  16. void __iomem *regs;
  17. struct irq_chip *eim_chip;
  18. unsigned int eim_first_irq;
  19. struct platform_device *pdev;
  20. };
  21. extern struct platform_device at32_sm_device;
  22. extern struct at32_sm system_manager;
  23. #endif /* __ASM_AVR32_AT32_SM_H__ */