Skip to content
Snippets Groups Projects
Commit 229c56f0 authored by Scott Wood's avatar Scott Wood
Browse files

Make onenand_uboot.h self-sufficient.


Don't assume types are provided by previously included headers.

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 9723bbb4
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,8 @@ ...@@ -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 { ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment