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
e2349697
Commit
e2349697
authored
Mar 05, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://are.twiddle.net/axp-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
3c0ba99c
ba646b39
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
23 deletions
+39
-23
arch/alpha/kernel/core_marvel.c
arch/alpha/kernel/core_marvel.c
+1
-1
arch/alpha/kernel/core_titan.c
arch/alpha/kernel/core_titan.c
+1
-1
arch/alpha/kernel/pci.c
arch/alpha/kernel/pci.c
+24
-14
arch/alpha/kernel/sys_nautilus.c
arch/alpha/kernel/sys_nautilus.c
+13
-7
No files found.
arch/alpha/kernel/core_marvel.c
View file @
e2349697
...
...
@@ -1076,7 +1076,7 @@ marvel_agp_info(void)
/*
* Fill it in.
*/
agp
->
type
=
0
/* FIXME: ALPHA_CORE_AGP */
;
agp
->
type
=
ALPHA_CORE_AGP
;
agp
->
hose
=
hose
;
agp
->
private
=
NULL
;
agp
->
ops
=
&
marvel_agp_ops
;
...
...
arch/alpha/kernel/core_titan.c
View file @
e2349697
...
...
@@ -764,7 +764,7 @@ titan_agp_info(void)
/*
* Fill it in.
*/
agp
->
type
=
0
/* FIXME: ALPHA_CORE_AGP */
;
agp
->
type
=
ALPHA_CORE_AGP
;
agp
->
hose
=
hose
;
agp
->
private
=
port
;
agp
->
ops
=
&
titan_agp_ops
;
...
...
arch/alpha/kernel/pci.c
View file @
e2349697
...
...
@@ -392,6 +392,29 @@ pcibios_set_master(struct pci_dev *dev)
pci_write_config_byte
(
dev
,
PCI_LATENCY_TIMER
,
64
);
}
static
void
__init
pcibios_claim_one_bus
(
struct
pci_bus
*
b
)
{
struct
list_head
*
ld
;
struct
pci_bus
*
child_bus
;
for
(
ld
=
b
->
devices
.
next
;
ld
!=
&
b
->
devices
;
ld
=
ld
->
next
)
{
struct
pci_dev
*
dev
=
pci_dev_b
(
ld
);
int
i
;
for
(
i
=
0
;
i
<
PCI_NUM_RESOURCES
;
i
++
)
{
struct
resource
*
r
=
&
dev
->
resource
[
i
];
if
(
r
->
parent
||
!
r
->
start
||
!
r
->
flags
)
continue
;
pci_claim_resource
(
dev
,
i
);
}
}
list_for_each_entry
(
child_bus
,
&
b
->
children
,
node
)
pcibios_claim_one_bus
(
child_bus
);
}
static
void
__init
pcibios_claim_console_setup
(
void
)
{
...
...
@@ -399,20 +422,7 @@ pcibios_claim_console_setup(void)
for
(
lb
=
pci_root_buses
.
next
;
lb
!=
&
pci_root_buses
;
lb
=
lb
->
next
)
{
struct
pci_bus
*
b
=
pci_bus_b
(
lb
);
struct
list_head
*
ld
;
for
(
ld
=
b
->
devices
.
next
;
ld
!=
&
b
->
devices
;
ld
=
ld
->
next
)
{
struct
pci_dev
*
dev
=
pci_dev_b
(
ld
);
int
i
;
for
(
i
=
0
;
i
<
PCI_NUM_RESOURCES
;
i
++
)
{
struct
resource
*
r
=
&
dev
->
resource
[
i
];
if
(
r
->
parent
||
!
r
->
start
||
!
r
->
flags
)
continue
;
pci_claim_resource
(
dev
,
i
);
}
}
pcibios_claim_one_bus
(
b
);
}
}
...
...
arch/alpha/kernel/sys_nautilus.c
View file @
e2349697
...
...
@@ -78,6 +78,8 @@ void
nautilus_kill_arch
(
int
mode
)
{
struct
pci_bus
*
bus
=
pci_isa_hose
->
bus
;
u32
pmuport
;
int
off
;
switch
(
mode
)
{
case
LINUX_REBOOT_CMD_RESTART
:
...
...
@@ -92,14 +94,18 @@ nautilus_kill_arch(int mode)
break
;
case
LINUX_REBOOT_CMD_POWER_OFF
:
{
u32
pmuport
;
pci_bus_read_config_dword
(
bus
,
0x88
,
0x10
,
&
pmuport
);
pmuport
&=
0xfffe
;
outl
(
0xffff
,
pmuport
);
/* clear pending events
*/
o
utw
(
0x2000
,
pmuport
+
4
);
/* power off
*/
/* NOTREACHED */
/* Assume M1543C */
off
=
0x2000
;
/* SLP_TYPE = 0, SLP_EN = 1 */
pci_bus_read_config_dword
(
bus
,
0x88
,
0x10
,
&
pmuport
);
if
(
!
pmuport
)
{
/* M1535D/D+
*/
o
ff
=
0x3400
;
/* SLP_TYPE = 5, SLP_EN = 1
*/
pci_bus_read_config_dword
(
bus
,
0x88
,
0xe0
,
&
pmuport
);
}
pmuport
&=
0xfffe
;
outw
(
0xffff
,
pmuport
);
/* Clear pending events. */
outw
(
off
,
pmuport
+
4
);
/* NOTREACHED */
break
;
}
}
...
...
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