Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
10badc21
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
10badc21
编写于
4月 12, 2006
作者:
J
Jeff Garzik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[netdrvr b44] trim trailing whitespace
上级
8056bfaf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
19 deletion
+19
-19
drivers/net/b44.c
drivers/net/b44.c
+19
-19
未找到文件。
drivers/net/b44.c
浏览文件 @
10badc21
...
...
@@ -137,7 +137,7 @@ static inline unsigned long br32(const struct b44 *bp, unsigned long reg)
return
readl
(
bp
->
regs
+
reg
);
}
static
inline
void
bw32
(
const
struct
b44
*
bp
,
static
inline
void
bw32
(
const
struct
b44
*
bp
,
unsigned
long
reg
,
unsigned
long
val
)
{
writel
(
val
,
bp
->
regs
+
reg
);
...
...
@@ -287,13 +287,13 @@ static void __b44_cam_write(struct b44 *bp, unsigned char *data, int index)
val
|=
((
u32
)
data
[
4
])
<<
8
;
val
|=
((
u32
)
data
[
5
])
<<
0
;
bw32
(
bp
,
B44_CAM_DATA_LO
,
val
);
val
=
(
CAM_DATA_HI_VALID
|
val
=
(
CAM_DATA_HI_VALID
|
(((
u32
)
data
[
0
])
<<
8
)
|
(((
u32
)
data
[
1
])
<<
0
));
bw32
(
bp
,
B44_CAM_DATA_HI
,
val
);
bw32
(
bp
,
B44_CAM_CTRL
,
(
CAM_CTRL_WRITE
|
(
index
<<
CAM_CTRL_INDEX_SHIFT
)));
b44_wait_bit
(
bp
,
B44_CAM_CTRL
,
CAM_CTRL_BUSY
,
100
,
1
);
b44_wait_bit
(
bp
,
B44_CAM_CTRL
,
CAM_CTRL_BUSY
,
100
,
1
);
}
static
inline
void
__b44_disable_ints
(
struct
b44
*
bp
)
...
...
@@ -411,15 +411,15 @@ static void __b44_set_flow_ctrl(struct b44 *bp, u32 pause_flags)
static
void
b44_set_flow_ctrl
(
struct
b44
*
bp
,
u32
local
,
u32
remote
)
{
u32
pause_enab
=
0
;
u32
pause_enab
=
0
;
/* The driver supports only rx pause by default because
the b44 mac tx pause mechanism generates excessive
pause frames.
the b44 mac tx pause mechanism generates excessive
pause frames.
Use ethtool to turn on b44 tx pause if necessary.
*/
if
((
local
&
ADVERTISE_PAUSE_CAP
)
&&
(
local
&
ADVERTISE_PAUSE_ASYM
)){
(
local
&
ADVERTISE_PAUSE_ASYM
)){
if
((
remote
&
LPA_PAUSE_ASYM
)
&&
!
(
remote
&
LPA_PAUSE_CAP
))
pause_enab
|=
B44_FLAG_RX_PAUSE
;
...
...
@@ -1057,7 +1057,7 @@ static int b44_change_mtu(struct net_device *dev, int new_mtu)
spin_unlock_irq
(
&
bp
->
lock
);
b44_enable_ints
(
bp
);
return
0
;
}
...
...
@@ -1375,7 +1375,7 @@ static void b44_init_hw(struct b44 *bp)
bw32
(
bp
,
B44_DMARX_ADDR
,
bp
->
rx_ring_dma
+
bp
->
dma_offset
);
bw32
(
bp
,
B44_DMARX_PTR
,
bp
->
rx_pending
);
bp
->
rx_prod
=
bp
->
rx_pending
;
bp
->
rx_prod
=
bp
->
rx_pending
;
bw32
(
bp
,
B44_MIB_CTRL
,
MIB_CTRL_CLR_ON_READ
);
...
...
@@ -1547,9 +1547,9 @@ static void __b44_set_rx_mode(struct net_device *dev)
val
|=
RXCONFIG_ALLMULTI
;
else
i
=
__b44_load_mcast
(
bp
,
dev
);
for
(;
i
<
64
;
i
++
)
{
__b44_cam_write
(
bp
,
zero
,
i
);
__b44_cam_write
(
bp
,
zero
,
i
);
}
bw32
(
bp
,
B44_RXCONFIG
,
val
);
val
=
br32
(
bp
,
B44_CAM_CTRL
);
...
...
@@ -1731,7 +1731,7 @@ static int b44_set_ringparam(struct net_device *dev,
spin_unlock_irq
(
&
bp
->
lock
);
b44_enable_ints
(
bp
);
return
0
;
}
...
...
@@ -1776,7 +1776,7 @@ static int b44_set_pauseparam(struct net_device *dev,
spin_unlock_irq
(
&
bp
->
lock
);
b44_enable_ints
(
bp
);
return
0
;
}
...
...
@@ -1892,7 +1892,7 @@ static int __devinit b44_get_invariants(struct b44 *bp)
bp
->
core_unit
=
ssb_core_unit
(
bp
);
bp
->
dma_offset
=
SB_PCI_DMA
;
/* XXX - really required?
/* XXX - really required?
bp->flags |= B44_FLAG_BUGGY_TXPTR;
*/
out:
...
...
@@ -1940,7 +1940,7 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
"aborting.
\n
"
);
goto
err_out_free_res
;
}
err
=
pci_set_consistent_dma_mask
(
pdev
,
(
u64
)
B44_DMA_MASK
);
if
(
err
)
{
printk
(
KERN_ERR
PFX
"No usable DMA configuration, "
...
...
@@ -2035,9 +2035,9 @@ static int __devinit b44_init_one(struct pci_dev *pdev,
pci_save_state
(
bp
->
pdev
);
/* Chip reset provides power to the b44 MAC & PCI cores, which
/* Chip reset provides power to the b44 MAC & PCI cores, which
* is necessary for MAC register access.
*/
*/
b44_chip_reset
(
bp
);
printk
(
KERN_INFO
"%s: Broadcom 4400 10/100BaseT Ethernet "
,
dev
->
name
);
...
...
@@ -2085,10 +2085,10 @@ static int b44_suspend(struct pci_dev *pdev, pm_message_t state)
del_timer_sync
(
&
bp
->
timer
);
spin_lock_irq
(
&
bp
->
lock
);
spin_lock_irq
(
&
bp
->
lock
);
b44_halt
(
bp
);
netif_carrier_off
(
bp
->
dev
);
netif_carrier_off
(
bp
->
dev
);
netif_device_detach
(
bp
->
dev
);
b44_free_rings
(
bp
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录