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
e4f5c9d4
Commit
e4f5c9d4
authored
May 06, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hand merge of davej's x86 pci-pc janitor work
parent
c9a80ca7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
arch/i386/kernel/pci/direct.c
arch/i386/kernel/pci/direct.c
+6
-4
arch/i386/kernel/pci/fixup.c
arch/i386/kernel/pci/fixup.c
+1
-1
arch/i386/kernel/pci/legacy.c
arch/i386/kernel/pci/legacy.c
+1
-1
arch/i386/kernel/pci/pcbios.c
arch/i386/kernel/pci/pcbios.c
+6
-6
No files found.
arch/i386/kernel/pci/direct.c
View file @
e4f5c9d4
...
...
@@ -318,8 +318,9 @@ static struct pci_ops * __devinit pci_check_direct(void)
pci_sanity_check
(
&
pci_direct_conf1
))
{
outl
(
tmp
,
0xCF8
);
__restore_flags
(
flags
);
printk
(
"PCI: Using configuration type 1
\n
"
);
request_region
(
0xCF8
,
8
,
"PCI conf1"
);
printk
(
KERN_INFO
"PCI: Using configuration type 1
\n
"
);
if
(
!
request_region
(
0xCF8
,
8
,
"PCI conf1"
))
return
NULL
;
return
&
pci_direct_conf1
;
}
outl
(
tmp
,
0xCF8
);
...
...
@@ -335,8 +336,9 @@ static struct pci_ops * __devinit pci_check_direct(void)
if
(
inb
(
0xCF8
)
==
0x00
&&
inb
(
0xCFA
)
==
0x00
&&
pci_sanity_check
(
&
pci_direct_conf2
))
{
__restore_flags
(
flags
);
printk
(
"PCI: Using configuration type 2
\n
"
);
request_region
(
0xCF8
,
4
,
"PCI conf2"
);
printk
(
KERN_INFO
"PCI: Using configuration type 2
\n
"
);
if
(
!
request_region
(
0xCF8
,
4
,
"PCI conf2"
))
return
NULL
;
return
&
pci_direct_conf2
;
}
}
...
...
arch/i386/kernel/pci/fixup.c
View file @
e4f5c9d4
...
...
@@ -37,7 +37,7 @@ static void __devinit pci_fixup_i450gx(struct pci_dev *d)
*/
u8
busno
;
pci_read_config_byte
(
d
,
0x4a
,
&
busno
);
printk
(
KERN_
WARNING
"PCI: i440KX/GX host bridge %s: secondary bus %02x
\n
"
,
d
->
slot_name
,
busno
);
printk
(
KERN_
INFO
"PCI: i440KX/GX host bridge %s: secondary bus %02x
\n
"
,
d
->
slot_name
,
busno
);
pci_scan_bus
(
busno
,
pci_root_ops
,
NULL
);
pcibios_last_bus
=
-
1
;
}
...
...
arch/i386/kernel/pci/legacy.c
View file @
e4f5c9d4
...
...
@@ -28,7 +28,7 @@ static void __devinit pcibios_fixup_peer_bridges(void)
if
(
!
pci_read_config_word
(
&
dev
,
PCI_VENDOR_ID
,
&
l
)
&&
l
!=
0x0000
&&
l
!=
0xffff
)
{
DBG
(
"Found device at %02x:%02x [%04x]
\n
"
,
n
,
dev
.
devfn
,
l
);
printk
(
"PCI: Discovered peer bus %02x
\n
"
,
n
);
printk
(
KERN_INFO
"PCI: Discovered peer bus %02x
\n
"
,
n
);
pci_scan_bus
(
n
,
pci_root_ops
,
NULL
);
break
;
}
...
...
arch/i386/kernel/pci/pcbios.c
View file @
e4f5c9d4
...
...
@@ -96,10 +96,10 @@ static unsigned long bios32_service(unsigned long service)
case
0
:
return
address
+
entry
;
case
0x80
:
/* Not present */
printk
(
"bios32_service(0x%lx): not present
\n
"
,
service
);
printk
(
KERN_WARNING
"bios32_service(0x%lx): not present
\n
"
,
service
);
return
0
;
default:
/* Shouldn't happen */
printk
(
"bios32_service(0x%lx): returned 0x%x -- BIOS bug!
\n
"
,
printk
(
KERN_WARNING
"bios32_service(0x%lx): returned 0x%x -- BIOS bug!
\n
"
,
service
,
return_code
);
return
0
;
}
...
...
@@ -149,7 +149,7 @@ static int __devinit check_pcibios(void)
status
,
signature
);
return
0
;
}
printk
(
"PCI: PCI BIOS revision %x.%02x entry at 0x%lx, last bus=%d
\n
"
,
printk
(
KERN_INFO
"PCI: PCI BIOS revision %x.%02x entry at 0x%lx, last bus=%d
\n
"
,
major_ver
,
minor_ver
,
pcibios_entry
,
pcibios_last_bus
);
#ifdef CONFIG_PCI_DIRECT
if
(
!
(
hw_mech
&
PCIBIOS_HW_TYPE1
))
...
...
@@ -451,7 +451,7 @@ void __devinit pcibios_sort(void)
}
}
if
(
ln
==
&
pci_devices
)
{
printk
(
"PCI: BIOS reporting unknown device %02x:%02x
\n
"
,
bus
,
devfn
);
printk
(
KERN_WARNING
"PCI: BIOS reporting unknown device %02x:%02x
\n
"
,
bus
,
devfn
);
/*
* We must not continue scanning as several buggy BIOSes
* return garbage after the last device. Grr.
...
...
@@ -460,7 +460,7 @@ void __devinit pcibios_sort(void)
}
}
if
(
!
found
)
{
printk
(
"PCI: Device %02x:%02x not found by BIOS
\n
"
,
printk
(
KERN_WARNING
"PCI: Device %02x:%02x not found by BIOS
\n
"
,
dev
->
bus
->
number
,
dev
->
devfn
);
list_del
(
&
dev
->
global_list
);
list_add_tail
(
&
dev
->
global_list
,
&
sorted_devices
);
...
...
@@ -520,7 +520,7 @@ struct irq_routing_table * __devinit pcibios_get_irq_routing_table(void)
rt
->
size
=
opt
.
size
+
sizeof
(
struct
irq_routing_table
);
rt
->
exclusive_irqs
=
map
;
memcpy
(
rt
->
slots
,
(
void
*
)
page
,
opt
.
size
);
printk
(
"PCI: Using BIOS Interrupt Routing Table
\n
"
);
printk
(
KERN_INFO
"PCI: Using BIOS Interrupt Routing Table
\n
"
);
}
}
free_page
(
page
);
...
...
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