blob: 9cbf88068f0203956618c953d5e6882aa2ad40af [file] [log] [blame]
#ifndef __SYSTEMACE_H
#define __SYSTEMACE_H
/*
* Copyright (c) 2004 Picture Elements, Inc.
* Stephen Williams (steve@picturel.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ident "$Id:$"
#ifdef CONFIG_SYSTEMACE
# include <part.h>
block_dev_desc_t * systemace_get_dev(int dev);
#define SYSTEMACE_BUS_MODE_REG (0x00)
#define SYSTEMACE_STATUS_REG (0x04)
#define SYSTEMACE_MPU_LBA_REG_LOW (0x10)
#define SYSTEMACE_MPU_LBA_REG_HIGH (0x12)
#define SYSTEMACE_SECT_CNT_CMD_REG (0x14)
#define SYSTEMACE_CONTROL_REG (0x18)
#define SYSTEMACE_DATA_BUF (0x40)
#define SYSTEMACE_SR_CFGLOCK (0x0001) /**< Config port lock status */
#define SYSTEMACE_SR_MPULOCK (0x0002) /**< MPU port lock status */
#define SYSTEMACE_SR_CF_CTRLR_ERR (0x0008)
#define SYSTEMACE_SR_CARD_DETECT (0x0010)
#define SYSTEMACE_SR_DATA_BUF_RDY (0x0020) /**< Enable data ready Status */
#define SYSTEMACE_SR_RDY_FOR_CMD (0x0100)
#define SYSTEMACE_CR_FORCELOCK (0x0001) /**< Force lock request */
#define SYSTEMACE_CR_DATARDYIRQ (0x0100) /**< Enable data ready IRQ */
#define SYSTEMACE_CR_ERRORIRQ (0x0200) /**< Enable error IRQ */
#define SYSTEMACE_CR_CFGDONEIRQ (0x0400) /**< Enable CFG done IRQ */
#define SYSTEMACE_CR_LOCKREQ (0x0002) /**< MPU lock request */
#define SYSTEMACE_CR_CFGRESET (0x0080) /**< CFG reset */
#define SYSTEMACE_CR_RESETIRQ (0x0800) /**< Reset IRQ line */
#define SYSTEMACE_CCR_IDENTIFY (0x0200) /**< Identify CF card command */ )
#define SYSTEMACE_CCR_RESET (0x0100)
#define SYSTEMACE_CCR_ABORT (0x0600)
#define SYSTEMACE_DATA_BUF_SIZE (32)
#define SYSTEMACE_CCR_READ_CMD (0x0300)
#define SYSTEMACE_CCR_WRITE_CMD (0x0400)
#endif /* CONFIG_SYSTEMACE */
#endif /* __SYSTEMACE_H */