mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 19:39:08 +07:00
30 lines
716 B
C
30 lines
716 B
C
|
/*
|
||
|
* Interface for NOR flash driver whose high address lines are latched
|
||
|
*
|
||
|
* Copyright © 2008 MontaVista Software, Inc. <source@mvista.com>
|
||
|
*
|
||
|
* This file is licensed under the terms of the GNU General Public License
|
||
|
* version 2. This program is licensed "as is" without any warranty of any
|
||
|
* kind, whether express or implied.
|
||
|
*/
|
||
|
#ifndef __LATCH_ADDR_FLASH__
|
||
|
#define __LATCH_ADDR_FLASH__
|
||
|
|
||
|
struct map_info;
|
||
|
struct mtd_partition;
|
||
|
|
||
|
struct latch_addr_flash_data {
|
||
|
unsigned int width;
|
||
|
unsigned int size;
|
||
|
|
||
|
int (*init)(void *data, int cs);
|
||
|
void (*done)(void *data);
|
||
|
void (*set_window)(unsigned long offset, void *data);
|
||
|
void *data;
|
||
|
|
||
|
unsigned int nr_parts;
|
||
|
struct mtd_partition *parts;
|
||
|
};
|
||
|
|
||
|
#endif
|