Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
553da857
Commit
553da857
authored
Mar 23, 2010
by
Krzysztof Hałasa
Committed by
Jason Cooper
Nov 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IXP4xx: HW pseudo-random generator is available on IXP45x/46x only.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
87ba5c6a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
drivers/char/hw_random/Kconfig
drivers/char/hw_random/Kconfig
+3
-3
drivers/char/hw_random/ixp4xx-rng.c
drivers/char/hw_random/ixp4xx-rng.c
+4
-1
No files found.
drivers/char/hw_random/Kconfig
View file @
553da857
...
...
@@ -127,12 +127,12 @@ config HW_RANDOM_VIA
If unsure, say Y.
config HW_RANDOM_IXP4XX
tristate "Intel IXP4xx NPU HW Random Number Generator support"
tristate "Intel IXP4xx NPU HW
Pseudo-
Random Number Generator support"
depends on HW_RANDOM && ARCH_IXP4XX
default HW_RANDOM
---help---
This driver provides kernel-side support for the Random
Number Generator hardware found on the Intel IXP4
x
x NPU.
This driver provides kernel-side support for the
Pseudo-
Random
Number Generator hardware found on the Intel IXP4
5x/46
x NPU.
To compile this driver as a module, choose M here: the
module will be called ixp4xx-rng.
...
...
drivers/char/hw_random/ixp4xx-rng.c
View file @
553da857
...
...
@@ -45,6 +45,9 @@ static int __init ixp4xx_rng_init(void)
void
__iomem
*
rng_base
;
int
err
;
if
(
!
cpu_is_ixp46x
())
/* includes IXP455 */
return
-
ENOSYS
;
rng_base
=
ioremap
(
0x70002100
,
4
);
if
(
!
rng_base
)
return
-
ENOMEM
;
...
...
@@ -68,5 +71,5 @@ module_init(ixp4xx_rng_init);
module_exit
(
ixp4xx_rng_exit
);
MODULE_AUTHOR
(
"Deepak Saxena <dsaxena@plexity.net>"
);
MODULE_DESCRIPTION
(
"H/W
Random Number Generator (RNG) driver for IXP4x
x"
);
MODULE_DESCRIPTION
(
"H/W
Pseudo-Random Number Generator (RNG) driver for IXP45x/46
x"
);
MODULE_LICENSE
(
"GPL"
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment