/*
* Copyright (c) 2006 Itronix Inc.
* All rights reserved.
*
* Ported from Tadpole Solaris sources by Garrett D'Amore for Itronix Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of Itronix Inc. may not be used to endorse
* or promote products derived from this software without specific
* prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) 2002 by Tadpole Technology
*/
#ifndef PSM_H
#define PSM_H
#define PSM_PRDL 0x00 /* Posted read data low byte */
#define PSM_PRDU 0x01 /* Posted read data high byte */
#define PSM_ISR 0x02 /* Interrupt status register */
#define PSM_STAT 0x03 /* Status register */
#define PSM_PSR0 0x04 /* Programmable status register #0 */
#define PSM_PSR1 0x05 /* Programmable status register #1 */
#define PSM_PSR2 0x06 /* Programmable status register #2 */
#define PSM_PSR3 0x07 /* Programmable status register #3 */
#define PSM_ISR_PO 0x01 /* Power switch activated */
#define PSM_ISR_DK 0x02 /* System has been docked */
#define PSM_ISR_UDK 0x04 /* System has been un-docked */
#define PSM_ISR_LIDO 0x08 /* Transition to clamshell closed */
#define PSM_ISR_LIDC 0x10 /* Transition to clamshell open */
#define PSM_ISR_TMP 0x20 /* Over temperature condition detected */
#define PSM_ISR_BCC 0x40 /* Battery configuration changed */
#define PSM_ISR_RPD 0x80 /* Request to power down */
/* Status registert defenitions */
#define PSM_STAT_AC 0x01 /* Operating under AC power */
#define PSM_STAT_OVT 0x02 /* Over temperature condition */
#define PSM_STAT_UN1 0x04 /* Unused */
#define PSM_STAT_UN2 0x08 /* Unused */
#define PSM_STAT_ERR 0x10 /* Hardware error occurred */
#define PSM_STAT_MCR 0x20 /* Master Command Register busy */
#define PSM_STAT_WBF 0x40 /* Write buffer full */
#define PSM_STAT_RDA 0x80 /* Read data available */