-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 216063 b: refs/heads/master c: 3b554c3 h: refs/heads/master i: 216061: e3d2d62 216059: 8b90103 216055: 2ced167 216047: 86fdfb9 216031: 8973504 215999: 6240b94 215935: 497a1c2 215807: 499f630 215551: ffc880f 215039: 452be46 v: v3
- Loading branch information
Matt Fleming
committed
Jun 23, 2010
1 parent
d2b72bd
commit 66acf48
Showing
535 changed files
with
3,387 additions
and
5,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 12462d77ec78be9fb033580b7b64ddf9d0fee44b | ||
refs/heads/master: 3b554c33dcde9d67efcb8d0a5acca201afd44730 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* linux/arch/alpha/kernel/ns87312.c | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <asm/io.h> | ||
#include "proto.h" | ||
|
||
|
||
/* | ||
* The SRM console *disables* the IDE interface, this code ensures it's | ||
* enabled. | ||
* | ||
* This code bangs on a control register of the 87312 Super I/O chip | ||
* that implements parallel port/serial ports/IDE/FDI. Depending on | ||
* the motherboard, the Super I/O chip can be configured through a | ||
* pair of registers that are located either at I/O ports 0x26e/0x26f | ||
* or 0x398/0x399. Unfortunately, autodetecting which base address is | ||
* in use works only once (right after a reset). The Super I/O chip | ||
* has the additional quirk that configuration register data must be | ||
* written twice (I believe this is a safety feature to prevent | ||
* accidental modification---fun, isn't it?). | ||
*/ | ||
|
||
void __init | ||
ns87312_enable_ide(long ide_base) | ||
{ | ||
int data; | ||
unsigned long flags; | ||
|
||
local_irq_save(flags); | ||
outb(0, ide_base); /* set the index register for reg #0 */ | ||
data = inb(ide_base+1); /* read the current contents */ | ||
outb(0, ide_base); /* set the index register for reg #0 */ | ||
outb(data | 0x40, ide_base+1); /* turn on IDE */ | ||
outb(data | 0x40, ide_base+1); /* turn on IDE, really! */ | ||
local_irq_restore(flags); | ||
} |
Oops, something went wrong.