/* * AM33XX-CM3 firmware * * Cortex-M3 (CM3) firmware for power management on Texas Instruments' AM33XX series of SoCs * * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * This software is licensed under the standard terms and conditions in the Texas Instruments Incorporated * Technology and Software Publicly Available Software License Agreement , a copy of which is included in the * software download. */ #ifndef __IO_H__ #define __IO_H__ #define __raw_readl(a) (*(volatile unsigned int *)(a)) #define __raw_writel(v, a) (*(volatile unsigned int *)(a) = v) #define __raw_readw(a) (*(volatile unsigned short *)(a)) #define __raw_writew(v, a) (*(volatile unsigned short *)(a) = v) static inline unsigned int var_mod(unsigned int var, unsigned int mask, unsigned int bit_val) { return (var & ~mask) | bit_val; } #endif