NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command)
{
- mx3_nf_controller_t *mx3_nf_info;
- mx3_nf_info = malloc (sizeof (mx3_nf_controller_t));
+ struct mx3_nf_controller *mx3_nf_info;
+ mx3_nf_info = malloc (sizeof (struct mx3_nf_controller));
if (mx3_nf_info == NULL)
{
LOG_ERROR ("no memory for nand controller");
static int imx31_init (struct nand_device_s *nand)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
{
static int imx31_read_data (struct nand_device_s *nand, void *data)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
{
/*
static int imx31_command (struct nand_device_s *nand, uint8_t command)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
{
/*
static int imx31_address (struct nand_device_s *nand, uint8_t address)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
{
/*
static int imx31_controller_ready (struct nand_device_s *nand, int tout)
{
uint16_t poll_complete_status;
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
{
uint8_t * data, uint32_t data_size, uint8_t * oob,
uint32_t oob_size)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
if (data_size % 2)
uint8_t * data, uint32_t data_size, uint8_t * oob,
uint32_t oob_size)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
if (data_size % 2)
static int initialize_nf_controller (struct nand_device_s *nand)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
/*
* resets NAND flash controller in zero time ? I dont know.
static int validate_target_state (struct nand_device_s *nand)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
if (target->state != TARGET_HALTED)
static int do_data_output (struct nand_device_s *nand)
{
- mx3_nf_controller_t *mx3_nf_info = nand->controller_priv;
+ struct mx3_nf_controller *mx3_nf_info = nand->controller_priv;
target_t *target = mx3_nf_info->target;
switch (mx3_nf_info->fin)
{