⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osapi.h

📁 Linux下SDIO设备的驱动程序
💻 H
字号:
/* * Copyright 2003-2006 Atheros Communications, Inc. * *  Wireless Network driver for Atheros AR6001 * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License version 2 as *  published by the Free Software Foundation; * *  Software distributed under the License is distributed on an "AS *  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or *  implied. See the License for the specific language governing *  rights and limitations under the License. * * * This file contains the definitions of the basic atheros data types. * It is used to map the data types in atheros files to a platform specific * type. * */#ifndef _OSAPI_H_#define _OSAPI_H_#ifdef __KERNEL__#ifdef __linux__#include "../include/osapi_linux.h"#endif/* * OS specific network buffer acess routines */void *a_netbuf_alloc(int size);void a_netbuf_free(void *bufPtr);void *a_netbuf_to_data(void *bufPtr);A_UINT32 a_netbuf_to_len(void *bufPtr);A_STATUS a_netbuf_push(void *bufPtr, A_INT32 len);A_STATUS a_netbuf_put(void *bufPtr, A_INT32 len);A_STATUS a_netbuf_trim(void *bufPtr, A_INT32 len);A_INT32 a_netbuf_headroom(void *bufPtr);A_STATUS a_netbuf_pull(void *bufPtr, A_INT32 len);A_UINT32 a_copy_to_user(void *to, const void *from, A_UINT32 n);A_UINT32 a_copy_from_user(void *to, const void *from, A_UINT32 n);#endif /* __KERNEL__ */#ifdef __GNUC__#define __ATTRIB_PACK           __attribute__ ((packed))#define __ATTRIB_PRINTF         __attribute__ ((format (printf, 1, 2)))#define __ATTRIB_NORETURN       __attribute__ ((noreturn))#ifndef INLINE#define INLINE                  __inline__#endif#else /* Not GCC */#define __ATTRIB_PACK#define __ATTRIB_PRINTF#define __ATTRIB_NORETURN#ifndef INLINE#define INLINE                  __inline#endif#endif /* End __GNUC__ */#endif /* _OSAPI_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -