Sony PlayStation2 Study
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
980 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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.
  9. */
  10. /**
  11. * @file
  12. * Common definitions for the libcdvd RPC on the EE and IOP
  13. */
  14. #ifndef __LIBCDVD_RPC_H__
  15. #define __LIBCDVD_RPC_H__
  16. #include <tamtypes.h>
  17. /* S-command parameters */
  18. struct cdvdScmdParam{
  19. u16 cmdNum;
  20. u16 inBuffSize;
  21. u8 inBuff[16];
  22. };
  23. struct cdvdDecSetParam{
  24. u8 arg1;
  25. u8 arg2;
  26. u8 shift;
  27. u8 pad;
  28. };
  29. struct cdvdReadWriteNvmParam{
  30. u32 address;
  31. u16 value;
  32. u16 pad;
  33. };
  34. /* N-command parameters */
  35. struct cdvdNcmdParam{
  36. u16 cmdNum;
  37. u16 inBuffSize;
  38. u8 inBuff[16];
  39. };
  40. struct cdvdReadKeyParam{
  41. u32 arg1;
  42. u32 arg2;
  43. u32 command;
  44. };
  45. #endif /* _LIBCDVD_RPC_H_ */