Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
5ad60c97
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
170
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5ad60c97
编写于
7月 11, 2011
作者:
M
Mike McCormack
提交者:
Larry Finger
8月 23, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rtl8192e: Remove CONFIG_RTL8192_IO_MAP
Signed-off-by:
N
Mike McCormack
<
mikem@ring3k.org
>
上级
cb762154
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
79 deletion
+0
-79
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_core.c
+0
-79
未找到文件。
drivers/staging/rtl8192e/rtl_core.c
浏览文件 @
5ad60c97
...
...
@@ -312,36 +312,21 @@ u32 read_nic_io_dword(struct net_device *dev, int x)
u8
read_nic_byte
(
struct
net_device
*
dev
,
int
x
)
{
#ifdef CONFIG_RTL8192_IO_MAP
return
read_nic_io_byte
(
dev
,
x
);
#else
return
0xff
&
readb
((
u8
*
)
dev
->
mem_start
+
x
);
#endif
}
u32
read_nic_dword
(
struct
net_device
*
dev
,
int
x
)
{
#ifdef CONFIG_RTL8192_IO_MAP
return
read_nic_io_dword
(
dev
,
x
);
#else
return
readl
((
u8
*
)
dev
->
mem_start
+
x
);
#endif
}
u16
read_nic_word
(
struct
net_device
*
dev
,
int
x
)
{
#ifdef CONFIG_RTL8192_IO_MAP
return
read_nic_io_word
(
dev
,
x
);
#else
return
readw
((
u8
*
)
dev
->
mem_start
+
x
);
#endif
}
void
write_nic_byte
(
struct
net_device
*
dev
,
int
x
,
u8
y
)
{
#ifdef CONFIG_RTL8192_IO_MAP
write_nic_io_byte
(
dev
,
x
,
y
);
#else
writeb
(
y
,(
u8
*
)
dev
->
mem_start
+
x
);
#if !(defined RTL8192SE || defined RTL8192CE)
...
...
@@ -351,15 +336,10 @@ void write_nic_byte(struct net_device *dev, int x,u8 y)
#if defined RTL8192CE
read_nic_byte
(
dev
,
x
);
#endif
#endif
}
void
write_nic_dword
(
struct
net_device
*
dev
,
int
x
,
u32
y
)
{
#ifdef CONFIG_RTL8192_IO_MAP
write_nic_io_dword
(
dev
,
x
,
y
);
#else
writel
(
y
,(
u8
*
)
dev
->
mem_start
+
x
);
#if !(defined RTL8192SE || defined RTL8192CE)
...
...
@@ -369,15 +349,10 @@ void write_nic_dword(struct net_device *dev, int x,u32 y)
#if defined RTL8192CE
read_nic_dword
(
dev
,
x
);
#endif
#endif
}
void
write_nic_word
(
struct
net_device
*
dev
,
int
x
,
u16
y
)
{
#ifdef CONFIG_RTL8192_IO_MAP
write_nic_io_word
(
dev
,
x
,
y
);
#else
writew
(
y
,(
u8
*
)
dev
->
mem_start
+
x
);
#if !(defined RTL8192SE || defined RTL8192CE)
...
...
@@ -387,8 +362,6 @@ void write_nic_word(struct net_device *dev, int x,u16 y)
#if defined RTL8192CE
read_nic_word
(
dev
,
x
);
#endif
#endif
}
/****************************************************************************
...
...
@@ -3475,12 +3448,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
struct
net_device
*
dev
=
NULL
;
struct
r8192_priv
*
priv
=
NULL
;
struct
rtl819x_ops
*
ops
=
(
struct
rtl819x_ops
*
)(
id
->
driver_data
);
#ifdef CONFIG_RTL8192_IO_MAP
unsigned
long
pio_start
,
pio_len
,
pio_flags
;
#else
unsigned
long
pmem_start
,
pmem_len
,
pmem_flags
;
#endif
int
err
=
0
;
bool
bdma64
=
false
;
u8
revision_id
;
...
...
@@ -3533,25 +3501,6 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
else
priv
->
rtllib
->
bSupportRemoteWakeUp
=
0
;
#ifdef CONFIG_RTL8192_IO_MAP
pio_start
=
(
unsigned
long
)
pci_resource_start
(
pdev
,
0
);
pio_len
=
(
unsigned
long
)
pci_resource_len
(
pdev
,
0
);
pio_flags
=
(
unsigned
long
)
pci_resource_flags
(
pdev
,
0
);
if
(
!
(
pio_flags
&
IORESOURCE_IO
))
{
RT_TRACE
(
COMP_ERR
,
"region #0 not a PIO resource, aborting"
);
goto
fail
;
}
printk
(
"Io mapped space start: 0x%08lx
\n
"
,
pio_start
);
if
(
!
request_region
(
pio_start
,
pio_len
,
DRV_NAME
)
){
RT_TRACE
(
COMP_ERR
,
"request_region failed!"
);
goto
fail
;
}
ioaddr
=
pio_start
;
dev
->
base_addr
=
ioaddr
;
#else
#ifdef RTL8192CE
pmem_start
=
pci_resource_start
(
pdev
,
2
);
pmem_len
=
pci_resource_len
(
pdev
,
2
);
...
...
@@ -3583,7 +3532,6 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
dev
->
mem_start
=
ioaddr
;
dev
->
mem_end
=
ioaddr
+
pci_resource_len
(
pdev
,
0
);
#endif
#if defined RTL8192SE || defined RTL8192CE
pci_write_config_byte
(
pdev
,
0x81
,
0
);
pci_write_config_byte
(
pdev
,
0x44
,
0
);
...
...
@@ -3677,20 +3625,11 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
return
0
;
fail1:
#ifdef CONFIG_RTL8192_IO_MAP
if
(
dev
->
base_addr
!=
0
){
release_region
(
dev
->
base_addr
,
pci_resource_len
(
pdev
,
0
)
);
}
#else
if
(
dev
->
mem_start
!=
(
unsigned
long
)
NULL
){
iounmap
(
(
void
*
)
dev
->
mem_start
);
release_mem_region
(
pci_resource_start
(
pdev
,
1
),
pci_resource_len
(
pdev
,
1
)
);
}
#endif
fail:
if
(
dev
){
...
...
@@ -3754,24 +3693,6 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev)
priv
->
irq
=
0
;
}
#ifdef CONFIG_RTL8192_IO_MAP
if
(
dev
->
base_addr
!=
0
){
release_region
(
dev
->
base_addr
,
pci_resource_len
(
pdev
,
0
)
);
}
#else
if
(
dev
->
mem_start
!=
(
unsigned
long
)
NULL
){
iounmap
(
(
void
*
)
dev
->
mem_start
);
#ifdef RTL8192CE
release_mem_region
(
pci_resource_start
(
pdev
,
2
),
pci_resource_len
(
pdev
,
2
)
);
#else
release_mem_region
(
pci_resource_start
(
pdev
,
1
),
pci_resource_len
(
pdev
,
1
)
);
#endif
}
#endif
/*end #ifdef RTL_IO_MAP*/
free_rtllib
(
dev
);
if
(
priv
->
scan_cmd
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录