residual.c
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:25k
- /*
- * BK Id: SCCS/s.residual.c 1.13 09/11/01 16:54:34 trini
- */
- /*
- * Code to deal with the PReP residual data.
- *
- * Written by: Cort Dougan (cort@cs.nmt.edu)
- * Improved _greatly_ and rewritten by Gabriel Paubert (paubert@iram.es)
- *
- * This file is based on the following documentation:
- *
- * IBM Power Personal Systems Architecture
- * Residual Data
- * Document Number: PPS-AR-FW0001
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file COPYING in the main directory of this archive
- * for more details.
- *
- */
- #include <linux/string.h>
- #include <asm/residual.h>
- #include <asm/pnp.h>
- #include <asm/byteorder.h>
- #include <linux/errno.h>
- #include <linux/sched.h>
- #include <linux/kernel.h>
- #include <linux/mm.h>
- #include <linux/stddef.h>
- #include <linux/unistd.h>
- #include <linux/ptrace.h>
- #include <linux/slab.h>
- #include <linux/user.h>
- #include <linux/a.out.h>
- #include <linux/tty.h>
- #include <linux/major.h>
- #include <linux/interrupt.h>
- #include <linux/reboot.h>
- #include <linux/init.h>
- #include <linux/blk.h>
- #include <linux/ioport.h>
- #include <linux/pci.h>
- #include <linux/ide.h>
- #include <asm/sections.h>
- #include <asm/mmu.h>
- #include <asm/processor.h>
- #include <asm/io.h>
- #include <asm/pgtable.h>
- #include <asm/ide.h>
- unsigned char __res[sizeof(RESIDUAL)] __prepdata = {0,};
- RESIDUAL *res = (RESIDUAL *)&__res;
- char * PnP_BASE_TYPES[] __initdata = {
- "Reserved",
- "MassStorageDevice",
- "NetworkInterfaceController",
- "DisplayController",
- "MultimediaController",
- "MemoryController",
- "BridgeController",
- "CommunicationsDevice",
- "SystemPeripheral",
- "InputDevice",
- "ServiceProcessor"
- };
- /* Device Sub Type Codes */
- unsigned char * PnP_SUB_TYPES[] __initdata = {
- "