patch-2.2.14 linux/arch/ppc/kernel/prep_setup.c
Next file: linux/arch/ppc/kernel/process.c
Previous file: linux/arch/ppc/kernel/prep_pci.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Tue Jan 4 10:12:12 2000
- Orig file:
v2.2.13/linux/arch/ppc/kernel/prep_setup.c
- Orig date:
Tue Oct 19 17:10:36 1999
diff -u --recursive --new-file v2.2.13/linux/arch/ppc/kernel/prep_setup.c linux/arch/ppc/kernel/prep_setup.c
@@ -628,25 +628,36 @@
void
prep_ide_insw(ide_ioreg_t port, void *buf, int ns)
{
- _insw((unsigned short *)((port)+_IO_BASE), buf, ns);
+ ide_insw(((port)+(_IO_BASE)), buf, ns);
}
void
prep_ide_outsw(ide_ioreg_t port, void *buf, int ns)
{
- _outsw((unsigned short *)((port)+_IO_BASE), buf, ns);
+ ide_outsw(((port)+_IO_BASE), buf, ns);
}
int
prep_ide_default_irq(ide_ioreg_t base)
{
- switch (base) {
- case 0x1f0: return 13;
- case 0x170: return 13;
- case 0x1e8: return 11;
- case 0x168: return 10;
- default:
- return 0;
+ if ( _prep_type == _PREP_IBM ) {
+ switch (base) {
+ case 0x1f0: return 13;
+ case 0x170: return 13;
+ case 0x1e8: return 11;
+ case 0x168: return 10;
+ default:
+ return 0;
+ }
+ } else {
+ switch (base) {
+ case 0x1f0: return 14;
+ case 0x170: return 14;
+ case 0x1e8: return 15;
+ case 0x168: return 15;
+ default:
+ return 0;
+ }
}
}
@@ -687,6 +698,7 @@
void
prep_ide_fix_driveid(struct hd_driveid *id)
{
+ ppc_generic_ide_fix_driveid(id);
}
__initfunc(void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)