; Project name : XTIDE Universal BIOS ; Description : Defines for DPT structs containing custom ; Disk Parameter Table used by this BIOS. ; ; XTIDE Universal BIOS and Associated Tools ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. ; ; This program 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 2 of the License, or ; (at your option) any later version. ; ; This program 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. ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html ; %ifndef CUSTOMDPT_INC %define CUSTOMDPT_INC ; Base DPT for all device types struc DPT ; 10 bytes ; General Disk Parameter Table related .wFlags: .bFlagsLow resb 1 .bFlagsHigh resb 1 .bIdevarsOffset resb 1 ; Offset to IDEVARS for this drive ; IDE Drive related ; .bLbaHeads and .twLbaSectors are used for LBA addressing only. .bLbaHeads: resb 1 ; Number of LBA assisted heads (1...255) .twLbaSectors resb 2 ; 48-bit sector count for LBA addressing ; .wPchsCylinders and .bPchsSectors are used for CHS addressing only. .wPchsCylinders resb 2 ; Number of P-CHS Cylinders (1...16383) .wPchsHeadsAndSectors: .bPchsHeads resb 1 ; Number of P-CHS heads (1...16) .bPchsSectors resb 1 ; Number of P-CHS Sectors per Track (1...63) endstruc ; Bit definitions for DPT.bFlagsLow MASKL_DPT_CHS_SHIFT_COUNT EQU (7<<0) ; Bits 0...2, P-CHS to L-CHS bit shift count (0...4) FLGL_DPT_SLAVE EQU FLG_DRVNHEAD_DRV ; (1<<4), Drive is slave drive MASKL_DPT_ADDRESSING_MODE EQU (3<