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
5ef8cb5d
Commit
5ef8cb5d
authored
Oct 19, 2007
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdc202xx_old: add DECLARE_PDC2026X_DEV() macro
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
05d7e6cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
41 deletions
+19
-41
drivers/ide/pci/pdc202xx_old.c
drivers/ide/pci/pdc202xx_old.c
+19
-41
No files found.
drivers/ide/pci/pdc202xx_old.c
View file @
5ef8cb5d
...
...
@@ -386,6 +386,19 @@ static void __devinit pdc202ata4_fixup_irq(struct pci_dev *dev,
}
}
#define DECLARE_PDC2026X_DEV(name_str, udma) \
{ \
.name = name_str, \
.init_chipset = init_chipset_pdc202xx, \
.init_hwif = init_hwif_pdc202xx, \
.init_dma = init_dma_pdc202xx, \
.extra = 48, \
.host_flags = IDE_HFLAG_OFF_BOARD, \
.pio_mask = ATA_PIO4, \
.mwdma_mask = ATA_MWDMA2, \
.udma_mask = udma, \
}
static
ide_pci_device_t
pdc202xx_chipsets
[]
__devinitdata
=
{
{
/* 0 */
.
name
=
"PDC20246"
,
...
...
@@ -397,47 +410,12 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = {
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA2
,
},{
/* 1 */
.
name
=
"PDC20262"
,
.
init_chipset
=
init_chipset_pdc202xx
,
.
init_hwif
=
init_hwif_pdc202xx
,
.
init_dma
=
init_dma_pdc202xx
,
.
extra
=
48
,
.
host_flags
=
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA4
,
},{
/* 2 */
.
name
=
"PDC20263"
,
.
init_chipset
=
init_chipset_pdc202xx
,
.
init_hwif
=
init_hwif_pdc202xx
,
.
init_dma
=
init_dma_pdc202xx
,
.
extra
=
48
,
.
host_flags
=
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA4
,
},{
/* 3 */
.
name
=
"PDC20265"
,
.
init_chipset
=
init_chipset_pdc202xx
,
.
init_hwif
=
init_hwif_pdc202xx
,
.
init_dma
=
init_dma_pdc202xx
,
.
extra
=
48
,
.
host_flags
=
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA5
,
},{
/* 4 */
.
name
=
"PDC20267"
,
.
init_chipset
=
init_chipset_pdc202xx
,
.
init_hwif
=
init_hwif_pdc202xx
,
.
init_dma
=
init_dma_pdc202xx
,
.
extra
=
48
,
.
host_flags
=
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA5
,
}
},
/* 1 */
DECLARE_PDC2026X_DEV
(
"PDC20262"
,
ATA_UDMA4
),
/* 2 */
DECLARE_PDC2026X_DEV
(
"PDC20263"
,
ATA_UDMA4
),
/* 3 */
DECLARE_PDC2026X_DEV
(
"PDC20265"
,
ATA_UDMA5
),
/* 4 */
DECLARE_PDC2026X_DEV
(
"PDC20267"
,
ATA_UDMA5
),
};
/**
...
...
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