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
05d7e6cb
Commit
05d7e6cb
authored
Oct 19, 2007
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdc202xx_new: add DECLARE_PDCNEW_DEV() macro
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
6a7f62af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
57 deletions
+19
-57
drivers/ide/pci/pdc202xx_new.c
drivers/ide/pci/pdc202xx_new.c
+19
-57
No files found.
drivers/ide/pci/pdc202xx_new.c
View file @
05d7e6cb
...
...
@@ -504,64 +504,26 @@ static struct pci_dev * __devinit pdc20270_get_dev2(struct pci_dev *dev)
return
NULL
;
}
static
ide_pci_device_t
pdcnew_chipsets
[]
__devinitdata
=
{
{
/* 0 */
.
name
=
"PDC20268"
,
.
init_chipset
=
init_chipset_pdcnew
,
.
init_hwif
=
init_hwif_pdc202new
,
.
host_flags
=
IDE_HFLAG_POST_SET_MODE
|
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA5
,
},{
/* 1 */
.
name
=
"PDC20269"
,
.
init_chipset
=
init_chipset_pdcnew
,
.
init_hwif
=
init_hwif_pdc202new
,
.
host_flags
=
IDE_HFLAG_POST_SET_MODE
|
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA6
,
},{
/* 2 */
.
name
=
"PDC20270"
,
.
init_chipset
=
init_chipset_pdcnew
,
.
init_hwif
=
init_hwif_pdc202new
,
.
host_flags
=
IDE_HFLAG_POST_SET_MODE
|
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA5
,
},{
/* 3 */
.
name
=
"PDC20271"
,
.
init_chipset
=
init_chipset_pdcnew
,
.
init_hwif
=
init_hwif_pdc202new
,
.
host_flags
=
IDE_HFLAG_POST_SET_MODE
|
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA6
,
},{
/* 4 */
.
name
=
"PDC20275"
,
.
init_chipset
=
init_chipset_pdcnew
,
.
init_hwif
=
init_hwif_pdc202new
,
.
host_flags
=
IDE_HFLAG_POST_SET_MODE
|
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA6
,
},{
/* 5 */
.
name
=
"PDC20276"
,
.
init_chipset
=
init_chipset_pdcnew
,
.
init_hwif
=
init_hwif_pdc202new
,
.
host_flags
=
IDE_HFLAG_POST_SET_MODE
|
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA6
,
},{
/* 6 */
.
name
=
"PDC20277"
,
.
init_chipset
=
init_chipset_pdcnew
,
.
init_hwif
=
init_hwif_pdc202new
,
.
host_flags
=
IDE_HFLAG_POST_SET_MODE
|
IDE_HFLAG_OFF_BOARD
,
.
pio_mask
=
ATA_PIO4
,
.
mwdma_mask
=
ATA_MWDMA2
,
.
udma_mask
=
ATA_UDMA6
,
#define DECLARE_PDCNEW_DEV(name_str, udma) \
{ \
.name = name_str, \
.init_chipset = init_chipset_pdcnew, \
.init_hwif = init_hwif_pdc202new, \
.host_flags = IDE_HFLAG_POST_SET_MODE | \
IDE_HFLAG_OFF_BOARD, \
.pio_mask = ATA_PIO4, \
.mwdma_mask = ATA_MWDMA2, \
.udma_mask = udma, \
}
static
ide_pci_device_t
pdcnew_chipsets
[]
__devinitdata
=
{
/* 0 */
DECLARE_PDCNEW_DEV
(
"PDC20268"
,
ATA_UDMA5
),
/* 1 */
DECLARE_PDCNEW_DEV
(
"PDC20269"
,
ATA_UDMA6
),
/* 2 */
DECLARE_PDCNEW_DEV
(
"PDC20270"
,
ATA_UDMA5
),
/* 3 */
DECLARE_PDCNEW_DEV
(
"PDC20271"
,
ATA_UDMA6
),
/* 4 */
DECLARE_PDCNEW_DEV
(
"PDC20275"
,
ATA_UDMA6
),
/* 5 */
DECLARE_PDCNEW_DEV
(
"PDC20276"
,
ATA_UDMA6
),
/* 6 */
DECLARE_PDCNEW_DEV
(
"PDC20277"
,
ATA_UDMA6
),
};
/**
...
...
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