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.
10 # $Id: dev9.h 1454 2007-11-04 23:19:57Z roman_ps2dev $
11 # DEV9 Device Driver definitions and imports.
20 typedef int (*dev9_intr_cb_t
)(int flag
);
21 typedef void (*dev9_shutdown_cb_t
)(void);
22 typedef void (*dev9_dma_cb_t
)(int bcr
, int dir
);
25 void dev9RegisterIntrCb(int intr
, dev9_intr_cb_t cb
); // #4
26 int dev9DmaTransfer(int ctrl
, void *buf
, int bcr
, int dir
); // #5
27 void dev9Shutdown(void); // #6
28 void dev9IntrEnable(int mask
); // #7
29 void dev9IntrDisable(int mask
); // #8
30 int dev9GetEEPROM(u16
*buf
); // #9
31 void dev9LEDCtl(int ctl
); // #10
32 int dev9RegisterShutdownCb(int idx
, dev9_shutdown_cb_t cb
); // #11
33 void dev9RegisterPreDmaCb(int ctrl
, dev9_dma_cb_t cb
); // #12
34 void dev9RegisterPostDmaCb(int ctrl
, dev9_dma_cb_t cb
); // #13
36 #endif /* IOP_PS2DEV9_H */