/**Low-levelIRQhelpermacrosforFreescaleMXS-based**Copyright(C)2009-2010FreescaleSemiconductor,Inc.AllRightsReserved.**Thisprogramisfreesoftware; you can redistribute it and/or modify*itunderthetermsoftheGNUGeneralPublicLicenseaspublishedby*theFreeSoftwareFoundation; either version 2 of the License, or*(atyouroption)anylaterversion.**Thisprogramisdistributedinthehopethatitwillbeuseful,*butWITHOUTANYWARRANTY; without even the implied warranty of*MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe*GNUGeneralPublicLicenseformoredetails.**YoushouldhavereceivedacopyoftheGNUGeneralPublicLicensealong*withthisprogram; if not, write to the Free Software Foundation, Inc.,*51FranklinStreet,FifthFloor,Boston,MA02110-1301USA.*/#include <mach/mxs.h>#define MXS_ICOLL_VBASE MXS_IO_ADDRESS(MXS_ICOLL_BASE_ADDR)#define HW_ICOLL_STAT_OFFSET 0x70.macroget_irqnr_and_base,irqnr,irqstat,base,tmpldr\irqnr,[\base,#HW_ICOLL_STAT_OFFSET]cmp\irqnr,#0x7Fstrne\irqnr,[\base]moveqs\irqnr,#0.endm.macroget_irqnr_preamble,base,tmpldr\base,=MXS_ICOLL_VBASE.endm