~ubuntu-branches/debian/sid/grub2/sid-200907171838

« back to all changes in this revision

Viewing changes to include/grub/disk.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2007-11-01 13:18:51 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071101131851-tczt5tevrsnpt1tq
Tags: 1.95+20071101-1
* New CVS snapshot.
  - patches/linuxbios.diff: Remove (supported in upstream now).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
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.
4
4
 *
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.
9
9
 *
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.
14
14
 *
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/>.
18
17
 */
19
18
 
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
38
39
  };
39
40
 
40
41
struct grub_disk;
95
96
 
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);
100
101
 
101
102
  /* Device-specific data.  */