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
299b664a
Commit
299b664a
authored
Apr 18, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://gkernel.bkbits.net/misc-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
1e6ad211
36377f61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/char/hw_random.c
drivers/char/hw_random.c
+6
-0
No files found.
drivers/char/hw_random.c
View file @
299b664a
...
...
@@ -92,10 +92,12 @@ static void amd_cleanup(void);
static
unsigned
int
amd_data_present
(
void
);
static
u32
amd_data_read
(
void
);
#ifdef __i386__
static
int
__init
via_init
(
struct
pci_dev
*
dev
);
static
void
via_cleanup
(
void
);
static
unsigned
int
via_data_present
(
void
);
static
u32
via_data_read
(
void
);
#endif
struct
rng_operations
{
int
(
*
init
)
(
struct
pci_dev
*
dev
);
...
...
@@ -137,8 +139,10 @@ static struct rng_operations rng_vendor_ops[] = {
/* rng_hw_amd */
{
amd_init
,
amd_cleanup
,
amd_data_present
,
amd_data_read
,
4
},
#ifdef __i386__
/* rng_hw_via */
{
via_init
,
via_cleanup
,
via_data_present
,
via_data_read
,
1
},
#endif
};
/*
...
...
@@ -341,6 +345,7 @@ static void amd_cleanup(void)
/* FIXME: twiddle pmio, also? */
}
#ifdef __i386__
/***********************************************************************
*
* VIA RNG operations
...
...
@@ -456,6 +461,7 @@ static void via_cleanup(void)
{
/* do nothing */
}
#endif
/***********************************************************************
...
...
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