|
Linux Kernel
3.7.1
|
#include <linux/spinlock.h>#include <linux/completion.h>#include <linux/mtd/flashchip.h>#include <linux/mtd/onenand_regs.h>#include <linux/mtd/bbm.h>Go to the source code of this file.
Data Structures | |
| struct | onenand_bufferram |
| struct | onenand_chip |
| struct | onenand_manufacturers |
| struct | onenand_platform_data |
Functions | |
| int | onenand_scan (struct mtd_info *mtd, int max_chips) |
| void | onenand_release (struct mtd_info *mtd) |
: Manufacturer name | |
struct onenand_manufacturers - NAND Flash Manufacturer ID Structure : manufacturer ID code of device. | |
| int | onenand_bbt_read_oob (struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) |
| unsigned | onenand_block (struct onenand_chip *this, loff_t addr) |
| loff_t | onenand_addr (struct onenand_chip *this, int block) |
| int | flexonenand_region (struct mtd_info *mtd, loff_t addr) |
| #define FLEXONENAND | ( | this | ) | (this->device_id & DEVICE_IS_FLEXONENAND) |
| #define ONENAND_CURRENT_BUFFERRAM | ( | this | ) | (this->bufferram_index) |
| #define ONENAND_GET_SYS_CFG1 | ( | this | ) | (this->read_word(this->base + ONENAND_REG_SYS_CFG1)) |
| #define ONENAND_IS_4KB_PAGE | ( | this | ) | (this->options & ONENAND_HAS_4KB_PAGE) |
| #define ONENAND_IS_CACHE_PROGRAM | ( | this | ) | (this->options & ONENAND_HAS_CACHE_PROGRAM) |
| #define ONENAND_IS_DDP | ( | this | ) | (this->device_id & ONENAND_DEVICE_IS_DDP) |
| #define ONENAND_IS_MLC | ( | this | ) | (this->technology & ONENAND_TECHNOLOGY_IS_MLC) |
| #define ONENAND_IS_NOP_1 | ( | this | ) | (this->options & ONENAND_HAS_NOP_1) |
| #define ONENAND_NEXT_BUFFERRAM | ( | this | ) | (this->bufferram_index ^ 1) |
| #define ONENAND_SET_BUFFERRAM0 | ( | this | ) | (this->bufferram_index = 0) |
| #define ONENAND_SET_BUFFERRAM1 | ( | this | ) | (this->bufferram_index = 1) |
| #define ONENAND_SET_NEXT_BUFFERRAM | ( | this | ) | (this->bufferram_index ^= 1) |
| #define ONENAND_SET_PREV_BUFFERRAM | ( | this | ) | (this->bufferram_index ^= 1) |
| #define ONENAND_SET_SYS_CFG1 | ( | v, | |
| this | |||
| ) | (this->write_word(v, this->base + ONENAND_REG_SYS_CFG1)) |
flexonenand_region - [Flex-OneNAND] Return erase region of addr
| mtd | MTD device structure |
| addr | address whose erase region needs to be identified |
Definition at line 350 of file onenand_base.c.
| loff_t onenand_addr | ( | struct onenand_chip * | this, |
| int | block | ||
| ) |
Definition at line 325 of file onenand_base.c.
| int onenand_bbt_read_oob | ( | struct mtd_info * | mtd, |
| loff_t | from, | ||
| struct mtd_oob_ops * | ops | ||
| ) |
onenand_bbt_read_oob - [MTD Interface] OneNAND read out-of-band for bbt scan
| mtd | MTD device structure |
| from | offset to read from |
| ops | oob operation description structure |
OneNAND read out-of-band data from the spare area for bbt scan
Definition at line 1572 of file onenand_base.c.
|
inline |
Definition at line 293 of file onenand_base.c.
onenand_release - [OneNAND Interface] Free resources held by the OneNAND device
| mtd | MTD device structure |
Definition at line 4134 of file onenand_base.c.
onenand_scan - [OneNAND Interface] Scan for the OneNAND device
| mtd | MTD device structure |
| maxchips | Number of chips to scan for |
This fills out all the not initialized function pointers with the defaults. The flash ID is read and the mtd/chip structures are filled with the appropriate values.
Definition at line 3959 of file onenand_base.c.
1.8.2