Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
pa7300lc.c
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * linux/arch/parisc/kernel/pa7300lc.c
- * - PA7300LC-specific functions
- *
- * Copyright (C) 2000 Philipp Rumpf */
- #include <linux/sched.h>
- #include <linux/smp.h>
- #include <linux/kernel.h>
- #include <asm/gsc.h>
- #include <asm/ptrace.h>
- #include <asm/machdep.h>
- /* CPU register indices */
- #define MIOC_STATUS 0xf040
- #define MIOC_CONTROL 0xf080
- #define MDERRADD 0xf0e0
- #define DMAERR 0xf0e8
- #define DIOERR 0xf0ec
- #define HIDMAMEM 0xf0f4
- /* this returns the HPA of the CPU it was called on */
- static u32 cpu_hpa(void)
- {
- return 0xfffb0000;
- }
- static void pa7300lc_lpmc(int code, struct pt_regs *regs)
- {
- u32 hpa;
- printk(KERN_WARNING "LPMC on CPU %dn", smp_processor_id());
- show_regs(regs);
- hpa = cpu_hpa();
- printk(KERN_WARNING
- "MIOC_CONTROL %08xn" "MIOC_STATUS %08xn"
- "MDERRADD %08xn" "DMAERR %08xn"
- "DIOERR %08xn" "HIDMAMEM %08xn",
- gsc_readl(hpa+MIOC_CONTROL), gsc_readl(hpa+MIOC_STATUS),
- gsc_readl(hpa+MDERRADD), gsc_readl(hpa+DMAERR),
- gsc_readl(hpa+DIOERR), gsc_readl(hpa+HIDMAMEM));
- }
- void pa7300lc_init(void)
- {
- cpu_lpmc = pa7300lc_lpmc;
- }