mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-26 19:36:41 +00:00
c61c65cdcd
This patch contains the following possible cleanups: - make the following needlessly global code static: - apc.c: apc_swift_idle() - ebus.c: ebus_blacklist_irq() - ebus.c: fill_ebus_child() - ebus.c: fill_ebus_device() - entry.S: syscall_is_too_hard - etra: tsetup_sun4c_stackchk - head.S: cputyp - head.S: prom_vector_p - idprom.c: Sun_Machines[] - ioport.c: _sparc_find_resource() - ioport.c: create_proc_read_entry() - irq.c: struct sparc_irq[] - rtrap.S: sun4c_rett_stackchk - setup.c: prom_sync_me() - setup.c: boot_flags - sun4c_irq.c: sun4c_sbint_to_irq() - sun4d_irq.c: sbus_tid[] - sun4d_irq.c: struct sbus_actions - sun4d_irq.c: sun4d_sbint_to_irq() - sun4m_irq.c: sun4m_sbint_to_irq() - sun4m_irq.c: sun4m_get_irqmask() - sun4m_irq.c: sun4m_timers - sun4m_smp.c: smp4m_cross_call() - sun4m_smp.c: smp4m_blackbox_id() - sun4m_smp.c: smp4m_blackbox_current() - time.c: sp_clock_typ - time.c: sbus_time_init() - traps.c: instruction_dump() - wof.S: spwin_sun4c_stackchk - wuf.S: sun4c_fwin_stackchk - #if 0 the following unused code: - process.c: sparc_backtrace_lock - process.c: __show_backtrace() - process.c: show_backtrace() - process.c: smp_show_backtrace_all_cpus() - remove the following unused code: - entry.S: __handle_exception - smp.c: smp_num_cpus - smp.c: smp_activated - smp.c: __cpu_number_map[] - smp.c: __cpu_logical_map[] - smp.c: bitops_spinlock - traps.c: trap_curbuf - traps.c: trapbuf[] - traps.c: linux_smp_still_initting - traps.c: thiscpus_tbr - traps.c: thiscpus_mid Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
68 lines
2.4 KiB
C
68 lines
2.4 KiB
C
/*
|
|
* machines.h: Defines for taking apart the machine type value in the
|
|
* idprom and determining the kind of machine we are on.
|
|
*
|
|
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
|
|
*/
|
|
#ifndef _SPARC_MACHINES_H
|
|
#define _SPARC_MACHINES_H
|
|
|
|
struct Sun_Machine_Models {
|
|
char *name;
|
|
unsigned char id_machtype;
|
|
};
|
|
|
|
/* Current number of machines we know about that has an IDPROM
|
|
* machtype entry including one entry for the 0x80 OBP machines.
|
|
*/
|
|
#define NUM_SUN_MACHINES 15
|
|
|
|
/* The machine type in the idprom area looks like this:
|
|
*
|
|
* ---------------
|
|
* | ARCH | MACH |
|
|
* ---------------
|
|
* 7 4 3 0
|
|
*
|
|
* The ARCH field determines the architecture line (sun4, sun4c, etc).
|
|
* The MACH field determines the machine make within that architecture.
|
|
*/
|
|
|
|
#define SM_ARCH_MASK 0xf0
|
|
#define SM_SUN4 0x20
|
|
#define SM_SUN4C 0x50
|
|
#define SM_SUN4M 0x70
|
|
#define SM_SUN4M_OBP 0x80
|
|
|
|
#define SM_TYP_MASK 0x0f
|
|
/* Sun4 machines */
|
|
#define SM_4_260 0x01 /* Sun 4/200 series */
|
|
#define SM_4_110 0x02 /* Sun 4/100 series */
|
|
#define SM_4_330 0x03 /* Sun 4/300 series */
|
|
#define SM_4_470 0x04 /* Sun 4/400 series */
|
|
|
|
/* Sun4c machines Full Name - PROM NAME */
|
|
#define SM_4C_SS1 0x01 /* Sun4c SparcStation 1 - Sun 4/60 */
|
|
#define SM_4C_IPC 0x02 /* Sun4c SparcStation IPC - Sun 4/40 */
|
|
#define SM_4C_SS1PLUS 0x03 /* Sun4c SparcStation 1+ - Sun 4/65 */
|
|
#define SM_4C_SLC 0x04 /* Sun4c SparcStation SLC - Sun 4/20 */
|
|
#define SM_4C_SS2 0x05 /* Sun4c SparcStation 2 - Sun 4/75 */
|
|
#define SM_4C_ELC 0x06 /* Sun4c SparcStation ELC - Sun 4/25 */
|
|
#define SM_4C_IPX 0x07 /* Sun4c SparcStation IPX - Sun 4/50 */
|
|
|
|
/* Sun4m machines, these predate the OpenBoot. These values only mean
|
|
* something if the value in the ARCH field is SM_SUN4M, if it is
|
|
* SM_SUN4M_OBP then you have the following situation:
|
|
* 1) You either have a sun4d, a sun4e, or a recently made sun4m.
|
|
* 2) You have to consult OpenBoot to determine which machine this is.
|
|
*/
|
|
#define SM_4M_SS60 0x01 /* Sun4m SparcSystem 600 */
|
|
#define SM_4M_SS50 0x02 /* Sun4m SparcStation 10 */
|
|
#define SM_4M_SS40 0x03 /* Sun4m SparcStation 5 */
|
|
|
|
/* Sun4d machines -- N/A */
|
|
/* Sun4e machines -- N/A */
|
|
/* Sun4u machines -- N/A */
|
|
|
|
#endif /* !(_SPARC_MACHINES_H) */
|