mirror of
https://git.proxmox.com/git/grub2
synced 2025-05-17 21:38:44 +00:00

* grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block size of the disk. * (grub_ofdisk_get_block_size): New function. * (grub_ofdisk_prepare): Use the correct block size. * (grub_ofdisk_read): Likewise. * (grub_ofdisk_write): Likewise. * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size): New proto.
29 lines
1.0 KiB
C
29 lines
1.0 KiB
C
/*
|
|
* GRUB -- GRand Unified Bootloader
|
|
* Copyright (C) 2005,2007 Free Software Foundation, Inc.
|
|
*
|
|
* GRUB is free software: you can redistribute it and/or modify
|
|
* 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/>.
|
|
*/
|
|
|
|
#ifndef GRUB_OFDISK_HEADER
|
|
#define GRUB_OFDISK_HEADER 1
|
|
|
|
extern void grub_ofdisk_init (void);
|
|
extern void grub_ofdisk_fini (void);
|
|
|
|
extern grub_err_t grub_ofdisk_get_block_size (const char *device,
|
|
grub_uint32_t *block_size);
|
|
|
|
#endif /* ! GRUB_INIT_HEADER */
|