1 /******************************************************************************/
2 /* src/booter/LoadMng/LoadMngInit.h */
4 /* Copyright (C) 2017 Mochi. */
5 /******************************************************************************/
8 /******************************************************************************/
10 /******************************************************************************/
15 /******************************************************************************/
17 /******************************************************************************/
19 #define GET_CYLINDER( _CYLSEC ) \
20 ( ( ( _CYLSEC >> 6 ) & 0x0300 ) | ( _CYLSEC & 0x00FF ) )
23 #define GET_SECTOR( _CYLSEC ) ( ( _CYLSEC >> 8 ) & 0x3F )
27 uint16_t cylSec; /**< シリンダ&セクタ */
28 uint8_t head; /**< ヘッド */
29 } __attribute__( ( packed ) ) chs_t;
33 uint8_t status; /**< ステータス */
34 chs_t chsFirstAddr; /**< CHS先頭アドレス */
35 uint8_t type; /**< パーティションタイプ */
36 chs_t chsLastAddr; /**< CHS最後尾アドレス */
37 uint32_t lbaFirstAddr; /**< LBA先頭アドレス */
38 uint32_t lbaSize; /**< LBAサイズ */
39 } __attribute__( ( packed ) ) pt_t;
42 /******************************************************************************/
44 /******************************************************************************/
46 extern pt_t gLoadMngInitPt[ 4 ];
49 /******************************************************************************/