1 /* 2 * Ingenic XBurst type definitions. 3 * 4 * Copyright 2009 (C) Qi Hardware Inc. 5 * Author: Xiangfu Liu <xiangfu@sharism.cc> 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef __XBURST_TYPES_H__ 22 #define __XBURST_TYPES_H__ 23 24 typedef unsigned int size_t; 25 typedef unsigned char u8; 26 typedef unsigned short u16; 27 typedef unsigned int u32; 28 29 #define REG8(addr) *((volatile u8 *)(addr)) 30 #define REG16(addr) *((volatile u16 *)(addr)) 31 #define REG32(addr) *((volatile u32 *)(addr)) 32 33 #endif /* __XBURST_TYPES_H__ */