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
7f6c0e49
Commit
7f6c0e49
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix /proc handling in via82cxxx
parent
61ffc94c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
drivers/ide/pci/via82cxxx.c
drivers/ide/pci/via82cxxx.c
+5
-1
No files found.
drivers/ide/pci/via82cxxx.c
View file @
7f6c0e49
...
@@ -140,6 +140,7 @@ static int via_get_info(char *buffer, char **addr, off_t offset, int count)
...
@@ -140,6 +140,7 @@ static int via_get_info(char *buffer, char **addr, off_t offset, int count)
uen
[
4
],
udma
[
4
],
umul
[
4
],
active8b
[
4
],
recover8b
[
4
];
uen
[
4
],
udma
[
4
],
umul
[
4
],
active8b
[
4
],
recover8b
[
4
];
struct
pci_dev
*
dev
=
bmide_dev
;
struct
pci_dev
*
dev
=
bmide_dev
;
unsigned
int
v
,
u
,
i
;
unsigned
int
v
,
u
,
i
;
int
len
;
u16
c
,
w
;
u16
c
,
w
;
u8
t
,
x
;
u8
t
,
x
;
char
*
p
=
buffer
;
char
*
p
=
buffer
;
...
@@ -269,7 +270,10 @@ static int via_get_info(char *buffer, char **addr, off_t offset, int count)
...
@@ -269,7 +270,10 @@ static int via_get_info(char *buffer, char **addr, off_t offset, int count)
speed
[
i
]
/
1000
,
speed
[
i
]
/
100
%
10
);
speed
[
i
]
/
1000
,
speed
[
i
]
/
100
%
10
);
/* hoping it is less than 4K... */
/* hoping it is less than 4K... */
return
p
-
buffer
;
len
=
(
p
-
buffer
)
-
offset
;
*
addr
=
buffer
+
offset
;
return
len
>
count
?
count
:
len
;
}
}
#endif
/* DISPLAY_VIA_TIMINGS && CONFIG_PROC_FS */
#endif
/* DISPLAY_VIA_TIMINGS && CONFIG_PROC_FS */
...
...
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