mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
716 B
29 lines
716 B
/* |
|
* Interface for NOR flash driver whose high address lines are latched |
|
* |
|
* Copyright © 2008 MontaVista Software, Inc. <[email protected]> |
|
* |
|
* 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
|
|
|