Blame view

include/irq_func.h 600 Bytes
c30b7adbc   Simon Glass   common: Move inte...
1
2
3
4
5
6
7
8
9
10
  /* SPDX-License-Identifier: GPL-2.0+ */
  /*
   * Header file for interrupt functions
   *
   * (C) Copyright 2000-2009
   * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
   */
  
  #ifndef __IRQ_FUNC_H
  #define __IRQ_FUNC_H
36bf446b6   Simon Glass   common: Move enab...
11
12
13
  struct pt_regs;
  
  typedef void (interrupt_handler_t)(void *arg);
c30b7adbc   Simon Glass   common: Move inte...
14
15
16
  int interrupt_init(void);
  void timer_interrupt(struct pt_regs *regs);
  void external_interrupt(struct pt_regs *regs);
36bf446b6   Simon Glass   common: Move enab...
17
  void irq_install_handler(int vec, interrupt_handler_t *handler, void *arg);
c30b7adbc   Simon Glass   common: Move inte...
18
19
  void irq_free_handler(int vec);
  void reset_timer(void);
36bf446b6   Simon Glass   common: Move enab...
20
21
  void enable_interrupts(void);
  int disable_interrupts(void);
c30b7adbc   Simon Glass   common: Move inte...
22
  #endif