Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
95ecc5e5
Commit
95ecc5e5
authored
Aug 29, 2005
by
Tony Luck
Browse files
Options
Browse Files
Download
Plain Diff
Pull unaligned-snsc_event into release branch
parents
87dbaaab
1a402aac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
drivers/char/snsc_event.c
drivers/char/snsc_event.c
+8
-3
No files found.
drivers/char/snsc_event.c
View file @
95ecc5e5
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#include <linux/sched.h>
#include <linux/sched.h>
#include <linux/byteorder/generic.h>
#include <linux/byteorder/generic.h>
#include <asm/sn/sn_sal.h>
#include <asm/sn/sn_sal.h>
#include <asm/unaligned.h>
#include "snsc.h"
#include "snsc.h"
static
struct
subch_data_s
*
event_sd
;
static
struct
subch_data_s
*
event_sd
;
...
@@ -62,13 +63,16 @@ static int
...
@@ -62,13 +63,16 @@ static int
scdrv_parse_event
(
char
*
event
,
int
*
src
,
int
*
code
,
int
*
esp_code
,
char
*
desc
)
scdrv_parse_event
(
char
*
event
,
int
*
src
,
int
*
code
,
int
*
esp_code
,
char
*
desc
)
{
{
char
*
desc_end
;
char
*
desc_end
;
__be32
from_buf
;
/* record event source address */
/* record event source address */
*
src
=
be32_to_cpup
((
__be32
*
)
event
);
from_buf
=
get_unaligned
((
__be32
*
)
event
);
*
src
=
be32_to_cpup
(
&
from_buf
);
event
+=
4
;
/* move on to event code */
event
+=
4
;
/* move on to event code */
/* record the system controller's event code */
/* record the system controller's event code */
*
code
=
be32_to_cpup
((
__be32
*
)
event
);
from_buf
=
get_unaligned
((
__be32
*
)
event
);
*
code
=
be32_to_cpup
(
&
from_buf
);
event
+=
4
;
/* move on to event arguments */
event
+=
4
;
/* move on to event arguments */
/* how many arguments are in the packet? */
/* how many arguments are in the packet? */
...
@@ -82,7 +86,8 @@ scdrv_parse_event(char *event, int *src, int *code, int *esp_code, char *desc)
...
@@ -82,7 +86,8 @@ scdrv_parse_event(char *event, int *src, int *code, int *esp_code, char *desc)
/* not an integer argument, so give up */
/* not an integer argument, so give up */
return
-
1
;
return
-
1
;
}
}
*
esp_code
=
be32_to_cpup
((
__be32
*
)
event
);
from_buf
=
get_unaligned
((
__be32
*
)
event
);
*
esp_code
=
be32_to_cpup
(
&
from_buf
);
event
+=
4
;
event
+=
4
;
/* parse out the event description */
/* parse out the event description */
...
...
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