diff options
Diffstat (limited to 'drivers/staging/westbridge/astoria/arch/arm/plat-c110/include/mach/westbridge/westbridge-c110-pnand-hal/cyasc110dev_pnand.h')
-rwxr-xr-x | drivers/staging/westbridge/astoria/arch/arm/plat-c110/include/mach/westbridge/westbridge-c110-pnand-hal/cyasc110dev_pnand.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/drivers/staging/westbridge/astoria/arch/arm/plat-c110/include/mach/westbridge/westbridge-c110-pnand-hal/cyasc110dev_pnand.h b/drivers/staging/westbridge/astoria/arch/arm/plat-c110/include/mach/westbridge/westbridge-c110-pnand-hal/cyasc110dev_pnand.h new file mode 100755 index 0000000..fd156ef --- /dev/null +++ b/drivers/staging/westbridge/astoria/arch/arm/plat-c110/include/mach/westbridge/westbridge-c110-pnand-hal/cyasc110dev_pnand.h @@ -0,0 +1,73 @@ +/* Cypress Antioch OMAP KERNEL file (cyanomapdev_kernel.h) +## =========================== +## Copyright (C) 2010 Cypress Semiconductor +## +## This program is free software; you can redistribute it and/or +## modify it 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., 51 Franklin Street, Fifth Floor, +## Boston, MA 02110-1301, USA. +## =========================== +*/ + +#ifndef __CY_AS_C110_DEV_KERNEL_H__ +#define __CY_AS_C110_DEV_KERNEL_H__ + + +#include <linux/module.h> +#include <linux/kernel.h> +#include <linux/completion.h> + +/* include does not seem to work + * moving for patch submission +#include <mach/gpmc.h> +*/ +#include <mach/gpio.h> + +/* + * Constants + */ +#define CY_AS_C110_CRAM_HAL_SIG (0x2332) + + +/* + * Data structures + */ +typedef struct cy_as_c110_dev_kernel { + /* This is the signature for this data structure */ + unsigned int m_sig ; + + /* Address base of Antioch Device */ + void *m_phy_addr_base; + void *m_vma_addr_base; + /* This is a pointer to the next Antioch device in the system */ + struct cy_as_c110_dev_kernel *m_next_p; + + /* This is for thread sync */ + struct completion thread_complete; + + /* This is for thread to wait for interrupts */ + cy_as_hal_sleep_channel thread_sc; + + /* This is for thread to exit upon StopOmapKernel */ + int thread_flag; /* set 1 to exit */ + + int dma_ch; + + /* This is for dma sync */ + struct completion dma_complete; + void *regulator; +} cy_as_c110_dev_kernel; + +#endif + +/*[]*/ |