2
2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 2002,2003,2004,2005,2006 Free Software Foundation, Inc.
3
* Copyright (C) 2002,2003,2004,2005,2006,2007 Free Software Foundation, Inc.
5
* GRUB is free software; you can redistribute it and/or modify
5
* GRUB is free software: you can redistribute it and/or modify
6
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
7
* the Free Software Foundation, either version 3 of the License, or
8
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
10
* GRUB is distributed in the hope that it will be useful,
11
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
13
* GNU General Public License for more details.
15
15
* You should have received a copy of the GNU General Public License
16
* along with GRUB; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
20
19
#ifndef GRUB_DISK_HEADER
34
33
GRUB_DISK_DEVICE_LOOPBACK_ID,
35
34
GRUB_DISK_DEVICE_EFIDISK_ID,
36
35
GRUB_DISK_DEVICE_RAID_ID,
37
GRUB_DISK_DEVICE_LVM_ID
36
GRUB_DISK_DEVICE_LVM_ID,
37
GRUB_DISK_DEVICE_HOST_ID,
38
GRUB_DISK_DEVICE_ATA_ID
96
97
/* Called when a sector was read. OFFSET is between 0 and
97
98
the sector size minus 1, and LENGTH is between 0 and the sector size. */
98
void (*read_hook) (grub_disk_addr_t sector,
99
void NESTED_FUNC_ATTR (*read_hook) (grub_disk_addr_t sector,
99
100
unsigned offset, unsigned length);
101
102
/* Device-specific data. */