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
ea6f5b8b
Commit
ea6f5b8b
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 aec proc handling
parent
f105a29b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
drivers/ide/pci/aec62xx.c
drivers/ide/pci/aec62xx.c
+7
-2
No files found.
drivers/ide/pci/aec62xx.c
View file @
ea6f5b8b
...
@@ -38,6 +38,7 @@ static int aec62xx_get_info (char *buffer, char **addr, off_t offset, int count)
...
@@ -38,6 +38,7 @@ static int aec62xx_get_info (char *buffer, char **addr, off_t offset, int count)
char
*
chipset_nums
[]
=
{
"error"
,
"error"
,
"error"
,
"error"
,
char
*
chipset_nums
[]
=
{
"error"
,
"error"
,
"error"
,
"error"
,
"error"
,
"error"
,
"850UF"
,
"860"
,
"error"
,
"error"
,
"850UF"
,
"860"
,
"860R"
,
"865"
,
"865R"
,
"error"
};
"860R"
,
"865"
,
"865R"
,
"error"
};
int
len
;
int
i
;
int
i
;
for
(
i
=
0
;
i
<
n_aec_devs
;
i
++
)
{
for
(
i
=
0
;
i
<
n_aec_devs
;
i
++
)
{
...
@@ -170,7 +171,11 @@ static int aec62xx_get_info (char *buffer, char **addr, off_t offset, int count)
...
@@ -170,7 +171,11 @@ static int aec62xx_get_info (char *buffer, char **addr, off_t offset, int count)
#endif
/* DEBUG_AEC_REGS */
#endif
/* DEBUG_AEC_REGS */
}
}
}
}
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_AEC62xx_TIMINGS) && defined(CONFIG_PROC_FS) */
#endif
/* defined(DISPLAY_AEC62xx_TIMINGS) && defined(CONFIG_PROC_FS) */
...
@@ -324,7 +329,7 @@ static int aec62xx_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -324,7 +329,7 @@ static int aec62xx_config_drive_xfer_rate (ide_drive_t *drive)
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
ide_hwif_t
*
hwif
=
HWIF
(
drive
);
struct
hd_driveid
*
id
=
drive
->
id
;
struct
hd_driveid
*
id
=
drive
->
id
;
if
(
id
&&
(
id
->
capability
&
1
)
&&
drive
->
autodma
)
{
if
((
id
->
capability
&
1
)
&&
drive
->
autodma
)
{
/* Consult the list of known "bad" drives */
/* Consult the list of known "bad" drives */
if
(
hwif
->
ide_dma_bad_drive
(
drive
))
if
(
hwif
->
ide_dma_bad_drive
(
drive
))
goto
fast_ata_pio
;
goto
fast_ata_pio
;
...
...
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