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
cf953c1b
Commit
cf953c1b
authored
Feb 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Feb 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix ide_ioreg_t and ifdefs in iops
parent
8ae7d0bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/ide/ide-iops.c
drivers/ide/ide-iops.c
+6
-6
No files found.
drivers/ide/ide-iops.c
View file @
cf953c1b
...
@@ -302,7 +302,7 @@ EXPORT_SYMBOL(QUIRK_LIST);
...
@@ -302,7 +302,7 @@ EXPORT_SYMBOL(QUIRK_LIST);
* of the sector count register location, with interrupts disabled
* of the sector count register location, with interrupts disabled
* to ensure that the reads all happen together.
* to ensure that the reads all happen together.
*/
*/
void
ata_vlb_sync
(
ide_drive_t
*
drive
,
ide_ioreg_t
port
)
void
ata_vlb_sync
(
ide_drive_t
*
drive
,
unsigned
long
port
)
{
{
(
void
)
HWIF
(
drive
)
->
INB
(
port
);
(
void
)
HWIF
(
drive
)
->
INB
(
port
);
(
void
)
HWIF
(
drive
)
->
INB
(
port
);
(
void
)
HWIF
(
drive
)
->
INB
(
port
);
...
@@ -876,9 +876,9 @@ int ide_config_drive_speed (ide_drive_t *drive, u8 speed)
...
@@ -876,9 +876,9 @@ int ide_config_drive_speed (ide_drive_t *drive, u8 speed)
// while (HWGROUP(drive)->busy)
// while (HWGROUP(drive)->busy)
// ide_delay_50ms();
// ide_delay_50ms();
#if !defined(CONFIG_DMA_NONPCI)
#if
defined(CONFIG_BLK_DEV_IDEDMA) &&
!defined(CONFIG_DMA_NONPCI)
hwif
->
ide_dma_host_off
(
drive
);
hwif
->
ide_dma_host_off
(
drive
);
#endif
/* !(CONFIG_DMA_NONPCI) */
#endif
/*
(CONFIG_BLK_DEV_IDEDMA) &&
!(CONFIG_DMA_NONPCI) */
/*
/*
* Don't use ide_wait_cmd here - it will
* Don't use ide_wait_cmd here - it will
...
@@ -944,12 +944,12 @@ int ide_config_drive_speed (ide_drive_t *drive, u8 speed)
...
@@ -944,12 +944,12 @@ int ide_config_drive_speed (ide_drive_t *drive, u8 speed)
drive
->
id
->
dma_mword
&=
~
0x0F00
;
drive
->
id
->
dma_mword
&=
~
0x0F00
;
drive
->
id
->
dma_1word
&=
~
0x0F00
;
drive
->
id
->
dma_1word
&=
~
0x0F00
;
#if !defined(CONFIG_DMA_NONPCI)
#if
defined(CONFIG_BLK_DEV_IDEDMA) &&
!defined(CONFIG_DMA_NONPCI)
if
(
speed
>=
XFER_SW_DMA_0
)
if
(
speed
>=
XFER_SW_DMA_0
)
hwif
->
ide_dma_host_on
(
drive
);
hwif
->
ide_dma_host_on
(
drive
);
else
else
hwif
->
ide_dma_off
(
drive
);
hwif
->
ide_dma_off
_quietly
(
drive
);
#endif
/* !(CONFIG_DMA_NONPCI) */
#endif
/*
(CONFIG_BLK_DEV_IDEDMA) &&
!(CONFIG_DMA_NONPCI) */
switch
(
speed
)
{
switch
(
speed
)
{
case
XFER_UDMA_7
:
drive
->
id
->
dma_ultra
|=
0x8080
;
break
;
case
XFER_UDMA_7
:
drive
->
id
->
dma_ultra
|=
0x8080
;
break
;
...
...
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