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
7e174fd3
Commit
7e174fd3
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] clean up ite ide for new ifdef stuff
parent
6ce90957
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
drivers/ide/pci/it8172.c
drivers/ide/pci/it8172.c
+0
-6
No files found.
drivers/ide/pci/it8172.c
View file @
7e174fd3
...
@@ -151,7 +151,6 @@ static int it8172_tune_chipset (ide_drive_t *drive, u8 xferspeed)
...
@@ -151,7 +151,6 @@ static int it8172_tune_chipset (ide_drive_t *drive, u8 xferspeed)
*/
*/
switch
(
speed
)
{
switch
(
speed
)
{
#ifdef CONFIG_BLK_DEV_IDEDMA
case
XFER_UDMA_4
:
case
XFER_UDMA_4
:
case
XFER_UDMA_2
:
//u_speed = 2 << (drive->dn * 4); break;
case
XFER_UDMA_2
:
//u_speed = 2 << (drive->dn * 4); break;
case
XFER_UDMA_5
:
case
XFER_UDMA_5
:
...
@@ -162,7 +161,6 @@ static int it8172_tune_chipset (ide_drive_t *drive, u8 xferspeed)
...
@@ -162,7 +161,6 @@ static int it8172_tune_chipset (ide_drive_t *drive, u8 xferspeed)
case
XFER_MW_DMA_1
:
case
XFER_MW_DMA_1
:
case
XFER_MW_DMA_0
:
case
XFER_MW_DMA_0
:
case
XFER_SW_DMA_2
:
break
;
case
XFER_SW_DMA_2
:
break
;
#endif
/* CONFIG_BLK_DEV_IDEDMA */
case
XFER_PIO_4
:
case
XFER_PIO_4
:
case
XFER_PIO_3
:
case
XFER_PIO_3
:
case
XFER_PIO_2
:
case
XFER_PIO_2
:
...
@@ -183,7 +181,6 @@ static int it8172_tune_chipset (ide_drive_t *drive, u8 xferspeed)
...
@@ -183,7 +181,6 @@ static int it8172_tune_chipset (ide_drive_t *drive, u8 xferspeed)
return
(
ide_config_drive_speed
(
drive
,
speed
));
return
(
ide_config_drive_speed
(
drive
,
speed
));
}
}
#ifdef CONFIG_BLK_DEV_IDEDMA
static
int
it8172_config_chipset_for_dma
(
ide_drive_t
*
drive
)
static
int
it8172_config_chipset_for_dma
(
ide_drive_t
*
drive
)
{
{
u8
speed
=
ide_dma_speed
(
drive
,
it8172_ratemask
(
drive
));
u8
speed
=
ide_dma_speed
(
drive
,
it8172_ratemask
(
drive
));
...
@@ -239,7 +236,6 @@ static int it8172_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -239,7 +236,6 @@ static int it8172_config_drive_xfer_rate (ide_drive_t *drive)
}
}
return
hwif
->
ide_dma_on
(
drive
);
return
hwif
->
ide_dma_on
(
drive
);
}
}
#endif
/* CONFIG_BLK_DEV_IDEDMA */
static
unsigned
int
__init
init_chipset_it8172
(
struct
pci_dev
*
dev
,
const
char
*
name
)
static
unsigned
int
__init
init_chipset_it8172
(
struct
pci_dev
*
dev
,
const
char
*
name
)
{
{
...
@@ -282,13 +278,11 @@ static void __init init_hwif_it8172 (ide_hwif_t *hwif)
...
@@ -282,13 +278,11 @@ static void __init init_hwif_it8172 (ide_hwif_t *hwif)
hwif
->
mwdma_mask
=
0x06
;
hwif
->
mwdma_mask
=
0x06
;
hwif
->
swdma_mask
=
0x04
;
hwif
->
swdma_mask
=
0x04
;
#ifdef CONFIG_BLK_DEV_IDEDMA
hwif
->
ide_dma_check
=
&
it8172_config_drive_xfer_rate
;
hwif
->
ide_dma_check
=
&
it8172_config_drive_xfer_rate
;
if
(
!
noautodma
)
if
(
!
noautodma
)
hwif
->
autodma
=
1
;
hwif
->
autodma
=
1
;
hwif
->
drives
[
0
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
0
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
1
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
1
].
autodma
=
hwif
->
autodma
;
#endif
/* !CONFIG_BLK_DEV_IDEDMA */
}
}
static
void
__init
init_dma_it8172
(
ide_hwif_t
*
hwif
,
unsigned
long
dmabase
)
static
void
__init
init_dma_it8172
(
ide_hwif_t
*
hwif
,
unsigned
long
dmabase
)
...
...
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