Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ppc/kernel/setup.c File Reference

#include <linux/config.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/reboot.h>
#include <linux/delay.h>
#include <linux/blk.h>
#include <asm/adb.h>
#include <asm/cuda.h>
#include <asm/pmu.h>
#include <asm/residual.h>
#include <asm/io.h>
#include <asm/ide.h>
#include <asm/prom.h>
#include <asm/processor.h>
#include <asm/pgtable.h>
#include <asm/bootinfo.h>
#include <asm/setup.h>
#include <asm/amigappc.h>
#include <asm/smp.h>
#include <asm/bootx.h>
#include <asm/machdep.h>
#include <asm/uaccess.h>

Include dependency graph for ppc/kernel/setup.c:

Go to the source code of this file.

Defines

#define CPU_PRESENT(x)   ((x)==0)
#define smp_num_cpus   1
#define GET_PVR   ((long int)_get_PVR())
#define CD(x)   (x)

Functions

void pmac_init (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
void chrp_init (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
void prep_init (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
void mbx_init (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
void apus_init (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
void gemini_init (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
 __initfunc (int pmac_display_supported(char *name))
 __initfunc (void pmac_find_display(void))
void machine_restart (char *cmd)
void machine_power_off (void)
void machine_halt (void)
unsigned long cpu_temp (void)
int get_cpuinfo (char *buffer)
unsigned long __init identify_machine (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
void ppc_setup_l2cr (char *str, int *ints)
 __initfunc (void setup_arch(char **cmdline_p, unsigned long *memory_start_p, unsigned long *memory_end_p))
void note_bootable_part (kdev_t dev, int part, int goodness)
void ppc_generic_ide_fix_driveid (struct hd_driveid *id)

Variables

boot_infos_tboot_infos
char cmd_line [512]
char saved_command_line [256]
unsigned char aux_device_present
ide_machdep_calls ppc_ide_md
unsigned long ISA_DMA_THRESHOLD
unsigned long DMA_MODE_READ
unsigned long DMA_MODE_WRITE
int _machine = 0
int have_of = 0
int is_prep = 0
int is_chrp = 0
int is_powerplus = 0
machdep_calls ppc_md
unsigned char __res[sizeof(RESIDUAL__prepdata ) = {0,}
RESIDUALres = (RESIDUAL *)&__res
screen_info screen_info


Define Documentation

#define CD x   )     (x)
 

#define CPU_PRESENT x   )     ((x)==0)
 

Referenced by get_cpuinfo().

#define GET_PVR   ((long int)_get_PVR())
 

Referenced by get_cpuinfo().

#define smp_num_cpus   1
 

Referenced by __initfunc(), apm(), apm_get_info(), apm_init(), do_fork(), do_microcode_update(), flush_tlb_mm(), flush_tlb_page(), get_cpuinfo(), get_irq_list(), get_kstat(), init_new_context(), ip_init_chain(), kstat_irqs(), microcode_ioctl(), microcode_write(), reschedule_idle_slow(), smp4m_cross_call(), smp_boot_cpus(), smp_call_function(), smp_count_cpus(), smp_ext_call_async_others(), smp_ext_call_sync_others(), smp_info(), smp_send_stop(), smp_signal_others(), solaris_sysconf(), and sun4d_get_irq_list().


Function Documentation

__initfunc void   setup_arch(char **cmdline_p,unsigned long *memory_start_p, unsigned long *memory_end_p)  ) 
 

Definition at line 575 of file ppc/kernel/setup.c.

References _edata, _etext, cmd_line, end_of_DRAM, find_available_memory(), init_task, klimit, long, NULL, PAGE_OFFSET, panic_timeout, saved_command_line, machdep_calls::setup_arch, sort_exception_table(), strcpy, strstr(), xmon(), and xmon_map_scc().

Here is the call graph for this function:

__initfunc void   pmac_find_display(void)  ) 
 

Definition at line 141 of file ppc/kernel/setup.c.

__initfunc int   pmac_display_supported(char *name)  ) 
 

Definition at line 137 of file ppc/kernel/setup.c.

void apus_init unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7
 

Referenced by identify_machine().

void chrp_init unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7
 

Referenced by identify_machine().

unsigned long cpu_temp void   ) 
 

Definition at line 187 of file ppc/kernel/setup.c.

References printk, THRM1_TIN, THRM1_TIV, THRM1_V, THRM3_E, and udelay.

Referenced by get_cpuinfo().

void gemini_init unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7
 

Definition at line 522 of file gemini_setup.c.

References machdep_calls::calibrate_decr, DMA_MODE_READ, DMA_MODE_WRITE, machdep_calls::do_IRQ, gemini_calibrate_decr(), gemini_do_IRQ(), gemini_get_cpuinfo(), gemini_get_rtc_time(), gemini_halt(), gemini_init_IRQ(), gemini_power_off(), gemini_restart(), gemini_set_rtc_time(), gemini_setup_arch(), gemini_setup_pci_ptrs(), gemini_time_init(), machdep_calls::get_cpuinfo, machdep_calls::get_rtc_time, machdep_calls::halt, machdep_calls::init, machdep_calls::init_IRQ, initrd_end, initrd_start, machdep_calls::irq_cannonicalize, ISA_DMA_THRESHOLD, machdep_calls::kbd_getkeycode, machdep_calls::kbd_init_hw, machdep_calls::kbd_leds, machdep_calls::kbd_setkeycode, machdep_calls::kbd_translate, machdep_calls::kbd_unexpected_up, KERNELBASE, NULL, machdep_calls::power_off, ppc_md, machdep_calls::restart, machdep_calls::set_rtc_time, machdep_calls::setup_arch, machdep_calls::setup_residual, and machdep_calls::time_init.

Referenced by identify_machine().

Here is the call graph for this function:

int get_cpuinfo char *  buffer  ) 
 

Definition at line 216 of file ppc/kernel/setup.c.

References __init, CD, CPU_PRESENT, cpu_temp(), find_type_devices(), fp, machdep_calls::get_cpuinfo, get_property(), GET_PVR, have_of, HZ, i, if, len, loops_per_jiffy, device_node::next, next, NULL, PAGE_SIZE, printk, s, machdep_calls::setup_residual, smp_num_cpus, sprintf(), xff, zero_cache_calls, zero_cache_hits, zero_cache_sz, and zero_cache_total.

Here is the call graph for this function:

unsigned long __init identify_machine unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7
 

Definition at line 354 of file ppc/kernel/setup.c.

References __map_without_bats, __max_memory, _MACH_apus, _MACH_chrp, _MACH_fads, _MACH_gemini, _MACH_mbx, _MACH_Pmac, _MACH_prep, _machine, apus_init(), chrp_init(), cmd_line, find_devices(), find_path_device(), finish_device_tree(), first_cpu_booted, gemini_init(), get_property(), have_of, initrd_end, initrd_start, is_chrp, is_prep, KERNELBASE, mbx_init(), MKDEV, NULL, pmac_init(), prep_init(), printk, RAMDISK_MAJOR, relocate_nodes(), ROOT_DEV, simple_strtoul(), strncmp(), strncpy, strstr(), and x4000().

Here is the call graph for this function:

void machine_halt void   ) 
 

Definition at line 173 of file ppc/kernel/setup.c.

References machdep_calls::halt.

void machine_power_off void   ) 
 

Definition at line 168 of file ppc/kernel/setup.c.

References machdep_calls::power_off.

void machine_restart char *  cmd  ) 
 

