mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
Make onenand_uboot.h self-sufficient.
Don't assume types are provided by previously included headers. Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
9723bbb46a
commit
229c56f07a
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,8 @@
|
||||||
#ifndef __UBOOT_ONENAND_H
|
#ifndef __UBOOT_ONENAND_H
|
||||||
#define __UBOOT_ONENAND_H
|
#define __UBOOT_ONENAND_H
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
struct kvec {
|
struct kvec {
|
||||||
void *iov_base;
|
void *iov_base;
|
||||||
size_t iov_len;
|
size_t iov_len;
|
||||||
|
@ -22,6 +24,9 @@ struct kvec {
|
||||||
typedef int spinlock_t;
|
typedef int spinlock_t;
|
||||||
typedef int wait_queue_head_t;
|
typedef int wait_queue_head_t;
|
||||||
|
|
||||||
|
struct mtd_info;
|
||||||
|
struct erase_info;
|
||||||
|
|
||||||
/* Functions */
|
/* Functions */
|
||||||
extern void onenand_init(void);
|
extern void onenand_init(void);
|
||||||
extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
|
extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
|
||||||
|
|
Loading…
Add table
Reference in a new issue