split flash.h into into flash/nor/*.h

Move the bulk of the flash.h file into flash/nor/core.h, leaving an
empty husk that will be removed in the next patch.

The NOR driver structure is an implementation detail, so move it into
its own private header file <flash/nor/driver.h> along with helper
declaration for finding them by name.
This commit is contained in:
Zachary T Welch
2009-12-04 16:07:47 -08:00
parent d9dc604a4d
commit ae6374e25d
6 changed files with 358 additions and 326 deletions

View File

@@ -19,7 +19,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <flash/nor/core.h>
#include "imp.h"
extern struct flash_driver lpc2000_flash;
extern struct flash_driver lpc288x_flash;