/packages/libgbafpc/src/gba/gba_multiboot.inc
Pascal | 72 lines | 25 code | 4 blank | 43 comment | 0 complexity | 15e2013fbaceb63f41147227c590299e MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
1(* 2 $Id$ 3 ------------------------------------------------------------------------------ 4 Header file for libgba multiboot definitions 5 6 Copyright 2003-2004 by Dave Murphy. 7 8 This library is free software; you can redistribute it and/or 9 modify it under the terms of the GNU Library General Public 10 License as published by the Free Software Foundation; either 11 version 2 of the License, or (at your option) any later version. 12 13 This library is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 Library General Public License for more details. 17 18 You should have received a copy of the GNU Library General Public 19 License along with this library; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 21 USA. 22 23 Please report all bugs and problems through the bug tracker at 24 "http://sourceforge.net/tracker/?group_id=114505&atid=668551". 25 26 ------------------------------------------------------------------------------ 27 28 29 Conversion by Legolas (http://itaprogaming.free.fr) for freepascal compiler 30 (http://www.freepascal.org) 31 32 Copyright (C) 2006 Francesco Lombardi 33 Check http://sourceforge.net/projects/libndsfpc for updates 34 35 ------------------------------------------------------------------------------ 36 37 $Log$ 38 39 40 41*) 42 43 44{$ifdef GBA_INTERFACE} 45type 46 MultiBootParam = record 47 reserved1: array [0..4] of u32; 48 handshake_data: u8; 49 padding: u8; 50 handshake_timeout: u16; 51 probe_count: u8; 52 client_data: array [0..2] of u8; 53 palette_data: u8; 54 response_bit: u8; 55 client_bit: u8; 56 reserved2: u8; 57 boot_srcp: pu8; 58 boot_endp: pu8; 59 masterp: pu8; 60 reserved3: array [0..2] of pu8; 61 system_work2: array [0..3] of u32; 62 sendflag: u8; 63 probe_target_bit: u8; 64 check_wait: u8; 65 server_type: u8; 66 end; 67 PMultiBootParam = ^MultiBootParam; 68 69 MULTIBOOT_MODES = (MODE32_NORMAL, MODE16_MULTI, MODE32_2MHZ); 70 71function MultiBoot(mp: PMultiBootParam; mode: u32): u32; cdecl; external; 72{$endif GBA_INTERFACE}