Definition at line 163 of file ppc/kernel/setup.c.

References machdep_calls::restart.

void mbx_init unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7
 

Referenced by identify_machine().

void note_bootable_part kdev_t  dev,
int  part,
int  goodness
 

Definition at line 618 of file ppc/kernel/setup.c.

void pmac_init unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7
 

Referenced by identify_machine().

void ppc_generic_ide_fix_driveid struct hd_driveid id  ) 
 

Definition at line 623 of file ppc/kernel/setup.c.

References __le16_to_cpu, __le32_to_cpu, hd_driveid::buf_size, hd_driveid::buf_type, hd_driveid::command_sets, hd_driveid::config, hd_driveid::cur_capacity0, hd_driveid::cur_capacity1, hd_driveid::cur_cyls, hd_driveid::cur_heads, hd_driveid::cur_sectors, hd_driveid::cyls, hd_driveid::dma_1word, hd_driveid::dma_mword, hd_driveid::dma_ultra, hd_driveid::dword_io, hd_driveid::ecc_bytes, hd_driveid::eide_dma_min, hd_driveid::eide_dma_time, hd_driveid::eide_pio, hd_driveid::eide_pio_iordy, hd_driveid::eide_pio_modes, hd_driveid::field_valid, hd_driveid::heads, hd_driveid::last_lun, hd_driveid::lba_capacity, hd_driveid::reserved, hd_driveid::reserved2, hd_driveid::reserved50, hd_driveid::sector_bytes, hd_driveid::sectors, hd_driveid::security, hd_driveid::track_bytes, hd_driveid::vendor0, hd_driveid::vendor1, hd_driveid::vendor2, hd_driveid::word100, hd_driveid::word101, hd_driveid::word102, hd_driveid::word103, hd_driveid::word104, hd_driveid::word105, hd_driveid::word106, hd_driveid::word107, hd_driveid::word108, hd_driveid::word109, hd_driveid::word110, hd_driveid::word111, hd_driveid::word112, hd_driveid::word113, hd_driveid::word114, hd_driveid::word115, hd_driveid::word116, hd_driveid::word117, hd_driveid::word118, hd_driveid::word119, hd_driveid::word120, hd_driveid::word121, hd_driveid::word122, hd_driveid::word123, hd_driveid::word124, hd_driveid::word125, hd_driveid::word127, hd_driveid::word69, hd_driveid::word70, hd_driveid::word71, hd_driveid::word72, hd_driveid::word73, hd_driveid::word74, hd_driveid::word75, hd_driveid::word76, hd_driveid::word77, hd_driveid::word78, hd_driveid::word79, hd_driveid::word80, hd_driveid::word81, hd_driveid::word83, hd_driveid::word84, hd_driveid::word85, hd_driveid::word86, hd_driveid::word87, hd_driveid::word89, hd_driveid::word90, hd_driveid::word91, hd_driveid::word92, hd_driveid::word93, hd_driveid::word94, hd_driveid::word95, hd_driveid::word96, hd_driveid::word97, hd_driveid::word98, and hd_driveid::word99.

