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
7320c47f
Commit
7320c47f
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] add ICH5 and Centrino to PIIX4
parent
716681ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
3 deletions
+53
-3
drivers/ide/pci/piix.c
drivers/ide/pci/piix.c
+11
-3
drivers/ide/pci/piix.h
drivers/ide/pci/piix.h
+42
-0
No files found.
drivers/ide/pci/piix.c
View file @
7320c47f
/*
/*
* linux/drivers/ide/pci/piix.c Version 0.4
2 January 11
, 2003
* linux/drivers/ide/pci/piix.c Version 0.4
4 March 20
, 2003
*
*
* Copyright (C) 1998-1999 Andrzej Krzysztofowicz, Author and Maintainer
* Copyright (C) 1998-1999 Andrzej Krzysztofowicz, Author and Maintainer
* Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org>
* Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org>
...
@@ -146,7 +146,9 @@ static int piix_get_info (char *buffer, char **addr, off_t offset, int count)
...
@@ -146,7 +146,9 @@ static int piix_get_info (char *buffer, char **addr, off_t offset, int count)
case
PCI_DEVICE_ID_INTEL_82801BA_9
:
case
PCI_DEVICE_ID_INTEL_82801BA_9
:
case
PCI_DEVICE_ID_INTEL_82801CA_10
:
case
PCI_DEVICE_ID_INTEL_82801CA_10
:
case
PCI_DEVICE_ID_INTEL_82801CA_11
:
case
PCI_DEVICE_ID_INTEL_82801CA_11
:
case
PCI_DEVICE_ID_INTEL_82801DB_10
:
case
PCI_DEVICE_ID_INTEL_82801DB_11
:
case
PCI_DEVICE_ID_INTEL_82801DB_11
:
case
PCI_DEVICE_ID_INTEL_82801EB_11
:
case
PCI_DEVICE_ID_INTEL_82801E_11
:
case
PCI_DEVICE_ID_INTEL_82801E_11
:
p
+=
sprintf
(
p
,
"PIIX4 Ultra 100 "
);
p
+=
sprintf
(
p
,
"PIIX4 Ultra 100 "
);
break
;
break
;
...
@@ -279,7 +281,9 @@ static u8 piix_ratemask (ide_drive_t *drive)
...
@@ -279,7 +281,9 @@ static u8 piix_ratemask (ide_drive_t *drive)
case
PCI_DEVICE_ID_INTEL_82801CA_10
:
case
PCI_DEVICE_ID_INTEL_82801CA_10
:
case
PCI_DEVICE_ID_INTEL_82801CA_11
:
case
PCI_DEVICE_ID_INTEL_82801CA_11
:
case
PCI_DEVICE_ID_INTEL_82801E_11
:
case
PCI_DEVICE_ID_INTEL_82801E_11
:
case
PCI_DEVICE_ID_INTEL_82801DB_10
:
case
PCI_DEVICE_ID_INTEL_82801DB_11
:
case
PCI_DEVICE_ID_INTEL_82801DB_11
:
case
PCI_DEVICE_ID_INTEL_82801EB_11
:
mode
=
3
;
mode
=
3
;
break
;
break
;
/* UDMA 66 capable */
/* UDMA 66 capable */
...
@@ -551,7 +555,7 @@ static int piix_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -551,7 +555,7 @@ static int piix_config_drive_xfer_rate (ide_drive_t *drive)
drive
->
init_speed
=
0
;
drive
->
init_speed
=
0
;
if
(
id
&&
(
id
->
capability
&
1
)
&&
drive
->
autodma
)
{
if
((
id
->
capability
&
1
)
&&
drive
->
autodma
)
{
/* Consult the list of known "bad" drives */
/* Consult the list of known "bad" drives */
if
(
hwif
->
ide_dma_bad_drive
(
drive
))
if
(
hwif
->
ide_dma_bad_drive
(
drive
))
goto
fast_ata_pio
;
goto
fast_ata_pio
;
...
@@ -605,7 +609,9 @@ static unsigned int __devinit init_chipset_piix (struct pci_dev *dev, const char
...
@@ -605,7 +609,9 @@ static unsigned int __devinit init_chipset_piix (struct pci_dev *dev, const char
case
PCI_DEVICE_ID_INTEL_82801BA_9
:
case
PCI_DEVICE_ID_INTEL_82801BA_9
:
case
PCI_DEVICE_ID_INTEL_82801CA_10
:
case
PCI_DEVICE_ID_INTEL_82801CA_10
:
case
PCI_DEVICE_ID_INTEL_82801CA_11
:
case
PCI_DEVICE_ID_INTEL_82801CA_11
:
case
PCI_DEVICE_ID_INTEL_82801DB_10
:
case
PCI_DEVICE_ID_INTEL_82801DB_11
:
case
PCI_DEVICE_ID_INTEL_82801DB_11
:
case
PCI_DEVICE_ID_INTEL_82801EB_11
:
case
PCI_DEVICE_ID_INTEL_82801E_11
:
case
PCI_DEVICE_ID_INTEL_82801E_11
:
{
{
unsigned
int
extra
=
0
;
unsigned
int
extra
=
0
;
...
@@ -794,7 +800,9 @@ static struct pci_device_id piix_pci_tbl[] __devinitdata = {
...
@@ -794,7 +800,9 @@ static struct pci_device_id piix_pci_tbl[] __devinitdata = {
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_10
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
12
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_10
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
12
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_11
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
13
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_11
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
13
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801DB_11
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
14
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801DB_11
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
14
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801E_11
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
15
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801EB_11
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
15
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801E_11
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
16
},
{
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801DB_10
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
17
},
{
0
,
},
{
0
,
},
};
};
...
...
drivers/ide/pci/piix.h
View file @
7320c47f
...
@@ -250,6 +250,20 @@ static ide_pci_device_t piix_pci_info[] __devinitdata = {
...
@@ -250,6 +250,20 @@ static ide_pci_device_t piix_pci_info[] __devinitdata = {
.
bootable
=
ON_BOARD
,
.
bootable
=
ON_BOARD
,
.
extra
=
0
,
.
extra
=
0
,
},{
/* 15 */
},{
/* 15 */
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_82801EB_11
,
.
name
=
"ICH5"
,
.
init_setup
=
init_setup_piix
,
.
init_chipset
=
init_chipset_piix
,
.
init_iops
=
NULL
,
.
init_hwif
=
init_hwif_piix
,
.
init_dma
=
init_dma_piix
,
.
channels
=
2
,
.
autodma
=
AUTODMA
,
.
enablebits
=
{{
0x41
,
0x80
,
0x80
},
{
0x43
,
0x80
,
0x80
}},
.
bootable
=
ON_BOARD
,
.
extra
=
0
,
},{
/* 16 */
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_82801E_11
,
.
device
=
PCI_DEVICE_ID_INTEL_82801E_11
,
.
name
=
"C-ICH"
,
.
name
=
"C-ICH"
,
...
@@ -263,6 +277,34 @@ static ide_pci_device_t piix_pci_info[] __devinitdata = {
...
@@ -263,6 +277,34 @@ static ide_pci_device_t piix_pci_info[] __devinitdata = {
.
enablebits
=
{{
0x41
,
0x80
,
0x80
},
{
0x43
,
0x80
,
0x80
}},
.
enablebits
=
{{
0x41
,
0x80
,
0x80
},
{
0x43
,
0x80
,
0x80
}},
.
bootable
=
ON_BOARD
,
.
bootable
=
ON_BOARD
,
.
extra
=
0
,
.
extra
=
0
,
},{
/* 17 */
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_82801DB_10
,
.
name
=
"ICH4"
,
.
init_setup
=
init_setup_piix
,
.
init_chipset
=
init_chipset_piix
,
.
init_iops
=
NULL
,
.
init_hwif
=
init_hwif_piix
,
.
init_dma
=
init_dma_piix
,
.
channels
=
2
,
.
autodma
=
AUTODMA
,
.
enablebits
=
{{
0x41
,
0x80
,
0x80
},
{
0x43
,
0x80
,
0x80
}},
.
bootable
=
ON_BOARD
,
.
extra
=
0
,
},{
/* 17 */
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_82801DB_10
,
.
name
=
"ICH4"
,
.
init_setup
=
init_setup_piix
,
.
init_chipset
=
init_chipset_piix
,
.
init_iops
=
NULL
,
.
init_hwif
=
init_hwif_piix
,
.
init_dma
=
init_dma_piix
,
.
channels
=
2
,
.
autodma
=
AUTODMA
,
.
enablebits
=
{{
0x41
,
0x80
,
0x80
},
{
0x43
,
0x80
,
0x80
}},
.
bootable
=
ON_BOARD
,
.
extra
=
0
,
},{
},{
.
vendor
=
0
,
.
vendor
=
0
,
.
device
=
0
,
.
device
=
0
,
...
...
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