mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / modules / hdd / ps2hdd / journal.h
blob18ec0b1cfdc55f12cb4b60640c949b2dd28b2661
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
10 # $Id: journal.h 577 2004-09-14 14:41:46Z pixel $
13 #ifndef _JOURNAL_H
14 #define _JOURNAL_H
16 #define APAL_MAGIC 0x4150414C // 'APAL'
17 typedef struct
19 u32 magic; // APAL_MAGIC
20 s32 num;
21 u32 sectors[126];
22 } apa_journal_t;
24 ///////////////////////////////////////////////////////////////////////////////
25 // Function declerations
27 #define journalCheckSum(header) apaCheckSum((apa_header *)header)
28 int journalReset(u32 device);
29 int journalFlush(u32 device);
30 int journalWrite(apa_cache *clink);
31 int journalResetore(u32 device);
33 #endif /* _JOURNAL_H */