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
88abbbb6
Commit
88abbbb6
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 intel PIIX for new style dma ifdefs
parent
0158de7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
drivers/ide/pci/piix.c
drivers/ide/pci/piix.c
+1
-10
No files found.
drivers/ide/pci/piix.c
View file @
88abbbb6
...
...
@@ -392,7 +392,6 @@ static int piix_tune_chipset (ide_drive_t *drive, u8 xferspeed)
pci_read_config_byte
(
dev
,
0x55
,
&
reg55
);
switch
(
speed
)
{
#ifdef CONFIG_BLK_DEV_IDEDMA
case
XFER_UDMA_4
:
case
XFER_UDMA_2
:
u_speed
=
2
<<
(
drive
->
dn
*
4
);
break
;
case
XFER_UDMA_5
:
...
...
@@ -402,7 +401,6 @@ static int piix_tune_chipset (ide_drive_t *drive, u8 xferspeed)
case
XFER_MW_DMA_2
:
case
XFER_MW_DMA_1
:
case
XFER_SW_DMA_2
:
break
;
#endif
/* CONFIG_BLK_DEV_IDEDMA */
case
XFER_PIO_4
:
case
XFER_PIO_3
:
case
XFER_PIO_2
:
...
...
@@ -444,8 +442,6 @@ static int piix_tune_chipset (ide_drive_t *drive, u8 xferspeed)
return
(
ide_config_drive_speed
(
drive
,
speed
));
}
#ifdef CONFIG_BLK_DEV_IDEDMA
/**
* piix_config_drive_for_dma - configure drive for DMA
* @drive: IDE drive to configure
...
...
@@ -518,7 +514,6 @@ static int piix_config_drive_xfer_rate (ide_drive_t *drive)
}
return
hwif
->
ide_dma_on
(
drive
);
}
#endif
/* CONFIG_BLK_DEV_IDEDMA */
/**
* init_chipset_piix - set up the PIIX chipset
...
...
@@ -570,10 +565,8 @@ static unsigned int __devinit init_chipset_piix (struct pci_dev *dev, const char
static
void
__init
init_hwif_piix
(
ide_hwif_t
*
hwif
)
{
#ifdef CONFIG_BLK_DEV_IDEDMA
u8
reg54h
=
0
,
reg55h
=
0
,
ata66
=
0
;
u8
mask
=
hwif
->
channel
?
0xc0
:
0x30
;
#endif
/* !CONFIG_BLK_DEV_IDEDMA */
#ifndef CONFIG_IA64
if
(
!
hwif
->
irq
)
...
...
@@ -599,7 +592,6 @@ static void __init init_hwif_piix (ide_hwif_t *hwif)
hwif
->
mwdma_mask
=
0x06
;
hwif
->
swdma_mask
=
0x04
;
#ifdef CONFIG_BLK_DEV_IDEDMA
switch
(
hwif
->
pci_dev
->
device
)
{
case
PCI_DEVICE_ID_INTEL_82371MX
:
hwif
->
mwdma_mask
=
0x80
;
...
...
@@ -630,7 +622,6 @@ static void __init init_hwif_piix (ide_hwif_t *hwif)
hwif
->
drives
[
1
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
0
].
autodma
=
hwif
->
autodma
;
#endif
/* !CONFIG_BLK_DEV_IDEDMA */
}
/**
...
...
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