/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _SYS_PSM_H #define _SYS_PSM_H /* * Platform Specific Module (PSM) */ /* * Include the loadable module wrapper. */ #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* * PSM External Interfaces */ extern int psm_mod_init(void **, struct psm_info *); extern int psm_mod_fini(void **, struct psm_info *); extern int psm_mod_info(void **, struct psm_info *, struct modinfo *); extern int psm_add_intr(int, avfunc, char *, int, caddr_t); extern int psm_add_nmintr(int, avfunc, char *, caddr_t); extern processorid_t psm_get_cpu_id(void); /* map physical address */ /* * XX64: Changing psm_map() to take a paddr_t rather than a uint32_t will * be a flag day. Other drivers in the WOS use the psm_map() interface, so * we need this hack to get them to coexist for pre-integration testing. */ extern caddr_t psm_map_new(paddr_t, size_t, int); #define psm_map psm_map_new /* unmap the physical address return from psm_map_phys() */ extern void psm_unmap(caddr_t, size_t); #define PSM_PROT_READ 0x0000 #define PSM_PROT_WRITE 0x0001 /* handle memory error */ extern void psm_handle_memerror(uint32_t); /* kernel debugger present? */ extern int psm_debugger(void); #ifdef __cplusplus } #endif #endif /* _SYS_PSM_H */