Permalink
Browse files

New commit

- rename functions
- 3.15 functions offset
- device6_kmod.h.S functions rename
  • Loading branch information...
1 parent f5ad295 commit ed5223f9380e496512c789632f0f9ebcf3168c5e hacker-lc committed with Nov 2, 2010
Showing with 22 additions and 22 deletions.
  1. +6 −6 device6_kmod.h.S
  2. +16 −16 firmware_symbols.h.S
View
@@ -44,7 +44,7 @@ device_setup_response_desc:
*
* device_match(arg):
* {
- * char *descriptor = get_device_descriptor(arg, 0, 1);
+ * char *descriptor = USBGetDeviceDescriptor(arg, 0, 1);
*
* if (*(uint32 *) (descriptor + 8)) == "0xAAAAC0DE)
* return 0;
@@ -59,7 +59,7 @@ device_match:
std %r0, 0x90(%r1)
li %r4, 0
li %r5, 1
- bl ABSOLUTE_MEM2(get_device_descriptor)
+ bl ABSOLUTE_MEM2(USBGetDeviceDescriptor)
lwz %r5, 8(%r3)
li %r3, 0
lis %r4, 0xaaaa
@@ -85,11 +85,11 @@ l_device_found:
* {
* short buf[8];
*
- * unknown_func1(arg, 0);
+ * USBOpenEndpoint(arg, 0);
* *((uint64_t *)buf) = 0;
* buf[0] = 0x21AA;
* buf[3] = 0;
- * unknown_func2(arg, buf, 0, device_setup_response_desc, 0);
+ * USBControlTransfer(arg, buf, 0, device_setup_response_desc, 0);
* return 0;
* }
*/
@@ -98,7 +98,7 @@ device_connect:
mflr %r0
std %r0, 0x90(%r1)
li %r4, 0
- bl ABSOLUTE_MEM2(unknown_func1)
+ bl ABSOLUTE_MEM2(USBOpenEndpoint)
addi %r4, %r1, 0x70 // Set %r4 to a pointer in the stack
li %r5, 0
std %r5, 0(%r4) // %r4[0] = 0;
@@ -109,7 +109,7 @@ device_connect:
MEM_BASE (%r6)
LOADI_LABEL2 (%r6, device_setup_response_desc)
li %r7, 0
- bl ABSOLUTE_MEM2(unknown_func2)
+ bl ABSOLUTE_MEM2(USBControlTransfer)
li %r3, 0
ld %r0, 0x90(%r1)
mtlr %r0
View
@@ -27,9 +27,9 @@
#define copy_to_user 0xE050
#define alloc 0x62088
#define free 0x624c8
-#define add_kernel_module 0xd22d8
+#define USBRegisterDriver 0xd22d8
#define syscall_table 0x2eb128
-#define get_device_descriptor 0xd2998 // FIXME: unsure of the name!
+#define USBGetDeviceDescriptor 0xd2998 // FIXME: unsure of the name!
#define USBOpenEndpoint 0xd29c4 // FIXME
#define USBControlTransfer 0xd292c // FIXME
#define memory_patch_func 0x4e81c
@@ -106,11 +106,11 @@
#define pathdup_from_user 0x1b3b34
#define alloc 0x62084
#define free 0x624c4
-#define add_kernel_module 0xd22d0
+#define USBRegisterDriver 0xd22d0
#define syscall_table 0x2eb128
-#define get_device_descriptor 0xd2990
-#define unknown_func1 0xd29bc
-#define unknown_func2 0xd2924
+#define USBGetDeviceDescriptor 0xd2990
+#define USBOpenEndpoint 0xd29bc
+#define USBControlTransfer 0xd2924
#define memory_patch_func 0x4e818
#define patch_func1 0x490a8
#define patch_func1_offset 0x34
@@ -169,11 +169,11 @@
#define copy_to_user 0x0000e0fc
#define alloc 0x00061cf0
#define free 0x00062138
-#define add_kernel_module 0
+#define USBRegisterDriver 0
#define syscall_table 0x002ea8a0
-#define get_device_descriptor 0
-#define unknown_func1 0
-#define unknown_func2 0
+#define USBGetDeviceDescriptor 0
+#define USBOpenEndpoint 0
+#define USBControlTransfer 0
#define memory_patch_func 0x0004e310
#define patch_func1 0x00048a64
#define patch_func1_offset 0x34
@@ -233,9 +233,9 @@
#define strlen_from_user 0x285BE4
#define alloc 0x61cf0
#define free 0x62138
-#define add_kernel_module // FIXME:
+#define USBRegisterDriver // FIXME:
#define syscall_table 0x2ea820
-#define get_device_descriptor 0xD3474 // DONE
+#define USBGetDeviceDescriptor 0xD3474 // DONE
#define USBOpenEndpoint 0xD34AC // DONE
#define USBControlTransfer 0xD3408 // DONE
#define memory_patch_func 0x4e310
@@ -347,9 +347,9 @@
#define pathdup_from_user 0x1ACAF4 // FIXME: unsure of the name!
#define alloc 0x5DF4C
#define free 0x5E38C
-#define add_kernel_module
+#define USBRegisterDriver
#define syscall_table 0x2CFB40
-#define get_device_descriptor // FIXME: unsure of the name!
+#define USBGetDeviceDescriptor // FIXME: unsure of the name!
#define USBOpenEndpoint // FIXME
#define USBControlTransfer // FIXME
#define memory_patch_func 0x4BFF0
@@ -405,9 +405,9 @@
#define pathdup_from_user 0x001A2270
#define alloc 0x00059D54
#define free 0x0005A194
-#define add_kernel_module 0x000CC6A0
+#define USBRegisterDriver 0x000CC6A0
#define syscall_table 0x002C4318
-#define get_device_descriptor 0x000CCD2C
+#define USBGetDeviceDescriptor 0x000CCD2C
#define USBOpenEndpoint 0x000CCD58
#define USBControlTransfer 0x000CCCC0
#define memory_patch_func 0x00047EE4

0 comments on commit ed5223f

Please sign in to comment.