void ppc_setup_l2cr char *  str,
int *  ints
 

Definition at line 555 of file ppc/kernel/setup.c.

References _get_PVR(), _set_L2CR(), KERN_INFO, NULL, printk, simple_strtoul(), and val.

Here is the call graph for this function:

void prep_init unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7
 

Referenced by identify_machine().


Variable Documentation

unsigned char __res [sizeof(RESIDUAL) __prepdata) = {0,}
 

Definition at line 108 of file ppc/kernel/setup.c.

int _machine = 0
 

Definition at line 87 of file ppc/kernel/setup.c.

Referenced by __initfunc(), adb_init(), adbhid_init(), aty128_init(), aty128fbcon_blank(), atyfbcon_blank(), buf_access(), chrp_progress(), find_planb(), finish_device_tree(), finish_node_interrupts(), identify_machine(), interpret_macio_props(), mac_hid_init_hw(), mackbd_init_hw(), mesh_detect(), open_pic_do_IRQ(), openpic_init(), pmac_nvram_init(), set_mesh_power(), smp_boot_cpus(), smp_callin(), smp_message_pass(), timer_interrupt(), xmon_init_scc(), and xmon_map_scc().

unsigned char aux_device_present
 

Definition at line 79 of file ppc/kernel/setup.c.

boot_infos_t* boot_infos
 

Definition at line 192 of file prom.c.

char cmd_line[512]
 

Definition at line 43 of file arch/ppc/boot/misc.c.

unsigned long DMA_MODE_READ
 

Definition at line 84 of file ppc/kernel/setup.c.

unsigned long DMA_MODE_WRITE
 

Definition at line 84 of file ppc/kernel/setup.c.

int have_of = 0
 

Definition at line 89 of file ppc/kernel/setup.c.

Referenced by __initfunc(), get_cpuinfo(), identify_machine(), and proc_device_tree_init().

int is_chrp = 0
 

Definition at line 91 of file ppc/kernel/setup.c.

Referenced by identify_machine().

int is_powerplus = 0
 

Definition at line 95 of file ppc/kernel/setup.c.

int is_prep = 0
 

Definition at line 90 of file ppc/kernel/setup.c.

Referenced by __initfunc(), identify_machine(), and sym53c8xx_pci_init().

unsigned long ISA_DMA_THRESHOLD
 

Definition at line 83 of file ppc/kernel/setup.c.

struct ide_machdep_calls ppc_ide_md
 

Definition at line 81 of file ppc/kernel/setup.c.

Referenced by __initfunc().

struct machdep_calls ppc_md
 

Definition at line 97 of file ppc/kernel/setup.c.

Referenced by __initfunc(), chrp_setup_pci_ptrs(), do_IRQ(), gemini_init(), get_rtc_time(), init_IRQ(), irq_cannonicalize(), mac_hid_init_hw(), mk48t59_get_rtc_time(), mk48t59_set_rtc_time(), pci_dev_io_base(), pci_dev_mem_base(), pci_dev_root_bridge(), pcibios_fixup(), pcibios_read_config_byte(), pcibios_read_config_dword(), pcibios_read_config_word(), pcibios_write_config_byte(), pcibios_write_config_dword(), pcibios_write_config_word(), rtc_ioctl(), set_rtc_time(), and timer_interrupt().

