]> Git Repo - J-u-boot.git/blame - include/onenand_uboot.h
sh: Revised the build with newest compiler
[J-u-boot.git] / include / onenand_uboot.h
CommitLineData
d7e8ce10
KP
1/*
2 * Header file for OneNAND support for U-Boot
3 *
4 * Adaptation from kernel to U-Boot
5 *
6 * Copyright (C) 2005-2007 Samsung Electronics
7 * Kyungmin Park <[email protected]>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13
14#ifndef __UBOOT_ONENAND_H
15#define __UBOOT_ONENAND_H
16
229c56f0
SW
17#include <linux/types.h>
18
bd99ec14 19/* Forward declarations */
229c56f0 20struct mtd_info;
bd99ec14 21struct mtd_oob_ops;
229c56f0 22struct erase_info;
ef0921d6 23struct onenand_chip;
229c56f0 24
bfd7f386
KP
25extern struct mtd_info onenand_mtd;
26
ef0921d6
KP
27/* board */
28extern void onenand_board_init(struct mtd_info *);
29
d7e8ce10
KP
30/* Functions */
31extern void onenand_init(void);
32extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
33 size_t * retlen, u_char * buf);
ef0921d6 34extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
d7e8ce10
KP
35extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len,
36 size_t * retlen, const u_char * buf);
37extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr);
38
ef0921d6 39extern char *onenand_print_device_info(int device, int version);
d7e8ce10 40
ef0921d6
KP
41/* S3C64xx */
42extern void s3c64xx_onenand_init(struct mtd_info *);
43extern void s3c64xx_set_width_regs(struct onenand_chip *);
d7e8ce10
KP
44
45#endif /* __UBOOT_ONENAND_H */
This page took 0.121953 seconds and 4 git commands to generate.