patch-2.3.20 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: 178
- Date:
Thu Oct 7 10:17:08 1999
- Orig file:
v2.3.19/linux/arch/ppc/kernel/prep_setup.c
- Orig date:
Tue Aug 31 17:29:13 1999
diff -u --recursive --new-file v2.3.19/linux/arch/ppc/kernel/prep_setup.c linux/arch/ppc/kernel/prep_setup.c
@@ -86,7 +86,6 @@
extern unsigned char pckbd_sysrq_xlate[128];
extern void prep_setup_pci_ptrs(void);
-extern void chrp_do_IRQ(struct pt_regs *regs, int cpu, int isfake);
extern char saved_command_line[256];
int _prep_type;
@@ -114,8 +113,7 @@
unsigned long vgacon_remap_base;
#endif
-__prep
-int
+int __prep
prep_get_cpuinfo(char *buffer)
{
extern char *Motherboard_map_name;
@@ -312,7 +310,7 @@
* it's the only way to support both addrs from one binary.
* -- Cort
*/
- if ( is_prep )
+ if ( _machine == _MACH_prep )
{
extern struct card_info snd_installed_cards[];
struct card_info *snd_ptr;
@@ -486,7 +484,7 @@
count_period_den = freq / 1000000;
}
-void
+void __prep
prep_restart(char *cmd)
{
unsigned long i = 10000;
@@ -509,7 +507,7 @@
/*
* This function will restart a board regardless of port 92 functionality
*/
-void
+void __prep
prep_direct_restart(char *cmd)
{
u32 jumpaddr=0xfff00100;
@@ -532,7 +530,7 @@
*/
}
-void
+void __prep
prep_halt(void)
{
unsigned long flags;
@@ -552,13 +550,14 @@
*/
}
-void
+void __prep
prep_power_off(void)
{
prep_halt();
}
-int prep_setup_residual(char *buffer)
+int __prep
+prep_setup_residual(char *buffer)
{
int len = 0;
@@ -576,7 +575,7 @@
return len;
}
-u_int
+u_int __prep
prep_irq_cannonicalize(u_int irq)
{
if (irq == 2)
@@ -589,7 +588,8 @@
}
}
-void
+#if 0
+void __prep
prep_do_IRQ(struct pt_regs *regs, int cpu, int isfake)
{
int irq;
@@ -602,6 +602,13 @@
return;
}
ppc_irq_dispatch_handler( regs, irq );
+}
+#endif
+
+int __prep
+prep_get_irq(struct pt_regs *regs)
+{
+ return i8259_irq(smp_processor_id());
}
void __init
@@ -628,19 +635,19 @@
/*
* IDE stuff.
*/
-void
+void __prep
prep_ide_insw(ide_ioreg_t port, void *buf, int ns)
{
_insw((unsigned short *)((port)+_IO_BASE), buf, ns);
}
-void
+void __prep
prep_ide_outsw(ide_ioreg_t port, void *buf, int ns)
{
_outsw((unsigned short *)((port)+_IO_BASE), buf, ns);
}
-int
+int __prep
prep_ide_default_irq(ide_ioreg_t base)
{
switch (base) {
@@ -653,7 +660,7 @@
}
}
-ide_ioreg_t
+ide_ioreg_t __prep
prep_ide_default_io_base(int index)
{
switch (index) {
@@ -666,13 +673,13 @@
}
}
-int
+int __prep
prep_ide_check_region(ide_ioreg_t from, unsigned int extent)
{
return check_region(from, extent);
}
-void
+void __prep
prep_ide_request_region(ide_ioreg_t from,
unsigned int extent,
const char *name)
@@ -680,14 +687,14 @@
request_region(from, extent, name);
}
-void
+void __prep
prep_ide_release_region(ide_ioreg_t from,
unsigned int extent)
{
release_region(from, extent);
}
-void
+void __prep
prep_ide_fix_driveid(struct hd_driveid *id)
{
}
@@ -776,7 +783,7 @@
ppc_md.irq_cannonicalize = prep_irq_cannonicalize;
ppc_md.init_IRQ = prep_init_IRQ;
/* this gets changed later on if we have an OpenPIC -- Cort */
- ppc_md.do_IRQ = prep_do_IRQ;
+ ppc_md.get_irq = prep_get_irq;
ppc_md.init = NULL;
ppc_md.restart = prep_restart;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)