ar6000_cs_internal.h
来自「Linux下SDIO设备的驱动程序」· C头文件 代码 · 共 63 行
H
63 行
/* * 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 _AR6000_CS_INTERNAL_H_#define _AR6000_CS_INTERNAL_H_#include "ar6000_cs.h"/* Device structure maintained for each instance of the device* in the driver.*/typedef struct _CFDEVICE_ { PCFFUNCTION pFunction; //Upper layer driver supporting this device. CF_PNP_INFO pId; // PNP Info for this device. void (*pIrqFunction)(void * pContext, A_BOOL *callDSR);/* interrupt routine, synchronous calls allowed */ void * IrqContext; /* irq context */ struct tasklet_struct tasklet; A_UINT32 mem_start; A_UINT32 mem_end; A_UINT8 irq; void * backPtr; /* backptr to dev_link_t struct */} CF_DEVICE;struct ar6000_pccard { dev_link_t link; dev_node_t node; CF_DEVICE CfDevice;//ref. to the CFDevice structure for this device.#ifdef POLLED_MODE struct timer_list poll_timer;#endif};#ifdef KERNEL_2_4typedef void irqreturn_t;#define IRQ_NONE#define IRQ_HANDLED#endifstatic void insert_dev_list(struct ar6000_pccard *);static struct dev_link_t * remove_dev_list(struct ar6000_pccard *);static void insert_drv_list(PCFFUNCTION);static PCFFUNCTION remove_drv_list(PCFFUNCTION);#endif //_AR6000_CS_INTERNAL_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?