无线网卡ath9k驱动Linux


2.6.7以上内核编译,编译ok的大家敬请享用吧!!
资源截图
代码片段和文件信息
/*
 * Copyright 2007 Luis R. Rodriguez 
 *
 * 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.
 *
 * Compatibility file for Linux wireless for kernels 2.6.22 - tip
 * The headers don‘t need to be modified as we‘re simply adding them.
 */

#include 

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2628))

/* 2.6.27 compat code goes here */

void __iomem *pci_ioremap_bar(struct pci_dev *pdev int bar)
{
/*
 * Make sure the BAR is actually a memory resource not an IO resource
 */
if (!(pci_resource_flags(pdev bar) & IORESOURCE_MEM)) {
WARN_ON(1);
return NULL;
}
return ioremap_nocache(pci_resource_start(pdev bar)
     pci_resource_len(pdev bar));
}
EXPORT_SYMBOL_GPL(pci_ioremap_bar);

#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2628) */

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2629))

/* 2.6.28 compat code goes here */

#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2629) */


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)