; 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 ; 8 or 18 bytes ; General Disk Parameter Table related .wFlags: .bFlagsLow resb 1 .bFlagsHigh resb 1 .bIdevarsOffset resb 1 ; Offset to IDEVARS for this drive .bPchsHeads resb 1 ; (1...16) .wLchsCylinders resb 2 ; (1...1027, yes 1027) .wLchsHeadsAndSectors: .bLchsHeads resb 1 ; (1...255) .bLchsSectorsPerTrack resb 1 ; (1...63) %ifdef MODULE_EBIOS .twLbaSectors resb 6 ; 48-bit sector count for LBA addressing .wPchsCylinders resb 2 .bPchsSectorsPerTrack resb 1 resb 1 %endif endstruc ; Bit definitions for DPT.bFlagsLow MASKL_DPT_CHS_SHIFT_COUNT EQU (3<<0) ; Bits 0...1, P-CHS to L-CHS bit shift count (0...3) MASKL_DPT_ADDRESSING_MODE EQU (3<