]> FriiDump Source - friidump.git/blob - libfriidump/constants.h
Document exact-release Linux hardware validation
[friidump.git] / libfriidump / constants.h
1 /***************************************************************************
2  *   Copyright (C) 2007 by Arep                                            *
3  *   Support is provided through the forums at                             *
4  *   http://wii.console-tribe.com                                          *
5  *                                                                         *
6  *   This program is free software; you can redistribute it and/or modify  *
7  *   it under the terms of the GNU General Public License as published by  *
8  *   the Free Software Foundation; either version 2 of the License, or     *
9  *   (at your option) any later version.                                   *
10  *                                                                         *
11  *   This program is distributed in the hope that it will be useful,       *
12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14  *   GNU General Public License for more details.                          *
15  *                                                                         *
16  *   You should have received a copy of the GNU General Public License     *
17  *   along with this program; if not, write to the                         *
18  *   Free Software Foundation, Inc.,                                       *
19  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20  ***************************************************************************/
21
22 /*! \file
23  * \brief Nintendo GameCube/Wii disc geometry constants.
24  *
25  * This file contains constants that describe the general layout of Nintendo GameCube/Wii discs and that can be used throughout the whole program.
26  */
27
28 #ifndef CONSTANTS_H_INCLUDED
29 #define CONSTANTS_H_INCLUDED
30
31 /*! \brief Size of a scrambled sector */
32 #define RAW_SECTOR_SIZE 2064
33
34 /*! \brief Size of an unscrambled sector */
35 #define SECTOR_SIZE 2048
36
37 /*! \brief Number of sectors in a block */
38 #define SECTORS_PER_BLOCK 16
39
40 /*! \brief Size of a scrambled block */
41 #define RAW_BLOCK_SIZE (RAW_SECTOR_SIZE * SECTORS_PER_BLOCK)
42
43 /*! \brief Size of an unscrambled block */
44 #define BLOCK_SIZE (SECTOR_SIZE * SECTORS_PER_BLOCK)
45
46 #endif