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

📄 hif_internal.h

📁 linux下的SDIO 驱动
💻 H
字号:
/* * Copyright (c) 2004-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. * * */#ifndef _HIF_INTERNAL_H#define _HIF_INTERNAL_H#include "ar6000_cs.h"#include "../../include/hif.h"#define MANUFACTURER_ID_BASE               0x100#define FUNCTION_CLASS                     0x0#define MANUFACTURER_CODE                  0x271#define HIF_MBOX_BLOCK_SIZE                2#define HIF_MBOX_BASE_ADDR                 0x0#define HIF_MBOX_WIDTH                     0x100#define HIF_MBOX0_BLOCK_SIZE               1#define HIF_MBOX1_BLOCK_SIZE               HIF_MBOX_BLOCK_SIZE#define HIF_MBOX2_BLOCK_SIZE               HIF_MBOX_BLOCK_SIZE#define HIF_MBOX3_BLOCK_SIZE               HIF_MBOX_BLOCK_SIZE#define BUS_REQUEST_MAX_NUM                32#define HIF_MBOX_START_ADDR(mbox)                        \    HIF_MBOX_BASE_ADDR + mbox * HIF_MBOX_WIDTH#define HIF_MBOX_END_ADDR(mbox)	                         \    HIF_MBOX_START_ADDR(mbox) + HIF_MBOX_WIDTH - 1#define HIF_IS_MBOX_ADDR(addr) (addr >= HIF_MBOX_START_ADDR(0) && addr <= HIF_MBOX_END_ADDR(3)) ? 1:0struct hif_device {    PCFDEVICE handle;};typedef struct target_function_context {    CFFUNCTION           function; /* function description of the bus driver *///    OS_SEMAPHORE         instanceSem; /* instance lock. Unused *///    SDLIST               instanceList; /* list of instances. Unused */} TARGET_FUNCTION_CONTEXT;typedef struct bus_request {    A_BOOL     free;    CFREQUEST  request;} BUS_REQUEST;static A_BOOLhifDeviceInserted(CFFUNCTION *function, PCFDEVICE device);static voidhifDeviceRemoved(CFFUNCTION *function, PCFDEVICE device);static HIF_DEVICE *addHifDevice(PCFDEVICE handle);static HIF_DEVICE *getHifDevice(PCFDEVICE handle);static voiddelHifDevice(PCFDEVICE handle);#endif //_HIF_INTERNAL_H

⌨️ 快捷键说明

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