2c2
< * Copyright (c) 2014-2015 ARM Limited
---
> * Copyright (c) 2014-2016 ARM Limited
66c66
< private:
---
> protected: /* API wrappers/helpers */
68,76c68,69
< * Interrupt callback from the NoMali library.
< *
< * This method calls onInterrupt() on the NoMaliGpu owning this
< * device.
< *
< * @param h NoMali library handle.
< * @param usr Pointer to an instance of the NoMaliGpu
< * @param intno GPU interrupt type
< * @param set Was the interrupt raised (1) or lowered (0)?
---
> * @{
> * @name API wrappers
78,79d70
< static void _interrupt(nomali_handle_t h, void *usr,
< nomali_int_t intno, int set);
81c72,73
< void onInterrupt(nomali_handle_t h, nomali_int_t intno, bool set);
---
> /** Wrapper around nomali_reset(). */
> void reset();
93a86,95
> * Wrapper around nomali_int_state()
> *
> * @param intno Interrupt number
> * @return True if asserted, false otherwise.
> */
> bool intState(nomali_int_t intno);
>
> /** @} */
>
> /**
110a113,148
> protected: /* Callbacks */
> /**
> * @{
> * @name Callbacks
> */
>
> /**
> * Interrupt callback from the NoMali library
> *
> * This method is called whenever there is an interrupt state change.
> *
> * @param intno Interrupt number
> * @param set True is the interrupt is being asserted, false otherwise.
> */
> virtual void onInterrupt(nomali_int_t intno, bool set);
>
> /** @} */
>
> private: /* Callback helpers */
> /** Wrapper around nomali_set_callback() */
> void setCallback(const nomali_callback_t &callback);
>
> /**
> * Interrupt callback from the NoMali library.
> *
> * This method calls onInterrupt() on the NoMaliGpu owning this
> * device.
> *
> * @param h NoMali library handle.
> * @param usr Pointer to an instance of the NoMaliGpu
> * @param intno GPU interrupt type
> * @param set Was the interrupt raised (1) or lowered (0)?
> */
> static void _interrupt(nomali_handle_t h, void *usr,
> nomali_int_t intno, int set);
> protected:
121d158
<