common: Move interrupt functions into a new header