/* nand.c - NAND flash disk access. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2008,2009 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
GRUB_MOD_LICENSE ("GPLv3+");
struct grub_nand_data
{
};
static int
{
{
{
return 1;
}
return 0;
}
if (pull != GRUB_DISK_PULL_NONE)
return 0;
return grub_devalias_iterate (dev_iterate);
}
static grub_err_t
static grub_err_t
{
struct size_args
{
} args;
if (! data)
goto fail;
if (! dev_ihandle)
{
goto fail;
}
{
goto fail;
}
{
goto fail;
}
return 0;
fail:
if (dev_ihandle)
return grub_errno;
}
static void
{
}
static grub_err_t
{
struct read_args
{
} args;
do
{
ofs = 0;
} while (size);
return GRUB_ERR_NONE;
}
static grub_err_t
{
return GRUB_ERR_NOT_IMPLEMENTED_YET;
}
{
.name = "nand",
.open = grub_nand_open,
.close = grub_nand_close,
.read = grub_nand_read,
.write = grub_nand_write,
.next = 0
};
{
}
{
}