1/* 2 * Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 * Permission to use, copy, modify, and/or distribute this software for 4 * any purpose with or without fee is hereby granted, provided that the 5 * above copyright notice and this permission notice appear in all copies. 6 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 7 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 8 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 9 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 10 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 11 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 12 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 13 */ 14 15#ifndef _AOS_PVTTYPES_H 16#define _AOS_PVTTYPES_H 17 18#ifdef KVER32 19#include <generated/autoconf.h> 20#else 21#include <linux/autoconf.h> 22#endif 23#include <asm/types.h> 24#include <linux/compiler.h> 25/* 26 * Private definitions of general data types 27 */ 28 29/* generic data types */ 30typedef struct device * __aos_device_t; 31typedef int __aos_size_t; 32 33#ifdef KVER26 34#ifdef LNX26_22 35typedef __u8 * __aos_iomem_t; 36#else 37typedef u8 __iomem * __aos_iomem_t; 38#endif 39#else /*Linux Kernel 2.4 */ 40typedef u8 * __aos_iomem_t; 41#endif 42 43#ifdef KVER32 44typedef u8 __iomem * __aos_iomem_t; 45#endif 46 47#ifdef LNX26_22 /* > Linux 2.6.22 */ 48typedef __u8 __a_uint8_t; 49typedef __s8 __a_int8_t; 50typedef __u16 __a_uint16_t; 51typedef __s16 __a_int16_t; 52typedef __u32 __a_uint32_t; 53typedef __s32 __a_int32_t; 54typedef __u64 __a_uint64_t; 55typedef __s64 __a_int64_t; 56#else 57typedef u8 __a_uint8_t; 58typedef s8 __a_int8_t; 59typedef u16 __a_uint16_t; 60typedef s16 __a_int16_t; 61typedef u32 __a_uint32_t; 62typedef s32 __a_int32_t; 63typedef u64 __a_uint64_t; 64typedef s64 __a_int64_t; 65#endif 66 67#define aos_printk printk 68 69#define AUTO_UPDATE_PPPOE_INFO 1 70#if 0 71#undef AUTO_UPDATE_PPPOE_INFO 72#endif 73 74#endif 75