RESIDUAL* res = (RESIDUAL *)&__res
 

Definition at line 113 of file ppc/kernel/setup.c.

Referenced by __clear_user(), __initfunc(), __strlen_user(), __strncpy_from_user(), _omirr_print(), a5kkbd_key(), ac97_put_register(), ac97_set_recmask(), ac97_set_values(), acornscsi_do_abort(), add_breakpoint(), alpha_fp_emul(), ap_bif_init(), ap_msc_init(), ap_verify_data(), apfddi_open(), append_to_buffer(), aty_ld_pll(), bi_reverse(), bif_led_status(), bigmac_open(), coda_file_mmap(), d_alloc_root(), decompress_kernel(), do_fast_gettimeoffset(), do_ptrace(), drm_resctx(), econet_sendmsg(), es_isr(), fas216_do_abort(), fas216_handlesync(), fas216_handlewide(), fat_add_cluster1(), fat_add_entries(), fat_scan(), fat_search_long(), ffb_resctx(), ffz(), fib6_clean_node(), fib6_walk(), find_first_zero_bit(), find_fq(), find_next_zero_bit(), fmi_getsigstr(), from_buffer(), generic_hweight16(), generic_hweight32(), generic_hweight8(), GetLANCE(), gunzip(), handle_sys_nfsservctl(), happy_meal_open(), hweight32(), i2o_issue_params(), i596_open(), i810_resctx(), ic_dev_ioctl(), ic_route_ioctl(), icmpv6_xrlim_allow(), ioctl_html(), ioctl_parms(), ip6_fw_accept(), ip6_fw_accept_trans(), irix_sigreturn(), isdn_ppp_dev_ioctl_stats(), iunique(), jazz_readb(), jazz_readl(), jazz_readw(), jazz_request_irq(), jpg_qbuf(), kaweth_start_xmit(), keyspan_usa19w_calc_baud(), kill_procs(), llc_validate_seq_nos(), m8xx_enet_init(), memcmp(), mga_resctx(), msdos_add_entry(), msdos_create(), msdos_find(), msdos_lookup(), msdos_mkdir(), msdos_read_super(), msdos_rmdir(), msdos_unlink(), mts_int_submit_urb(), mts_scsi_queuecommand(), nfs3_proc_unlink_setup(), nfs_do_filldir(), nfs_pagein_inode(), nfs_readdir(), nfs_scan_dirty(), nfs_scan_list(), nfs_scan_read(), nfs_silly_lookup(), nfs_wait_on_requests(), nlm_traverse_files(), nm256_readAC97Reg(), ntfs_lookup(), ntfs_pop(), omirr_print(), omirr_printall(), osf_sysinfo(), packet_sendmsg(), port_match(), prep_get_cpuinfo(), prep_setup_residual(), print_residual_device_info(), proc_write_status(), prom_callback(), ptrace_set_bpt(), qdisc_run_queues(), qe_open(), qec_ether_init(), r128_resctx(), raw3215_start_io(), read_int(), readdir_search_pagecache(), residual_find_device(), residual_find_device_id(), RIOParam(), romfs_copyfrom(), romfs_lookup(), romfs_strnlen(), saa7111_command(), sg_open(), sg_poll(), sg_read(), sg_remove_sfp(), sg_start_req(), smb_proc_open(), smt_build_pmf_response(), sni_readb(), sni_readl(), sni_readw(), sscape_pnp_read_codec(), strlen_user(), strncpy_from_user(), strnlen_user(), sys_access(), sys_clone(), sys_fork(), sys_pipe(), sys_ptrace(), tcp_keepopen_proc(), tdfx_resctx(), termios2digi_c(), termios2digi_h(), termios2digi_i(), UMSDOS_read_super(), unregister_console(), v4l_grab(), vfat_add_entry(), vfat_build_slots(), vfat_create(), vfat_fill_long_slots(), vfat_find(), vfat_find_form(), vfat_lookup(), vfat_mkdir(), vfat_read_super(), vfat_rename(), vfat_rmdir(), vfat_unlink(), waveartist_reset(), write_int(), xpram_read_decint(), xpram_read_hexint(), xpram_read_size(), xpram_read_size_list_tail(), and zoran_ioctl().

char saved_command_line[256]
 

Definition at line 78 of file ppc/kernel/setup.c.

struct screen_info screen_info
 

Initial value:

 {
        0, 25,                  
        0,                      
        0,                      
        0,                      
        80,                     
        0,0,0,                  
        25,                     
        1,                      
        16                      
}

Definition at line 122 of file ppc/kernel/setup.c.