1 /* 2 * Copyright 2009 (C) Qi Hardware Inc., 3 * Author: Xiangfu Liu <xiangfu@sharism.cc> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 8 * 3 of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301, USA 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__ */