Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
29c4684e
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
29c4684e
编写于
1月 09, 2016
作者:
I
Igal Liberman
提交者:
Madalin Bucur
10月 04, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fsl/fman: fix loadable module compilation
Signed-off-by:
N
Igal Liberman
<
igal.liberman@freescale.com
>
上级
8536aa06
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
64 addition
and
7 deletion
+64
-7
drivers/net/ethernet/freescale/fman/Makefile
drivers/net/ethernet/freescale/fman/Makefile
+6
-4
drivers/net/ethernet/freescale/fman/fman.c
drivers/net/ethernet/freescale/fman/fman.c
+33
-2
drivers/net/ethernet/freescale/fman/fman_port.c
drivers/net/ethernet/freescale/fman/fman_port.c
+22
-1
drivers/net/ethernet/freescale/fman/fman_sp.c
drivers/net/ethernet/freescale/fman/fman_sp.c
+3
-0
未找到文件。
drivers/net/ethernet/freescale/fman/Makefile
浏览文件 @
29c4684e
subdir-ccflags-y
+=
-I
$(srctree)
/drivers/net/ethernet/freescale/fman
obj-y
+=
fsl_fman.o fsl_fman_mac.o fsl_mac.o
obj-$(CONFIG_FSL_FMAN)
+=
fsl_fman.o
obj-$(CONFIG_FSL_FMAN)
+=
fsl_fman_port.o
obj-$(CONFIG_FSL_FMAN)
+=
fsl_mac.o
fsl_fman-objs
:=
fman_muram.o fman.o fman_sp.o
fman_port.o
fsl_fman_
mac-objs
:=
fman_dtsec.o fman_memac.o fman_tgec
.o
fsl_mac-objs
+=
ma
c.o
fsl_fman-objs
:=
fman_muram.o fman.o fman_sp.o
fsl_fman_
port-objs
:=
fman_port
.o
fsl_mac-objs
:=
mac.o fman_dtsec.o fman_memac.o fman_tge
c.o
drivers/net/ethernet/freescale/fman/fman.c
浏览文件 @
29c4684e
...
...
@@ -2115,6 +2115,7 @@ void fman_register_intr(struct fman *fman, enum fman_event_modules module,
fman
->
intr_mng
[
event
].
isr_cb
=
isr_cb
;
fman
->
intr_mng
[
event
].
src_handle
=
src_arg
;
}
EXPORT_SYMBOL
(
fman_register_intr
);
/**
* fman_unregister_intr
...
...
@@ -2138,6 +2139,7 @@ void fman_unregister_intr(struct fman *fman, enum fman_event_modules module,
fman
->
intr_mng
[
event
].
isr_cb
=
NULL
;
fman
->
intr_mng
[
event
].
src_handle
=
NULL
;
}
EXPORT_SYMBOL
(
fman_unregister_intr
);
/**
* fman_set_port_params
...
...
@@ -2241,6 +2243,7 @@ int fman_set_port_params(struct fman *fman,
spin_unlock_irqrestore
(
&
fman
->
spinlock
,
flags
);
return
err
;
}
EXPORT_SYMBOL
(
fman_set_port_params
);
/**
* fman_reset_mac
...
...
@@ -2310,6 +2313,7 @@ int fman_reset_mac(struct fman *fman, u8 mac_id)
return
0
;
}
EXPORT_SYMBOL
(
fman_reset_mac
);
/**
* fman_set_mac_max_frame
...
...
@@ -2337,6 +2341,7 @@ int fman_set_mac_max_frame(struct fman *fman, u8 mac_id, u16 mfl)
}
return
0
;
}
EXPORT_SYMBOL
(
fman_set_mac_max_frame
);
/**
* fman_get_clock_freq
...
...
@@ -2363,6 +2368,7 @@ u32 fman_get_bmi_max_fifo_size(struct fman *fman)
{
return
fman
->
state
->
bmi_max_fifo_size
;
}
EXPORT_SYMBOL
(
fman_get_bmi_max_fifo_size
);
/**
* fman_get_revision
...
...
@@ -2384,6 +2390,7 @@ void fman_get_revision(struct fman *fman, struct fman_rev_info *rev_info)
FPM_REV1_MAJOR_SHIFT
);
rev_info
->
minor
=
tmp
&
FPM_REV1_MINOR_MASK
;
}
EXPORT_SYMBOL
(
fman_get_revision
);
/**
* fman_get_qman_channel_id
...
...
@@ -2419,6 +2426,7 @@ u32 fman_get_qman_channel_id(struct fman *fman, u32 port_id)
return
fman
->
state
->
qman_channel_base
+
i
;
}
EXPORT_SYMBOL
(
fman_get_qman_channel_id
);
/**
* fman_get_mem_region
...
...
@@ -2432,6 +2440,7 @@ struct resource *fman_get_mem_region(struct fman *fman)
{
return
fman
->
state
->
res
;
}
EXPORT_SYMBOL
(
fman_get_mem_region
);
/* Bootargs defines */
/* Extra headroom for RX buffers - Default, min and max */
...
...
@@ -2538,6 +2547,7 @@ struct fman *fman_bind(struct device *fm_dev)
{
return
(
struct
fman
*
)(
dev_get_drvdata
(
get_device
(
fm_dev
)));
}
EXPORT_SYMBOL
(
fman_bind
);
static
irqreturn_t
fman_err_irq
(
int
irq
,
void
*
handle
)
{
...
...
@@ -2930,7 +2940,7 @@ static const struct of_device_id fman_match[] = {
{}
};
MODULE_DEVICE_TABLE
(
of
,
fm_match
);
MODULE_DEVICE_TABLE
(
of
,
fm
an
_match
);
static
struct
platform_driver
fman_driver
=
{
.
driver
=
{
...
...
@@ -2940,4 +2950,25 @@ static struct platform_driver fman_driver = {
.
probe
=
fman_probe
,
};
builtin_platform_driver
(
fman_driver
);
static
int
__init
fman_load
(
void
)
{
int
err
;
pr_debug
(
"FSL DPAA FMan driver
\n
"
);
err
=
platform_driver_register
(
&
fman_driver
);
if
(
err
<
0
)
pr_err
(
"Error, platform_driver_register() = %d
\n
"
,
err
);
return
err
;
}
module_init
(
fman_load
);
static
void
__exit
fman_unload
(
void
)
{
platform_driver_unregister
(
&
fman_driver
);
}
module_exit
(
fman_unload
);
MODULE_LICENSE
(
"Dual BSD/GPL"
);
MODULE_DESCRIPTION
(
"Freescale DPAA Frame Manager driver"
);
drivers/net/ethernet/freescale/fman/fman_port.c
浏览文件 @
29c4684e
...
...
@@ -1775,4 +1775,25 @@ static struct platform_driver fman_port_driver = {
.
probe
=
fman_port_probe
,
};
builtin_platform_driver
(
fman_port_driver
);
static
int
__init
fman_port_load
(
void
)
{
int
err
;
pr_debug
(
"FSL DPAA FMan driver
\n
"
);
err
=
platform_driver_register
(
&
fman_port_driver
);
if
(
err
<
0
)
pr_err
(
"Error, platform_driver_register() = %d
\n
"
,
err
);
return
err
;
}
module_init
(
fman_port_load
);
static
void
__exit
fman_port_unload
(
void
)
{
platform_driver_unregister
(
&
fman_port_driver
);
}
module_exit
(
fman_port_unload
);
MODULE_LICENSE
(
"Dual BSD/GPL"
);
MODULE_DESCRIPTION
(
"Freescale DPAA Frame Manager Port driver"
);
drivers/net/ethernet/freescale/fman/fman_sp.c
浏览文件 @
29c4684e
...
...
@@ -80,6 +80,7 @@ void fman_sp_set_buf_pools_in_asc_order_of_buf_sizes(struct fman_ext_pools
}
}
}
EXPORT_SYMBOL
(
fman_sp_set_buf_pools_in_asc_order_of_buf_sizes
);
int
fman_sp_build_buffer_struct
(
struct
fman_sp_int_context_data_copy
*
int_context_data_copy
,
...
...
@@ -164,3 +165,5 @@ int fman_sp_build_buffer_struct(struct fman_sp_int_context_data_copy *
return
0
;
}
EXPORT_SYMBOL
(
fman_sp_build_buffer_struct
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录