diff options
-rw-r--r-- | include/kernel/kernel/modulemgr.h | 11 | ||||
-rw-r--r-- | include/kernel/net/net.h | 718 | ||||
-rw-r--r-- | include/user/kernel/clib.h | 11 | ||||
-rw-r--r-- | include/user/npdrmpackage.h | 51 | ||||
-rw-r--r-- | include/user/usbserial.h | 83 | ||||
-rw-r--r-- | nids/360/SceBt.yml | 89 | ||||
-rw-r--r-- | nids/360/SceKernelModulemgr.yml | 6 | ||||
-rw-r--r-- | nids/360/SceKernelThreadMgr.yml | 2 | ||||
-rw-r--r-- | nids/360/SceNetPs.yml | 17 | ||||
-rw-r--r-- | nids/360/SceNpDrmPackage.yml | 9 | ||||
-rw-r--r-- | nids/360/SceUsbSerial.yml | 24 |
11 files changed, 1014 insertions, 7 deletions
diff --git a/include/kernel/kernel/modulemgr.h b/include/kernel/kernel/modulemgr.h index 74b6ca5..ee6ece2 100644 --- a/include/kernel/kernel/modulemgr.h +++ b/include/kernel/kernel/modulemgr.h @@ -78,16 +78,19 @@ int sceKernelGetModuleInternal(SceUID modid, void **module); int sceKernelGetSystemSwVersion(SceKernelFwInfo *data); +int sceKernelLoadStartModule(const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status); SceUID sceKernelLoadModule(const char *path, int flags, SceKernelLMOption *option); int sceKernelStartModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status); +int sceKernelUnloadModule(SceUID modid, int flags, SceKernelULMOption *option); +int sceKernelStopModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status); +int sceKernelStopUnloadModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status); SceUID sceKernelLoadStartSharedModuleForPid(SceUID pid, const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status); SceUID sceKernelLoadStartModuleForPid(SceUID pid, const char *path, SceSize args, void *argp, int flags, SceKernelLMOption *option, int *status); SceUID sceKernelLoadModuleForPid(SceUID pid, const char *path, int flags, SceKernelLMOption *option); - -int sceKernelUnloadModule(SceUID modid, int flags); - -int sceKernelStopUnloadModule(SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status); +SceUID sceKernelUnloadModuleForPid(SceUID pid, SceUID modid, int flags, SceKernelULMOption *option); +int sceKernelStopModuleForPid(SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status); +int sceKernelStopUnloadModuleForPid(SceUID pid, SceUID modid, SceSize args, void *argp, int flags, SceKernelULMOption *option, int *status); #ifdef __cplusplus } diff --git a/include/kernel/net/net.h b/include/kernel/net/net.h new file mode 100644 index 0000000..4faffb4 --- /dev/null +++ b/include/kernel/net/net.h @@ -0,0 +1,718 @@ +#ifndef _PSP2_KERNEL_NET_NET_H_ +#define _PSP2_KERNEL_NET_NET_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/** Net Error Codes */ +enum { + SCE_NET_ERROR_EPERM = 0x80410101, + SCE_NET_ERROR_ENOENT = 0x80410102, + SCE_NET_ERROR_ESRCH = 0x80410103, + SCE_NET_ERROR_EINTR = 0x80410104, + SCE_NET_ERROR_EIO = 0x80410105, + SCE_NET_ERROR_ENXIO = 0x80410106, + SCE_NET_ERROR_E2BIG = 0x80410107, + SCE_NET_ERROR_ENOEXEC = 0x80410108, + SCE_NET_ERROR_EBADF = 0x80410109, + SCE_NET_ERROR_ECHILD = 0x8041010A, + SCE_NET_ERROR_EDEADLK = 0x8041010B, + SCE_NET_ERROR_ENOMEM = 0x8041010C, + SCE_NET_ERROR_EACCES = 0x8041010D, + SCE_NET_ERROR_EFAULT = 0x8041010E, + SCE_NET_ERROR_ENOTBLK = 0x8041010F, + SCE_NET_ERROR_EBUSY = 0x80410110, + SCE_NET_ERROR_EEXIST = 0x80410111, + SCE_NET_ERROR_EXDEV = 0x80410112, + SCE_NET_ERROR_ENODEV = 0x80410113, + SCE_NET_ERROR_ENOTDIR = 0x80410114, + SCE_NET_ERROR_EISDIR = 0x80410115, + SCE_NET_ERROR_EINVAL = 0x80410116, + SCE_NET_ERROR_ENFILE = 0x80410117, + SCE_NET_ERROR_EMFILE = 0x80410118, + SCE_NET_ERROR_ENOTTY = 0x80410119, + SCE_NET_ERROR_ETXTBSY = 0x8041011A, + SCE_NET_ERROR_EFBIG = 0x8041011B, + SCE_NET_ERROR_ENOSPC = 0x8041011C, + SCE_NET_ERROR_ESPIPE = 0x8041011D, + SCE_NET_ERROR_EROFS = 0x8041011E, + SCE_NET_ERROR_EMLINK = 0x8041011F, + SCE_NET_ERROR_EPIPE = 0x80410120, + SCE_NET_ERROR_EDOM = 0x80410121, + SCE_NET_ERROR_ERANGE = 0x80410122, + SCE_NET_ERROR_EAGAIN = 0x80410123, + SCE_NET_ERROR_EWOULDBLOCK = 0x80410123, + SCE_NET_ERROR_EINPROGRESS = 0x80410124, + SCE_NET_ERROR_EALREADY = 0x80410125, + SCE_NET_ERROR_ENOTSOCK = 0x80410126, + SCE_NET_ERROR_EDESTADDRREQ = 0x80410127, + SCE_NET_ERROR_EMSGSIZE = 0x80410128, + SCE_NET_ERROR_EPROTOTYPE = 0x80410129, + SCE_NET_ERROR_ENOPROTOOPT = 0x8041012A, + SCE_NET_ERROR_EPROTONOSUPPORT = 0x8041012B, + SCE_NET_ERROR_ESOCKTNOSUPPOR = 0x8041012C, + SCE_NET_ERROR_EOPNOTSUPP = 0x8041012D, + SCE_NET_ERROR_EPFNOSUPPORT = 0x8041012E, + SCE_NET_ERROR_EAFNOSUPPORT = 0x8041012F, + SCE_NET_ERROR_EADDRINUSE = 0x80410130, + SCE_NET_ERROR_EADDRNOTAVAIL = 0x80410131, + SCE_NET_ERROR_ENETDOWN = 0x80410132, + SCE_NET_ERROR_ENETUNREACH = 0x80410133, + SCE_NET_ERROR_ENETRESET = 0x80410134, + SCE_NET_ERROR_ECONNABORTED = 0x80410135, + SCE_NET_ERROR_ECONNRESET = 0x80410136, + SCE_NET_ERROR_ENOBUFS = 0x80410137, + SCE_NET_ERROR_EISCONN = 0x80410138, + SCE_NET_ERROR_ENOTCONN = 0x80410139, + SCE_NET_ERROR_ESHUTDOWN = 0x8041013A, + SCE_NET_ERROR_ETOOMANYREFS = 0x8041013B, + SCE_NET_ERROR_ETIMEDOUT = 0x8041013C, + SCE_NET_ERROR_ECONNREFUSED = 0x8041013D, + SCE_NET_ERROR_ELOOP = 0x8041013E, + SCE_NET_ERROR_ENAMETOOLONG = 0x8041013F, + SCE_NET_ERROR_EHOSTDOWN = 0x80410140, + SCE_NET_ERROR_EHOSTUNREACH = 0x80410141, + SCE_NET_ERROR_ENOTEMPTY = 0x80410142, + SCE_NET_ERROR_EPROCLIM = 0x80410143, + SCE_NET_ERROR_EUSERS = 0x80410144, + SCE_NET_ERROR_EDQUOT = 0x80410145, + SCE_NET_ERROR_ESTALE = 0x80410146, + SCE_NET_ERROR_EREMOTE = 0x80410147, + SCE_NET_ERROR_EBADRPC = 0x80410148, + SCE_NET_ERROR_ERPCMISMATCH = 0x80410149, + SCE_NET_ERROR_EPROGUNAVAIL = 0x8041014A, + SCE_NET_ERROR_EPROGMISMATCH = 0x8041014B, + SCE_NET_ERROR_EPROCUNAVAIL = 0x8041014C, + SCE_NET_ERROR_ENOLCK = 0x8041014D, + SCE_NET_ERROR_ENOSYS = 0x8041014E, + SCE_NET_ERROR_EFTYPE = 0x8041014F, + SCE_NET_ERROR_EAUTH = 0x80410150, + SCE_NET_ERROR_ENEEDAUTH = 0x80410151, + SCE_NET_ERROR_EIDRM = 0x80410152, + SCE_NET_ERROR_ENOMS = 0x80410153, + SCE_NET_ERROR_EOVERFLOW = 0x80410154, + SCE_NET_ERROR_EILSEQ = 0x80410155, + SCE_NET_ERROR_ENOTSUP = 0x80410156, + SCE_NET_ERROR_ECANCELED = 0x80410157, + SCE_NET_ERROR_EBADMSG = 0x80410158, + SCE_NET_ERROR_ENODATA = 0x80410159, + SCE_NET_ERROR_ENOSR = 0x8041015A, + SCE_NET_ERROR_ENOSTR = 0x8041015B, + SCE_NET_ERROR_ETIME = 0x8041015C, + SCE_NET_ERROR_EADHOC = 0x804101A0, + SCE_NET_ERROR_EDISABLEDIF = 0x804101A1, + SCE_NET_ERROR_ERESUME = 0x804101A2, + SCE_NET_ERROR_ENOTINIT = 0x804101C8, + SCE_NET_ERROR_ENOLIBMEM = 0x804101C9, + SCE_NET_ERROR_ERESERVED202 = 0x804101CA, + SCE_NET_ERROR_ECALLBACK = 0x804101CB, + SCE_NET_ERROR_EINTERNAL = 0x804101CC, + SCE_NET_ERROR_ERETURN = 0x804101CD, + SCE_NET_ERROR_RESOLVER_EINTERNAL = 0x804101DC, + SCE_NET_ERROR_RESOLVER_EBUSY = 0x804101DD, + SCE_NET_ERROR_RESOLVER_ENOSPACE = 0x804101DE, + SCE_NET_ERROR_RESOLVER_EPACKET = 0x804101DF, + SCE_NET_ERROR_RESOLVER_ERESERVED22 = 0x804101E0, + SCE_NET_ERROR_RESOLVER_ENODNS = 0x804101E1, + SCE_NET_ERROR_RESOLVER_ETIMEDOUT = 0x804101E2, + SCE_NET_ERROR_RESOLVER_ENOSUPPORT = 0x804101E3, + SCE_NET_ERROR_RESOLVER_EFORMAT = 0x804101E4, + SCE_NET_ERROR_RESOLVER_ESERVERFAILURE = 0x804101E5, + SCE_NET_ERROR_RESOLVER_ENOHOST = 0x804101E6, + SCE_NET_ERROR_RESOLVER_ENOTIMPLEMENTED = 0x804101E7, + SCE_NET_ERROR_RESOLVER_ESERVERREFUSED = 0x804101E8, + SCE_NET_ERROR_RESOLVER_ENORECORD = 0x804101E9, + SCE_NET_ERROR_RESOLVER_EALIGNMENT = 0x804101EA +}; + +/** Specific kernel and libnet error codes */ +enum { + SCE_NET_EPERM = 1, + SCE_NET_ENOENT = 2, + SCE_NET_ESRCH = 3, + SCE_NET_EINTR = 4, + SCE_NET_EIO = 5, + SCE_NET_ENXIO = 6, + SCE_NET_E2BIG = 7, + SCE_NET_ENOEXEC = 8, + SCE_NET_EBADF = 9, + SCE_NET_ECHILD = 10, + SCE_NET_EDEADLK = 11, + SCE_NET_ENOMEM = 12, + SCE_NET_EACCES = 13, + SCE_NET_EFAULT = 14, + SCE_NET_ENOTBLK = 15, + SCE_NET_EBUSY = 16, + SCE_NET_EEXIST = 17, + SCE_NET_EXDEV = 18, + SCE_NET_ENODEV = 19, + SCE_NET_ENOTDIR = 20, + SCE_NET_EISDIR = 21, + SCE_NET_EINVAL = 22, + SCE_NET_ENFILE = 23, + SCE_NET_EMFILE = 24, + SCE_NET_ENOTTY = 25, + SCE_NET_ETXTBSY = 26, + SCE_NET_EFBIG = 27, + SCE_NET_ENOSPC = 28, + SCE_NET_ESPIPE = 29, + SCE_NET_EROFS = 30, + SCE_NET_EMLINK = 31, + SCE_NET_EPIPE = 32, + SCE_NET_EDOM = 33, + SCE_NET_ERANGE = 34, + SCE_NET_EAGAIN = 35, + SCE_NET_EWOULDBLOCK = 35, + SCE_NET_EINPROGRESS = 36, + SCE_NET_EALREADY = 37, + SCE_NET_ENOTSOCK = 38, + SCE_NET_EDESTADDRREQ = 39, + SCE_NET_EMSGSIZE = 40, + SCE_NET_EPROTOTYPE = 41, + SCE_NET_ENOPROTOOPT = 42, + SCE_NET_EPROTONOSUPPORT = 43, + SCE_NET_ESOCKTNOSUPPORT = 44, + SCE_NET_EOPNOTSUPP = 45, + SCE_NET_EPFNOSUPPORT = 46, + SCE_NET_EAFNOSUPPORT = 47, + SCE_NET_EADDRINUSE = 48, + SCE_NET_EADDRNOTAVAIL = 49, + SCE_NET_ENETDOWN = 50, + SCE_NET_ENETUNREACH = 51, + SCE_NET_ENETRESET = 52, + SCE_NET_ECONNABORTED = 53, + SCE_NET_ECONNRESET = 54, + SCE_NET_ENOBUFS = 55, + SCE_NET_EISCONN = 56, + SCE_NET_ENOTCONN = 57, + SCE_NET_ESHUTDOWN = 58, + SCE_NET_ETOOMANYREFS = 59, + SCE_NET_ETIMEDOUT = 60, + SCE_NET_ECONNREFUSED = 61, + SCE_NET_ELOOP = 62, + SCE_NET_ENAMETOOLONG = 63, + SCE_NET_EHOSTDOWN = 64, + SCE_NET_EHOSTUNREACH = 65, + SCE_NET_ENOTEMPTY = 66, + SCE_NET_EPROCLIM = 67, + SCE_NET_EUSERS = 68, + SCE_NET_EDQUOT = 69, + SCE_NET_ESTALE = 70, + SCE_NET_EREMOTE = 71, + SCE_NET_EBADRPC = 72, + SCE_NET_ERPCMISMATCH = 73, + SCE_NET_EPROGUNAVAIL = 74, + SCE_NET_EPROGMISMATCH = 75, + SCE_NET_EPROCUNAVAIL = 76, + SCE_NET_ENOLCK = 77, + SCE_NET_ENOSYS = 78, + SCE_NET_EFTYPE = 79, + SCE_NET_EAUTH = 80, + SCE_NET_ENEEDAUTH = 81, + SCE_NET_EIDRM = 82, + SCE_NET_ENOMSG = 83, + SCE_NET_EOVERFLOW = 84, + SCE_NET_EILSEQ = 85, + SCE_NET_ENOTSUP = 86, + SCE_NET_ECANCELED = 87, + SCE_NET_EBADMSG = 88, + SCE_NET_ENODATA = 89, + SCE_NET_ENOSR = 90, + SCE_NET_ENOSTR = 91, + SCE_NET_ETIME = 92, + SCE_NET_EADHOC = 160, + SCE_NET_EDISABLEDIF = 161, + SCE_NET_ERESUME = 162 +}; + + +/** libnet specific error codes */ +enum { + SCE_NET_ENOTINIT = 200, + SCE_NET_ENOLIBMEM, + SCE_NET_ETLS, + SCE_NET_ECALLBACK, + SCE_NET_EINTERNAL, + SCE_NET_ERETURN +}; + +/** Resolver specific error codes */ +enum { + SCE_NET_RESOLVER_EINTERNAL = 220, + SCE_NET_RESOLVER_EBUSY, + SCE_NET_RESOLVER_ENOSPACE, + SCE_NET_RESOLVER_EPACKET, + SCE_NET_RESOLVER_ERESERVED224, + SCE_NET_RESOLVER_ENODNS, + SCE_NET_RESOLVER_ETIMEDOUT, + SCE_NET_RESOLVER_ENOSUPPORT, + SCE_NET_RESOLVER_EFORMAT, + SCE_NET_RESOLVER_ESERVERFAILURE, + SCE_NET_RESOLVER_ENOHOST, + SCE_NET_RESOLVER_ENOTIMPLEMENTED, + SCE_NET_RESOLVER_ESERVERREFUSED, + SCE_NET_RESOLVER_ENORECORD, + SCE_NET_RESOLVER_EALIGNMENT +}; + +/** Flags to specify as argument to ::sceNetDumpRead() */ +enum { + SCE_NET_DUMP_PEEK = 0x00000010, + SCE_NET_DUMP_DONTWAIT = 0x00000020, + SCE_NET_DUMP_OVERFLOW = 0x00000040, + SCE_NET_DUMP_ABORT_FLAG_PRESERVATION = 0x00000001 +}; + +/** Events for ::SceNetEpollEvent */ +enum { + SCE_NET_EPOLLIN = 0x00000001, + SCE_NET_EPOLLOUT = 0x00000002, + SCE_NET_EPOLLERR = 0x00000008, + SCE_NET_EPOLLHUP = 0x00000010, + SCE_NET_EPOLLDESCID = 0x00010000 +}; + +/** Flags to specify as argument to ::sceNetEpollControl() */ +enum { + SCE_NET_EPOLL_CTL_ADD = 1, + SCE_NET_EPOLL_CTL_MOD, + SCE_NET_EPOLL_CTL_DEL +}; + +/** state for ::SceNetSockInfo structure */ +enum { + SCE_NET_SOCKINFO_STATE_UNKNOWN, + SCE_NET_SOCKINFO_STATE_CLOSED, + SCE_NET_SOCKINFO_STATE_OPENED, + SCE_NET_SOCKINFO_STATE_LISTEN, + SCE_NET_SOCKINFO_STATE_SYN_SENT, + SCE_NET_SOCKINFO_STATE_SYN_RECEIVED, + SCE_NET_SOCKINFO_STATE_ESTABLISHED, + SCE_NET_SOCKINFO_STATE_FIN_WAIT_1, + SCE_NET_SOCKINFO_STATE_FIN_WAIT_2, + SCE_NET_SOCKINFO_STATE_CLOSE_WAIT, + SCE_NET_SOCKINFO_STATE_CLOSING, + SCE_NET_SOCKINFO_STATE_LAST_ACK, + SCE_NET_SOCKINFO_STATE_TIME_WAIT +}; + +/** flags for ::SceNetSockInfo structure */ +enum { + SCE_NET_SOCKINFO_F_SELF = 0x00000001, + SCE_NET_SOCKINFO_F_KERNEL = 0x00000002, + SCE_NET_SOCKINFO_F_OTHERS = 0x00000004, + SCE_NET_SOCKINFO_F_RECV_WAIT = 0x00010000, + SCE_NET_SOCKINFO_F_SEND_WAIT = 0x00020000, + SCE_NET_SOCKINFO_F_RECV_EWAIT = 0x00040000, + SCE_NET_SOCKINFO_F_SEND_EWAIT = 0x00080000, + SCE_NET_SOCKINFO_F_WAKEUP_SIGNAL = 0x00100000, + SCE_NET_SOCKINFO_F_ALL = 0x001F0007 +}; + +/** Flags to specify as argument to ::sceNetEmulationGet() / ::sceNetEmulationSet() */ +enum { + SCE_NET_EMULATION_FLAG_ETH0 = 1, + SCE_NET_EMULATION_FLAG_WLAN0 +}; + +/** Flags to specify as argument to ::sceNetResolverStartNtoa() / ::sceNetResolverStartAton() */ +enum { + SCE_NET_RESOLVER_ASYNC = 0x00000001, + SCE_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS = 0x00010000 +}; + +/** Flags to specify as argument to ::sceNetResolverAbort() */ +enum { + SCE_NET_RESOLVER_ABORT_FLAG_NTOA_PRESERVATION = 0x00000001, + SCE_NET_RESOLVER_ABORT_FLAG_ATON_PRESERVATION = 0x00000002 +}; + +/** Flags to specify as argument to ::sceNetSocketAbort() */ +enum { + SCE_NET_SOCKET_ABORT_FLAG_RCV_PRESERVATION = 0x00000001, + SCE_NET_SOCKET_ABORT_FLAG_SND_PRESERVATION = 0x00000002 +}; + +/** Net Protocols */ +enum { + SCE_NET_IPPROTO_IP = 0, + SCE_NET_IPPROTO_ICMP = 1, + SCE_NET_IPPROTO_IGMP = 2, + SCE_NET_IPPROTO_TCP = 6, + SCE_NET_IPPROTO_UDP = 17, + SCE_NET_SOL_SOCKET = 0xffff +}; + +/** Socket Options */ +enum { + /* IP */ + SCE_NET_IP_HDRINCL = 2, + SCE_NET_IP_TOS = 3, + SCE_NET_IP_TTL = 4, + SCE_NET_IP_MULTICAST_IF = 9, + SCE_NET_IP_MULTICAST_TTL = 10, + SCE_NET_IP_MULTICAST_LOOP = 11, + SCE_NET_IP_ADD_MEMBERSHIP = 12, + SCE_NET_IP_DROP_MEMBERSHIP = 13, + SCE_NET_IP_TTLCHK = 23, + SCE_NET_IP_MAXTTL = 24, + /* TCP */ + SCE_NET_TCP_NODELAY = 1, + SCE_NET_TCP_MAXSEG = 2, + SCE_NET_TCP_MSS_TO_ADVERTISE = 3, + /* SOCKET */ + SCE_NET_SO_REUSEADDR = 0x00000004, + SCE_NET_SO_KEEPALIVE = 0x00000008, + SCE_NET_SO_BROADCAST = 0x00000020, + SCE_NET_SO_LINGER = 0x00000080, + SCE_NET_SO_OOBINLINE = 0x00000100, + SCE_NET_SO_REUSEPORT = 0x00000200, + SCE_NET_SO_ONESBCAST = 0x00000800, + SCE_NET_SO_USECRYPTO = 0x00001000, + SCE_NET_SO_USESIGNATURE = 0x00002000, + SCE_NET_SO_SNDBUF = 0x1001, + SCE_NET_SO_RCVBUF = 0x1002, + SCE_NET_SO_SNDLOWAT = 0x1003, + SCE_NET_SO_RCVLOWAT = 0x1004, + SCE_NET_SO_SNDTIMEO = 0x1005, + SCE_NET_SO_RCVTIMEO = 0x1006, + SCE_NET_SO_ERROR = 0x1007, + SCE_NET_SO_TYPE = 0x1008, + SCE_NET_SO_NBIO = 0x1100, + SCE_NET_SO_TPPOLICY = 0x1101, + SCE_NET_SO_NAME = 0x1102 +}; + +/** Socket types */ +enum { + SCE_NET_SOCK_STREAM = 1, + SCE_NET_SOCK_DGRAM = 2, + SCE_NET_SOCK_RAW = 3, + SCE_NET_SOCK_DGRAM_P2P = 6, + SCE_NET_SOCK_STREAM_P2P = 10 +}; + +/** MSG Flags */ +enum { + SCE_NET_MSG_PEEK = 0x00000002, + SCE_NET_MSG_WAITALL = 0x00000040, + SCE_NET_MSG_DONTWAIT = 0x00000080, + SCE_NET_MSG_USECRYPTO = 0x00000400, + SCE_NET_MSG_USESIGNATURE = 0x00000800 +}; + +/** Flags to specify as argument to ::sceNetShutdown() */ +enum { + SCE_NET_SHUT_RD, + SCE_NET_SHUT_WR, + SCE_NET_SHUT_RDWR +}; + +/** Types to specify to ::SceNetIcmpHeader structure */ +enum { + SCE_NET_ICMP_TYPE_ECHO_REPLY = 0, + SCE_NET_ICMP_TYPE_DEST_UNREACH = 3, + SCE_NET_ICMP_TYPE_SOURCE_QUENCH = 4, + SCE_NET_ICMP_TYPE_REDIRECT = 5, + SCE_NET_ICMP_TYPE_ECHO_REQUEST = 8, + SCE_NET_ICMP_TYPE_TIME_EXCEEDED = 11, + SCE_NET_ICMP_TYPE_PARAMETER_PROBLEM = 12, + SCE_NET_ICMP_TYPE_TIMESTAMP_REQUEST = 13, + SCE_NET_ICMP_TYPE_TIMESTAMP_REPLY = 14, + SCE_NET_ICMP_TYPE_INFORMATION_REQUEST = 15, + SCE_NET_ICMP_TYPE_INFORMATION_REPLY = 16, + SCE_NET_ICMP_TYPE_ADDRESS_MASK_REQUEST = 17, + SCE_NET_ICMP_TYPE_ADDRESS_MASK_REPLY = 18 +}; + +/** Codes to specify to ::SceNetIcmpHeader structure */ +enum { + SCE_NET_ICMP_CODE_DEST_UNREACH_NET_UNREACH = 0, + SCE_NET_ICMP_CODE_DEST_UNREACH_HOST_UNREACH = 1, + SCE_NET_ICMP_CODE_DEST_UNREACH_PROTO_UNREACH = 2, + SCE_NET_ICMP_CODE_DEST_UNREACH_PORT_UNREACH = 3, + SCE_NET_ICMP_CODE_DEST_UNREACH_FRAG_AND_DF = 4, + SCE_NET_ICMP_CODE_DEST_UNREACH_SRC_HOST_FAILED = 5, + SCE_NET_ICMP_CODE_DEST_UNREACH_DST_NET_UNKNOWN = 6, + SCE_NET_ICMP_CODE_DEST_UNREACH_DST_HOST_UNKNOWN = 7, + SCE_NET_ICMP_CODE_DEST_UNREACH_SRC_HOST_ISOLATED = 8, + SCE_NET_ICMP_CODE_DEST_UNREACH_NET_ADMIN_PROHIBITED = 9, + SCE_NET_ICMP_CODE_DEST_UNREACH_NET_HOST_PROHIBITED = 10, + SCE_NET_ICMP_CODE_DEST_UNREACH_NET_TOS = 11, + SCE_NET_ICMP_CODE_DEST_UNREACH_HOST_TOS = 12, + SCE_NET_ICMP_CODE_TIME_EXCEEDED_TTL_EXCEEDED = 0, + SCE_NET_ICMP_CODE_TIME_EXCEEDED_FRT_EXCEEDED = 1 +}; + +/* Defines */ +#define SCE_NET_EPOLL_ABORT_FLAG_PRESERVATION 0x00000001 + +#define SCE_NET_IP_DEFAULT_MULTICAST_TTL 1 +#define SCE_NET_IP_DEFAULT_MULTICAST_LOOP 1 + +#define SCE_NET_IPVERSION 4 + +#define SCE_NET_IP_RF 0x8000 +#define SCE_NET_IP_DF 0x4000 +#define SCE_NET_IP_MF 0x2000 +#define SCE_NET_IP_OFFMASK 0x1fff + +#define SCE_NET_INADDR_ANY 0x00000000 +#define SCE_NET_INADDR_LOOPBACK 0x7f000001 +#define SCE_NET_INADDR_BROADCAST 0xffffffff +#define SCE_NET_INADDR_UNSPEC_GROUP 0xe0000000 +#define SCE_NET_INADDR_AUTOIP 0xa9fe0000 + +#define SCE_NET_IN_CLASSD_NET 0xf0000000 +#define SCE_NET_IN_AUTOIP_NET 0xffff0000 + +#define SCE_NET_ADHOC_PORT 3658 + +#define SCE_NET_AF_INET 2 + +#define SCE_NET_DEBUG_NAME_LEN_MAX 31 + +#define SCE_NET_RESOLVER_PORT 53 +#define SCE_NET_RESOLVER_HOSTNAME_LEN_MAX 255 + +#define SCE_NET_ID_SOCKET_MIN 0 +#define SCE_NET_ID_SOCKET_MAX 1023 + +/* callback */ + +typedef void *(*SceNetResolverFunctionAllocate)( + unsigned int size, + int rid, + const char *name, + void *user); +typedef void (*SceNetResolverFunctionFree)( + void *ptr, + int rid, + const char *name, + void *user); + +/* struct */ + +typedef struct SceNetFdSet { + unsigned int bits[32]; +} SceNetFdSet; + +typedef struct SceNetInAddr { + unsigned int s_addr; +} SceNetInAddr; + +typedef struct SceNetSockaddrIn { + unsigned char sin_len; + unsigned char sin_family; + unsigned short int sin_port; + SceNetInAddr sin_addr; + unsigned short int sin_vport; + char sin_zero[6]; +} SceNetSockaddrIn; + +typedef struct SceNetIpMreq { + SceNetInAddr imr_multiaddr; + SceNetInAddr imr_interface; +} SceNetIpMreq; + +typedef struct SceNetInitParam { + void *memory; + int size; + int flags; +} SceNetInitParam; + +typedef struct SceNetEmulationData { + unsigned short int drop_rate; + unsigned short int drop_duration; + unsigned short int pass_duration; + unsigned short int delay_time; + unsigned short int delay_jitter; + unsigned short int order_rate; + unsigned short int order_delay_time; + unsigned short int duplication_rate; + unsigned int bps_limit; + unsigned short int lower_size_limit; + unsigned short int upper_size_limit; + unsigned int system_policy_pattern; + unsigned int game_policy_pattern; + unsigned short int policy_flags[64]; + unsigned char reserved[64]; +} SceNetEmulationData; + +typedef struct SceNetEmulationParam { + unsigned short int version; + unsigned short int option_number; + unsigned short int current_version; + unsigned short int result; + unsigned int flags; + unsigned int reserved1; + SceNetEmulationData send; + SceNetEmulationData recv; + unsigned int seed; + unsigned char reserved[44]; +} SceNetEmulationParam; + +typedef struct SceNetEtherAddr { + unsigned char data[6]; +} SceNetEtherAddr; + +typedef struct SceNetDnsInfo { + SceNetInAddr dns_addr[2]; +} SceNetDnsInfo; + +typedef struct SceNetEpollDataExt { + int id; + unsigned int u32; +} SceNetEpollDataExt; + +typedef union SceNetEpollData { + void *ptr; + int fd; + unsigned int u32; + unsigned long long int u64; + SceNetEpollDataExt ext; +} SceNetEpollData; + +typedef struct SceNetEpollSystemData { + unsigned int system[4]; +} SceNetEpollSystemData; + +typedef struct SceNetEpollEvent { + unsigned int events; + unsigned int reserved; + SceNetEpollSystemData system; + SceNetEpollData data; +} SceNetEpollEvent; + +typedef struct SceNetResolverParam { + SceNetResolverFunctionAllocate allocate; + SceNetResolverFunctionFree free; + void *user; +} SceNetResolverParam; + +typedef struct SceNetLinger { + int l_onoff; + int l_linger; +} SceNetLinger; + +typedef struct SceNetSockaddr { + unsigned char sa_len; + unsigned char sa_family; + char sa_data[14]; +} SceNetSockaddr; + +typedef struct SceNetIovec { + void *iov_base; + unsigned int iov_len; +} SceNetIovec; + +typedef struct SceNetMsghdr { + void *msg_name; + unsigned int msg_namelen; + SceNetIovec *msg_iov; + int msg_iovlen; + void *msg_control; + unsigned int msg_controllen; + int msg_flags; +} SceNetMsghdr; + +typedef struct SceNetSockInfo { + char name[SCE_NET_DEBUG_NAME_LEN_MAX + 1]; + int pid; + int s; + char socket_type; + char policy; + short int reserved16; + int recv_queue_length; + int send_queue_length; + SceNetInAddr local_adr; + SceNetInAddr remote_adr; + unsigned short int local_port; + unsigned short int remote_port; + unsigned short int local_vport; + unsigned short int remote_vport; + int state; + int flags; + int reserved[8]; +} SceNetSockInfo; + +typedef struct SceNetStatisticsInfo { + + int kernel_mem_free_size; + int kernel_mem_free_min; + int packet_count; + int packet_qos_count; + + int libnet_mem_free_size; + int libnet_mem_free_min; +} SceNetStatisticsInfo; + +typedef struct SceNetIpHeaderIpVerHl { + unsigned char hl; + unsigned char ver; +} SceNetIpHeaderIpVerHl; + +typedef union SceNetIpHeaderUnion { + SceNetIpHeaderIpVerHl ip_ver_hl; + unsigned char ver_hl; +} SceNetIpHeaderUnion; + +typedef struct SceNetIpHeader { + SceNetIpHeaderUnion un; + unsigned char ip_tos; + unsigned short ip_len; + unsigned short ip_id; + unsigned short ip_off; + unsigned char ip_ttl; + unsigned char ip_p; + unsigned short ip_sum; + SceNetInAddr ip_src; + SceNetInAddr ip_dst; +} SceNetIpHeader; + +typedef struct SceNetIcmpHeaderEcho { + unsigned short id; + unsigned short sequence; +} SceNetIcmpHeaderEcho; + +typedef struct SceNetIcmpHeaderFrag { + unsigned short unused; + unsigned short mtu; +} SceNetIcmpHeaderFrag; + +typedef union SceNetIcmpHeaderUnion { + SceNetIcmpHeaderEcho echo; + unsigned int gateway; + SceNetIcmpHeaderFrag frag; +} SceNetIcmpHeaderUnion; + +typedef struct SceNetIcmpHeader { + unsigned char type; + unsigned char code; + unsigned short checksum; + SceNetIcmpHeaderUnion un; +} SceNetIcmpHeader; + +/* prototypes */ + +int sceNetSocket(const char *name, int domain, int type, int protocol); +int sceNetAccept(int s, SceNetSockaddr *addr, unsigned int *addrlen); +int sceNetBind(int s, const SceNetSockaddr *addr, unsigned int addrlen); +int sceNetListen(int s, int backlog); +int sceNetRecv(int s, void *buf, unsigned int len, int flags); +int sceNetRecvfrom(int s, void *buf, unsigned int len, int flags, SceNetSockaddr *from, unsigned int *fromlen); +int sceNetSend(int s, const void *msg, unsigned int len, int flags); +int sceNetSendto(int s, const void *msg, unsigned int len, int flags, const SceNetSockaddr *to, unsigned int tolen); +int sceNetSetsockopt(int s, int level, int optname, const void *optval, unsigned int optlen); +int sceNetSocketClose(int s); + +/* fixme ? */ +#define sceNetHtons __builtin_bswap16 +#define sceNetHtonl __builtin_bswap32 + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_KERNEL_NET_NET_H_ */ diff --git a/include/user/kernel/clib.h b/include/user/kernel/clib.h index f450613..6db799d 100644 --- a/include/user/kernel/clib.h +++ b/include/user/kernel/clib.h @@ -9,10 +9,21 @@ extern "C" { #endif int sceClibStrcmp(const char *, const char *); +void *sceClibStrncmp(const char *, const char *, SceSize); +int sceClibStrncasecmp(const char *, const char *, SceSize); +char *sceClibStrncpy(char *, const char *, SceSize); +char *sceClibStrncat(char *, const char *, SceSize); +SceSize sceClibStrnlen(const char *, SceSize); +char *sceClibStrrchr(const char *, int); +int sceClibPrintf(const char *, ...); int sceClibSnprintf(char *, SceSize, const char *, ...); int sceClibVsnprintf(char *, SceSize, const char *, va_list); +void *sceClibMemset(void *, int, SceSize); +void *sceClibMemcpy(void *, const void *, SceSize); +void *sceClibMemmove(void *, const void *, SceSize); + #ifdef __cplusplus } #endif diff --git a/include/user/npdrmpackage.h b/include/user/npdrmpackage.h new file mode 100644 index 0000000..5a41475 --- /dev/null +++ b/include/user/npdrmpackage.h @@ -0,0 +1,51 @@ +#ifndef _PSP2_NPDRMPACKAGE_H_ +#define _PSP2_NPDRMPACKAGE_H_ + +#include <psp2/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** Options for _sceNpDrmPackageDecrypt */ +typedef struct { + /** The offset in the encrypted data */ + SceOff offset; + + /** + * The identifier specified for _sceNpDrmPackageCheck but NOT ORed + * with (1 << 8) + */ + unsigned int identifier; +} _sceNpDrmPackageDecrypt_opt; + +/** + * Read the header of the PKG and initialize the context + * + * @param buffer - The buffer containing the header of PKG. + * @param size - The size of buffer. The minimum confirmed value is 0x8000. + * @param zero - Unknown. Supposed to be set to 0. + * @param identifier - arbitrary value [0, 6) ORed with (1 << 8) or 0. + * If it is set to 0, the function just checks the header + * and doesn't create the context. + * + * @return 0 on success, != 0 on error + */ +int _sceNpDrmPackageCheck(const void *buffer, SceSize size, int zero, unsigned int identifier); + +/** + * Decrypt a PKG + * + * @param buffer - The buffer containing the content of the PKG. + * @param size - The size of the buffer. The minimum confirmed value is 0x20. + * @param opt - The options. + * + * @return 0 on success, != 0 on error + */ +int _sceNpDrmPackageDecrypt(void * restrict buffer, SceSize size, _sceNpDrmPackageDecrypt_opt * restrict opt); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_NPDRMPACKAGE_H_ */ diff --git a/include/user/usbserial.h b/include/user/usbserial.h new file mode 100644 index 0000000..00c9ba6 --- /dev/null +++ b/include/user/usbserial.h @@ -0,0 +1,83 @@ +#ifndef _PSP2_USBSERIAL_H_ +#define _PSP2_USBSERIAL_H_ + +#include <psp2/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Activate USB serial device + * + * @return 0 on success, < 0 on error + * + * @note The user is responsible for making sure no other UDC driver is active. This activates UDC as a "PS Vita" Type D device. + * + * @note Wrapper for kernel function sceUsbSerialStart() + */ +int sceUsbSerialStart(void); + +/** + * Setup USB serial device + * + * @return 0 on success, < 0 on error + * + * @param unk Unknown + * + * @note Wrapper for kernel function sceUsbSerialSetup() + */ +int sceUsbSerialSetup(int unk); + +/** + * Close USB serial device + * + * @note Wrapper for kernel function sceUsbSerialClose() + */ +int sceUsbSerialClose(void); + +/** + * Close USB serial device + * + * @return Returns 1 when serial port is open + * + * @note Wrapper for kernel function sceUsbSerialStatus() + */ +int sceUsbSerialStatus(void); + +/** + * Get receive buffer length + * + * @return Returns length of USB rx buffer + * + * @note Wrapper for kernel function sceUsbSerialGetLen() + */ +unsigned int sceUsbSerialGetRecvBufferSize(void); + +/** + * Send data + * @param[in] *buffer data to send over usb + * @param len int len of serial buffer data + * @param unk1 Unknown + * @param unk2 Unknown + * @note max send length is 0x10000 + * @note Wrapper for kernel function sceUsbSerialSend() + */ +unsigned int sceUsbSerialSend(const void *buffer, unsigned int len, int unk1, int unk2); + +/** + * Receive Data + * + * @param[out] *buffer buffer for incoming data + * @param max_len max data length to receive + * @param unk1 Unknown + * @param unk2 Unknown + * @note max recv length is 0x10000 + * @note Wrapper for kernel function sceUsbSerialRecv() + */ +unsigned int sceUsbSerialRecv(void *buffer, unsigned int max_len, int unk1, int unk2); + +#ifdef __cplusplus +} +#endif +#endif diff --git a/nids/360/SceBt.yml b/nids/360/SceBt.yml index a7d4837..be1ea50 100644 --- a/nids/360/SceBt.yml +++ b/nids/360/SceBt.yml @@ -1,10 +1,95 @@ modules: SceBt: - nid: 0x00000012 + nid: 0xED3D9A39 libraries: SceBt: - nid: 0x00000013 + nid: 0x9785DB68 functions: + sceBtAvrcpReadVolume: 0x01000531 + sceBtAvrcpSendButton: 0x9F8724E7 + sceBtAvrcpSendVolume: 0xC5C7003B + sceBtAvrcpSetPlayStatus: 0x0DADD51A + sceBtAvrcpSetTitle: 0xDD3947B9 + sceBtDeleteRegisteredInfo: 0xACC959A0 + sceBtFreqAudio: 0x376DE456 + sceBtGetConfiguration: 0x9D619F35 + sceBtGetConnectingInfo: 0xD9B65CAA + sceBtGetDeviceName: 0x80977A26 + sceBtGetInfoForTest: 0xF7756C1F + sceBtGetLastError: 0x4E159A08 + sceBtGetRegisteredInfo: 0xB6C9A094 + sceBtGetStatusForTest: 0x48A27F7E + sceBtHfpGetCurrentPhoneNumber: 0xB0CD46A4 + sceBtHfpRequest: 0xD924787E + sceBtHidGetReportDescriptor: 0x95614634 + sceBtHidTransfer: 0x88B34B5B + sceBtPairingOOB: 0xCBC4FF55 + sceBtPushBip: 0xE4EA1E59 + sceBtPushOpp: 0xED78EEC3 sceBtReadEvent: 0x26BAC23D + sceBtRecvAudio: 0x469DD0DA + sceBtRecvBip: 0xCEF8F261 + sceBtRecvOpp: 0xA865A081 + sceBtRecvSpp: 0x112A61AC sceBtRegisterCallback: 0xA23FB154 + sceBtReplyPinCode: 0xA4FD7F9A + sceBtReplyUserConfirmation: 0xCAABAAC8 + sceBtSendAudio: 0xE30602A4 + sceBtSendL2capEchoRequestForTest: 0xCA304973 + sceBtSendSpp: 0x1FBA44DE + sceBtSetConfiguration: 0x9B1F2964 + sceBtSetContentProtection: 0x5F9ABEAE + sceBtSetInquiryResultForTest: 0x2BADF3A9 + sceBtSetInquiryScan: 0x78855913 + sceBtSetL2capEchoResponseBufferForTest: 0xB624CFFC + sceBtSetStatusForTest: 0x32DA3573 + sceBtStartAudio: 0x3679D50F + sceBtStartConnect: 0xFF3C57EB + sceBtStartDisconnect: 0x18286FFF + sceBtStartInquiry: 0xA5CDDB17 + sceBtStopAudio: 0xE423D1CC + sceBtStopInquiry: 0xF1C4D466 sceBtUnregisterCallback: 0x605EF71F + SceBtForDriver: + nid: 0xD48CA62D + functions: + sceBtAvrcpReadVolume: 0xC9C70056 + sceBtAvrcpSendButton: 0xEC5F8519 + sceBtAvrcpSendVolume: 0x7689DA3D + sceBtAvrcpSetTitle: 0x91EF55AD + sceBtDeleteRegisteredInfo: 0xE6F659E0 + sceBtFreqAudio: 0xDA20DCC8 + sceBtGetConfiguration: 0x94C66A3B + sceBtGetDeviceName: 0x633F784C + sceBtGetInfoForTest: 0x2C9DD7BB + sceBtGetLastError: 0xAD31A43E + sceBtGetRegisteredInfo: 0xF86D25E2 + sceBtGetStatusForTest: 0x83781649 + sceBtHfpGetCurrentPhoneNumber: 0x7BC66D6D + sceBtHfpRequest: 0x6E49D11D + sceBtPushBip: 0x7FF77792 + sceBtPushOpp: 0x21C788E2 + sceBtReadEvent: 0x5ABB9A9D + sceBtRecvAudio: 0xCD7C0492 + sceBtRecvBip: 0xE8E95977 + sceBtRecvOpp: 0x8008AA2C + sceBtRecvSpp: 0xC09D9E7C + sceBtRegisterCallback: 0x120AC1F7 + sceBtReplyPinCode: 0xBB69A62A + sceBtReplyUserConfirmation: 0xB5FA291C + sceBtSendAudio: 0x47F19727 + sceBtSendL2capEchoRequestForTest: 0xE3A66814 + sceBtSendSpp: 0x92241DFB + sceBtSetConfiguration: 0xEBDCC992 + sceBtSetContentProtection: 0x08632086 + sceBtSetInquiryResultForTest: 0x1C26F878 + sceBtSetInquiryScan: 0x4F5A852E + sceBtSetL2capEchoResponseBufferForTest: 0x0B7D8E0E + sceBtSetStatusForTest: 0x9C195411 + sceBtStartAudio: 0x8D47CABD + sceBtStartConnect: 0x6059113A + sceBtStartDisconnect: 0x50710281 + sceBtStartInquiry: 0x9DC7E7E5 + sceBtStopAudio: 0xCAE5A9F3 + sceBtStopInquiry: 0x6A1D9598 + sceBtUnregisterCallback: 0xBF72E1BE diff --git a/nids/360/SceKernelModulemgr.yml b/nids/360/SceKernelModulemgr.yml index d889f7b..9f95892 100644 --- a/nids/360/SceKernelModulemgr.yml +++ b/nids/360/SceKernelModulemgr.yml @@ -18,7 +18,9 @@ modules: sceKernelLoadStartModuleForPid: 0x9D953C22 sceKernelLoadStartSharedModuleForPid: 0xE2ADEF8D sceKernelStartModule: 0x0675B682 - sceKernelStopUnloadModule: 0x100DAEB9 + sceKernelStopModule: 0x100DAEB9 + sceKernelStopUnloadModule: 0x03B30B7E + sceKernelStopUnloadModuleForPid: 0x49A3EDC7 sceKernelUnloadModule: 0x728E72A6 SceModulemgrForKernel: nid: 0xC445FA63 @@ -27,3 +29,5 @@ modules: sceKernelGetModuleInternal: 0xFE303863 sceKernelGetModuleList: 0x97CF7B4E sceKernelLoadModuleForPid: 0xFA21D8CB + sceKernelStopModuleForPid: 0x7BB4CE54 + sceKernelUnloadModuleForPid: 0x5972E2CC diff --git a/nids/360/SceKernelThreadMgr.yml b/nids/360/SceKernelThreadMgr.yml index ec66d76..bcefbe5 100644 --- a/nids/360/SceKernelThreadMgr.yml +++ b/nids/360/SceKernelThreadMgr.yml @@ -96,7 +96,9 @@ modules: SceThreadmgrForDriver: nid: 0xE2C40624 functions: + sceKernelCreateCallback: 0x1C41614C sceKernelCreateThread: 0xC6674E7D + sceKernelDeleteCallback: 0x3A7E17F6 sceKernelDeleteThread: 0xAC834F3F sceKernelGetProcessId: 0x9DCB4B7A sceKernelGetSystemTimeWide: 0xF4EE4FA9 diff --git a/nids/360/SceNetPs.yml b/nids/360/SceNetPs.yml new file mode 100644 index 0000000..d32c0bd --- /dev/null +++ b/nids/360/SceNetPs.yml @@ -0,0 +1,17 @@ +modules: + SceNetPs: + nid: 0x5A7BCCDA + libraries: + SceNetPsForDriver: + nid: 0xB2A5C920 + functions: + sceNetAccept: 0x880A5423 + sceNetBind: 0x84AB650F + sceNetListen: 0x080C7992 + sceNetRecv: 0x49B1669C + sceNetRecvfrom: 0x49B1669C + sceNetSend: 0xAB746734 + sceNetSendto: 0xAB746734 + sceNetSetsockopt: 0x4BF5FAB4 + sceNetSocket: 0xEB95B024 + sceNetSocketClose: 0x21F4428D diff --git a/nids/360/SceNpDrmPackage.yml b/nids/360/SceNpDrmPackage.yml new file mode 100644 index 0000000..e7731fe --- /dev/null +++ b/nids/360/SceNpDrmPackage.yml @@ -0,0 +1,9 @@ +modules: + SceNpDrmPackage: + nid: 0x00000078 + libraries: + SceNpDrmPackage: + nid: 0x88514DB2 + functions: + _sceNpDrmPackageCheck: 0xA1D885FA + _sceNpDrmPackageDecrypt: 0xD6F05ACC diff --git a/nids/360/SceUsbSerial.yml b/nids/360/SceUsbSerial.yml new file mode 100644 index 0000000..485a685 --- /dev/null +++ b/nids/360/SceUsbSerial.yml @@ -0,0 +1,24 @@ +modules: + SceUsbSerial: + nid: 0xF8D9930F + libraries: + SceUsbSerial: + nid: 0x2820117D + functions: + sceUsbSerialClose: 0xF2415853 + sceUsbSerialGetRecvBufferSize: 0xE8567A87 + sceUsbSerialRecv: 0xF26DC8D8 + sceUsbSerialSend: 0x89E71202 + sceUsbSerialSetup: 0x290E08B4 + sceUsbSerialStart: 0xE3BEC18C + sceUsbSerialStatus: 0xA6A2F5DE + SceUsbSerialForDriver: + nid: 0x8829C2F3 + functions: + sceUsbSerialClose: 0xE6B1E64F + sceUsbSerialGetRecvBufferSize: 0xF531B5AE + sceUsbSerialRecv: 0x6B5E296F + sceUsbSerialSend: 0x0C2E73C0 + sceUsbSerialSetup: 0x590B8F97 + sceUsbSerialStart: 0xFEE7F4BA + sceUsbSerialStatus: 0x8C426906 |