PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright (c) 2003 Marcus R. Brown <mrbrown@0xd6.org>
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
16#ifndef SIO2LOG_LOG_H
17#define SIO2LOG_LOG_H
18
19#include <types.h>
20
21#include "sio2man.h"
22
23enum _log_types {
24 LOG_HEADER = 0x02, LOG_PAD_READY, LOG_MC_READY, LOG_MTAP_READY,
25 LOG_TRS, LOG_TRS_PD, LOG_TRS_RD, LOG_TRS_DATA, LOG_TRS_DMA_IN,
26 LOG_TRS_DMA_OUT,
27 LOG_TRR, LOG_TRR_STAT, LOG_TRR_DATA,
28 LOG_RESET
29};
30
31void log_write8(u8 val);
32void log_write32(u32 val);
33void log_flush(int now);
34
35void log_default(int type);
36void log_portdata(u32 *pd1, u32 *pd2);
37void log_regdata(u32 *rd);
38void log_data(int type, u8 *data, u32 size);
39void log_dma(int type, struct _sio2_dma_arg *arg);
40void log_stat(u32 stat6c, u32 stat70, u32 stat74);
41
42#endif /* SIO2LOG_LOG_H */