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
489d6092
Commit
489d6092
authored
Jan 08, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
c994ae17
89b75825
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
drivers/pci/quirks.c
drivers/pci/quirks.c
+5
-1
drivers/scsi/ahci.c
drivers/scsi/ahci.c
+6
-2
drivers/scsi/ata_piix.c
drivers/scsi/ata_piix.c
+15
-0
No files found.
drivers/pci/quirks.c
View file @
489d6092
...
@@ -1164,6 +1164,10 @@ static void __devinit quirk_intel_ide_combined(struct pci_dev *pdev)
...
@@ -1164,6 +1164,10 @@ static void __devinit quirk_intel_ide_combined(struct pci_dev *pdev)
case
0x2653
:
case
0x2653
:
ich
=
6
;
ich
=
6
;
break
;
break
;
case
0x27c0
:
case
0x27c4
:
ich
=
7
;
break
;
default:
default:
/* we do not handle this PCI device */
/* we do not handle this PCI device */
return
;
return
;
...
@@ -1183,7 +1187,7 @@ static void __devinit quirk_intel_ide_combined(struct pci_dev *pdev)
...
@@ -1183,7 +1187,7 @@ static void __devinit quirk_intel_ide_combined(struct pci_dev *pdev)
else
else
return
;
/* not in combined mode */
return
;
/* not in combined mode */
}
else
{
}
else
{
WARN_ON
(
ich
!=
6
);
WARN_ON
(
(
ich
!=
6
)
&&
(
ich
!=
7
)
);
tmp
&=
0x3
;
/* interesting bits 1:0 */
tmp
&=
0x3
;
/* interesting bits 1:0 */
if
(
tmp
&
(
1
<<
0
))
if
(
tmp
&
(
1
<<
0
))
comb
=
(
1
<<
2
);
/* PATA port 0, SATA port 1 */
comb
=
(
1
<<
2
);
/* PATA port 0, SATA port 1 */
...
...
drivers/scsi/ahci.c
View file @
489d6092
...
@@ -239,9 +239,13 @@ static struct ata_port_info ahci_port_info[] = {
...
@@ -239,9 +239,13 @@ static struct ata_port_info ahci_port_info[] = {
static
struct
pci_device_id
ahci_pci_tbl
[]
=
{
static
struct
pci_device_id
ahci_pci_tbl
[]
=
{
{
PCI_VENDOR_ID_INTEL
,
0x2652
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
{
PCI_VENDOR_ID_INTEL
,
0x2652
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
board_ahci
},
board_ahci
},
/* ICH6 */
{
PCI_VENDOR_ID_INTEL
,
0x2653
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
{
PCI_VENDOR_ID_INTEL
,
0x2653
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
board_ahci
},
board_ahci
},
/* ICH6M */
{
PCI_VENDOR_ID_INTEL
,
0x27c1
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
board_ahci
},
/* ICH7 */
{
PCI_VENDOR_ID_INTEL
,
0x27c5
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
board_ahci
},
/* ICH7M */
{
}
/* terminate list */
{
}
/* terminate list */
};
};
...
...
drivers/scsi/ata_piix.c
View file @
489d6092
...
@@ -60,6 +60,7 @@ enum {
...
@@ -60,6 +60,7 @@ enum {
piix4_pata
=
2
,
piix4_pata
=
2
,
ich6_sata
=
3
,
ich6_sata
=
3
,
ich6_sata_rm
=
4
,
ich6_sata_rm
=
4
,
ich7_sata
=
5
,
};
};
static
int
piix_init_one
(
struct
pci_dev
*
pdev
,
static
int
piix_init_one
(
struct
pci_dev
*
pdev
,
...
@@ -90,6 +91,8 @@ static struct pci_device_id piix_pci_tbl[] = {
...
@@ -90,6 +91,8 @@ static struct pci_device_id piix_pci_tbl[] = {
{
0x8086
,
0x2651
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata
},
{
0x8086
,
0x2651
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata
},
{
0x8086
,
0x2652
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata_rm
},
{
0x8086
,
0x2652
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata_rm
},
{
0x8086
,
0x2653
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata_rm
},
{
0x8086
,
0x2653
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata_rm
},
{
0x8086
,
0x27c0
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich7_sata
},
{
0x8086
,
0x27c4
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich7_sata
},
{
}
/* terminate list */
{
}
/* terminate list */
};
};
...
@@ -236,6 +239,18 @@ static struct ata_port_info piix_port_info[] = {
...
@@ -236,6 +239,18 @@ static struct ata_port_info piix_port_info[] = {
.
udma_mask
=
0x7f
,
/* udma0-6 */
.
udma_mask
=
0x7f
,
/* udma0-6 */
.
port_ops
=
&
piix_sata_ops
,
.
port_ops
=
&
piix_sata_ops
,
},
},
/* ich7_sata */
{
.
sht
=
&
piix_sht
,
.
host_flags
=
ATA_FLAG_SATA
|
ATA_FLAG_SRST
|
PIIX_FLAG_COMBINED
|
PIIX_FLAG_CHECKINTR
|
ATA_FLAG_SLAVE_POSS
|
PIIX_FLAG_AHCI
,
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 */
.
port_ops
=
&
piix_sata_ops
,
},
};
};
static
struct
pci_bits
piix_enable_bits
[]
=
{
static
struct
pci_bits
piix_enable_bits
[]
=
{
...
...
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