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
Kirill Smelkov
linux
Commits
61ffc94c
Commit
61ffc94c
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 sis, siimageand slc90e66
parent
4872acfd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
drivers/ide/pci/siimage.c
drivers/ide/pci/siimage.c
+6
-1
drivers/ide/pci/sis5513.c
drivers/ide/pci/sis5513.c
+5
-1
drivers/ide/pci/slc90e66.c
drivers/ide/pci/slc90e66.c
+7
-2
No files found.
drivers/ide/pci/siimage.c
View file @
61ffc94c
...
...
@@ -55,6 +55,7 @@ static char * print_siimage_get_info (char *buf, struct pci_dev *dev, int index)
static
int
siimage_get_info
(
char
*
buffer
,
char
**
addr
,
off_t
offset
,
int
count
)
{
char
*
p
=
buffer
;
int
len
;
u16
i
;
p
+=
sprintf
(
p
,
"
\n
"
);
...
...
@@ -62,7 +63,11 @@ static int siimage_get_info (char *buffer, char **addr, off_t offset, int count)
struct
pci_dev
*
dev
=
siimage_devs
[
i
];
p
=
print_siimage_get_info
(
p
,
dev
,
i
);
}
return
p
-
buffer
;
/* => must be less than 4k! */
/* p - buffer must be less than 4k! */
len
=
(
p
-
buffer
)
-
offset
;
*
addr
=
buffer
+
offset
;
return
len
>
count
?
count
:
len
;
}
#endif
/* defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS) */
...
...
drivers/ide/pci/sis5513.c
View file @
61ffc94c
...
...
@@ -424,6 +424,7 @@ static char* get_slaves_info(char* buffer)
static
int
sis_get_info
(
char
*
buffer
,
char
**
addr
,
off_t
offset
,
int
count
)
{
char
*
p
=
buffer
;
int
len
;
u8
reg
;
u16
reg2
,
reg3
;
...
...
@@ -494,7 +495,10 @@ static int sis_get_info (char *buffer, char **addr, off_t offset, int count)
p
=
get_masters_info
(
p
);
p
=
get_slaves_info
(
p
);
return
p
-
buffer
;
len
=
(
p
-
buffer
)
-
offset
;
*
addr
=
buffer
+
offset
;
return
len
>
count
?
count
:
len
;
}
#endif
/* defined(DISPLAY_SIS_TIMINGS) && defined(CONFIG_PROC_FS) */
...
...
drivers/ide/pci/slc90e66.c
View file @
61ffc94c
...
...
@@ -34,8 +34,9 @@ static struct pci_dev *bmide_dev;
static
int
slc90e66_get_info
(
char
*
buffer
,
char
**
addr
,
off_t
offset
,
int
count
)
{
char
*
p
=
buffer
;
int
len
;
unsigned
long
bibma
=
pci_resource_start
(
bmide_dev
,
4
);
u16
reg40
=
0
,
psitre
=
0
,
reg42
=
0
,
ssitre
=
0
;
u16
reg40
=
0
,
psitre
=
0
,
reg42
=
0
,
ssitre
=
0
;
u8
c0
=
0
,
c1
=
0
;
u8
reg44
=
0
,
reg47
=
0
,
reg48
=
0
,
reg4a
=
0
,
reg4b
=
0
;
...
...
@@ -110,7 +111,11 @@ static int slc90e66_get_info (char *buffer, char **addr, off_t offset, int count
* FIXME.... Add configuration junk data....blah blah......
*/
return
p
-
buffer
;
/* => must be less than 4k! */
/* p - buffer must be less than 4k! */
len
=
(
p
-
buffer
)
-
offset
;
*
addr
=
buffer
+
offset
;
return
len
>
count
?
count
:
len
;
}
#endif
/* defined(DISPLAY_SLC90E66_TIMINGS) && defined(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