Skip to content

Commit

Permalink
[PATCH] ES7000 platform update
Browse files Browse the repository at this point in the history
This is platform code update for ES7000: disables IRQ overrides for the
recent ES7000 (Rascal/Zorro), cleans up the compile warning.  The patch
only affects the ES7000 subarch.

Signed-off-by: <[email protected]>
Acked-by: Zwane Mwaikambo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
[email protected] authored and Linus Torvalds committed Oct 31, 2005
1 parent 30037f6 commit 9338316
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
11 changes: 10 additions & 1 deletion arch/i386/mach-es7000/es7000.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
* http://www.unisys.com
*/

/*
* ES7000 chipsets
*/

#define NON_UNISYS 0
#define ES7000_CLASSIC 1
#define ES7000_ZORRO 2


#define MIP_REG 1
#define MIP_PSAI_REG 4

Expand Down Expand Up @@ -106,6 +115,6 @@ struct mip_reg {

extern int parse_unisys_oem (char *oemptr);
extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
extern void setup_unisys ();
extern void setup_unisys(void);
extern int es7000_start_cpu(int cpu, unsigned long eip);
extern void es7000_sw_apic(void);
11 changes: 7 additions & 4 deletions arch/i386/mach-es7000/es7000plat.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ static unsigned int base;
static int
es7000_rename_gsi(int ioapic, int gsi)
{
if (es7000_plat == ES7000_ZORRO)
return gsi;

if (!base) {
int i;
for (i = 0; i < nr_ioapics; i++)
Expand All @@ -76,7 +79,7 @@ es7000_rename_gsi(int ioapic, int gsi)
#endif /* (CONFIG_X86_IO_APIC) && (CONFIG_ACPI) */

void __init
setup_unisys ()
setup_unisys(void)
{
/*
* Determine the generation of the ES7000 currently running.
Expand All @@ -86,9 +89,9 @@ setup_unisys ()
*
*/
if (!(boot_cpu_data.x86 <= 15 && boot_cpu_data.x86_model <= 2))
es7000_plat = 2;
es7000_plat = ES7000_ZORRO;
else
es7000_plat = 1;
es7000_plat = ES7000_CLASSIC;
ioapic_renumber_irq = es7000_rename_gsi;
}

Expand Down Expand Up @@ -151,7 +154,7 @@ parse_unisys_oem (char *oemptr)
}

if (success < 2) {
es7000_plat = 0;
es7000_plat = NON_UNISYS;
} else
setup_unisys();
return es7000_plat;
Expand Down
2 changes: 1 addition & 1 deletion include/asm-i386/mach-es7000/mach_mpparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static inline void mpc_oem_pci_bus(struct mpc_config_bus *m,

extern int parse_unisys_oem (char *oemptr);
extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
extern void setup_unisys();
extern void setup_unisys(void);

static inline int mps_oem_check(struct mp_config_table *mpc, char *oem,
char *productid)
Expand Down

0 comments on commit 9338316

Please sign in to comment.