Compare commits
10 Commits
android-2.
...
eclair-pas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0996bb4cd | ||
|
|
276313ec18 | ||
|
|
5f53a18204 | ||
|
|
754c178ae5 | ||
|
|
e1e684920f | ||
|
|
fe62de1ad0 | ||
|
|
7b12b4a349 | ||
|
|
cd5df2d92c | ||
|
|
7e61789985 | ||
|
|
a6083b7768 |
66
libc/kernel/common/linux/a1026.h
Normal file
66
libc/kernel/common/linux/a1026.h
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
****************************************************************************
|
||||||
|
***
|
||||||
|
*** This header was automatically generated from a Linux kernel header
|
||||||
|
*** of the same name, to make information necessary for userspace to
|
||||||
|
*** call into the kernel available to libc. It contains only constants,
|
||||||
|
*** structures, and macros generated from the original header, and thus,
|
||||||
|
*** contains no copyrightable information.
|
||||||
|
***
|
||||||
|
****************************************************************************
|
||||||
|
****************************************************************************/
|
||||||
|
#ifndef __LINUX_A1026_H
|
||||||
|
#define __LINUX_A1026_H
|
||||||
|
|
||||||
|
#include <linux/ioctl.h>
|
||||||
|
|
||||||
|
#define A1026_MAX_FW_SIZE (32*1024)
|
||||||
|
struct a1026img {
|
||||||
|
unsigned char *buf;
|
||||||
|
unsigned img_size;
|
||||||
|
};
|
||||||
|
|
||||||
|
enum A1026_PathID {
|
||||||
|
A1026_PATH_SUSPEND,
|
||||||
|
A1026_PATH_INCALL_RECEIVER,
|
||||||
|
A1026_PATH_INCALL_HEADSET,
|
||||||
|
A1026_PATH_INCALL_SPEAKER,
|
||||||
|
A1026_PATH_INCALL_BT,
|
||||||
|
A1026_PATH_VR_NO_NS_RECEIVER,
|
||||||
|
A1026_PATH_VR_NO_NS_HEADSET,
|
||||||
|
A1026_PATH_VR_NO_NS_SPEAKER,
|
||||||
|
A1026_PATH_VR_NO_NS_BT,
|
||||||
|
A1026_PATH_VR_NS_RECEIVER,
|
||||||
|
A1026_PATH_VR_NS_HEADSET,
|
||||||
|
A1026_PATH_VR_NS_SPEAKER,
|
||||||
|
A1026_PATH_VR_NS_BT,
|
||||||
|
A1026_PATH_RECORD_RECEIVER,
|
||||||
|
A1026_PATH_RECORD_HEADSET,
|
||||||
|
A1026_PATH_RECORD_SPEAKER,
|
||||||
|
A1026_PATH_RECORD_BT,
|
||||||
|
A1026_PATH_CAMCORDER
|
||||||
|
};
|
||||||
|
|
||||||
|
enum A1026_NS_states {
|
||||||
|
A1026_NS_STATE_AUTO,
|
||||||
|
A1026_NS_STATE_OFF,
|
||||||
|
A1026_NS_STATE_CT,
|
||||||
|
A1026_NS_STATE_FT,
|
||||||
|
A1026_NS_NUM_STATES
|
||||||
|
};
|
||||||
|
|
||||||
|
#define A1026_IOCTL_MAGIC 'u'
|
||||||
|
|
||||||
|
#define A1026_BOOTUP_INIT _IOW(A1026_IOCTL_MAGIC, 0x01, struct a1026img *)
|
||||||
|
#define A1026_SET_CONFIG _IOW(A1026_IOCTL_MAGIC, 0x02, enum A1026_PathID)
|
||||||
|
#define A1026_SET_NS_STATE _IOW(A1026_IOCTL_MAGIC, 0x03, enum A1026_NS_states)
|
||||||
|
|
||||||
|
#define A1026_SET_MIC_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x50, unsigned)
|
||||||
|
#define A1026_SET_MICSEL_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x51, unsigned)
|
||||||
|
#define A1026_READ_DATA _IOR(A1026_IOCTL_MAGIC, 0x52, unsigned)
|
||||||
|
#define A1026_WRITE_MSG _IOW(A1026_IOCTL_MAGIC, 0x53, unsigned)
|
||||||
|
#define A1026_SYNC_CMD _IO(A1026_IOCTL_MAGIC, 0x54)
|
||||||
|
#define A1026_SET_CMD_FILE _IOW(A1026_IOCTL_MAGIC, 0x55, unsigned)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
@@ -139,6 +139,8 @@ struct kgsl_drawctxt_destroy {
|
|||||||
struct kgsl_sharedmem_from_pmem {
|
struct kgsl_sharedmem_from_pmem {
|
||||||
int pmem_fd;
|
int pmem_fd;
|
||||||
unsigned int gpuaddr;
|
unsigned int gpuaddr;
|
||||||
|
unsigned int len;
|
||||||
|
unsigned int offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define IOCTL_KGSL_SHAREDMEM_FROM_PMEM _IOWR(KGSL_IOC_TYPE, 0x20, struct kgsl_sharedmem_from_pmem)
|
#define IOCTL_KGSL_SHAREDMEM_FROM_PMEM _IOWR(KGSL_IOC_TYPE, 0x20, struct kgsl_sharedmem_from_pmem)
|
||||||
|
|||||||
33
libc/kernel/common/linux/tpa2018d1.h
Normal file
33
libc/kernel/common/linux/tpa2018d1.h
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
****************************************************************************
|
||||||
|
***
|
||||||
|
*** This header was automatically generated from a Linux kernel header
|
||||||
|
*** of the same name, to make information necessary for userspace to
|
||||||
|
*** call into the kernel available to libc. It contains only constants,
|
||||||
|
*** structures, and macros generated from the original header, and thus,
|
||||||
|
*** contains no copyrightable information.
|
||||||
|
***
|
||||||
|
****************************************************************************
|
||||||
|
****************************************************************************/
|
||||||
|
#ifndef _LINUX_TPA2018D1_H
|
||||||
|
#define _LINUX_TPA2018D1_H
|
||||||
|
|
||||||
|
#include <linux/ioctl.h>
|
||||||
|
|
||||||
|
enum tpa2018d1_mode {
|
||||||
|
TPA2018_MODE_OFF,
|
||||||
|
TPA2018_MODE_PLAYBACK,
|
||||||
|
TPA2018_MODE_RINGTONE,
|
||||||
|
TPA2018_MODE_VOICE_CALL,
|
||||||
|
TPA2018_NUM_MODES,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define TPA2018_IOCTL_MAGIC 'a'
|
||||||
|
#define TPA2018_SET_CONFIG _IOW(TPA2018_IOCTL_MAGIC, 1, unsigned)
|
||||||
|
#define TPA2018_READ_CONFIG _IOR(TPA2018_IOCTL_MAGIC, 2, unsigned)
|
||||||
|
#define TPA2018_SET_PARAM _IOW(TPA2018_IOCTL_MAGIC, 3, unsigned)
|
||||||
|
#define TPA2018_SET_MODE _IOW(TPA2018_IOCTL_MAGIC, 4, unsigned)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
2007h
|
2009s
|
||||||
|
|||||||
@@ -1294,6 +1294,13 @@ static int reloc_library(soinfo *si, Elf32_Rel *rel, unsigned count)
|
|||||||
reloc, sym_addr, sym_name);
|
reloc, sym_addr, sym_name);
|
||||||
*((unsigned*)reloc) += sym_addr;
|
*((unsigned*)reloc) += sym_addr;
|
||||||
break;
|
break;
|
||||||
|
case R_ARM_REL32:
|
||||||
|
COUNT_RELOC(RELOC_RELATIVE);
|
||||||
|
MARK(rel->r_offset);
|
||||||
|
TRACE_TYPE(RELO, "%5d RELO REL32 %08x <- %08x - %08x %s\n", pid,
|
||||||
|
reloc, sym_addr, rel->r_offset, sym_name);
|
||||||
|
*((unsigned*)reloc) += sym_addr - rel->r_offset;
|
||||||
|
break;
|
||||||
#elif defined(ANDROID_X86_LINKER)
|
#elif defined(ANDROID_X86_LINKER)
|
||||||
case R_386_JUMP_SLOT:
|
case R_386_JUMP_SLOT:
|
||||||
COUNT_RELOC(RELOC_ABSOLUTE);
|
COUNT_RELOC(RELOC_ABSOLUTE);
|
||||||
|
|||||||
@@ -159,6 +159,13 @@ extern soinfo libdl_info;
|
|||||||
#define R_ARM_JUMP_SLOT 22
|
#define R_ARM_JUMP_SLOT 22
|
||||||
#define R_ARM_RELATIVE 23
|
#define R_ARM_RELATIVE 23
|
||||||
|
|
||||||
|
/* According to the AAPCS specification, we only
|
||||||
|
* need the above relocations. However, in practice,
|
||||||
|
* the following ones turn up from time to time.
|
||||||
|
*/
|
||||||
|
#define R_ARM_ABS32 2
|
||||||
|
#define R_ARM_REL32 3
|
||||||
|
|
||||||
#elif defined(ANDROID_X86_LINKER)
|
#elif defined(ANDROID_X86_LINKER)
|
||||||
|
|
||||||
#define R_386_32 1
|
#define R_386_32 1
|
||||||
@@ -194,12 +201,6 @@ extern soinfo libdl_info;
|
|||||||
#define DT_PREINIT_ARRAYSZ 33
|
#define DT_PREINIT_ARRAYSZ 33
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* in theory we only need the above relative relocations,
|
|
||||||
but in practice the following one turns up from time
|
|
||||||
to time. fushigi na.
|
|
||||||
*/
|
|
||||||
#define R_ARM_ABS32 2
|
|
||||||
|
|
||||||
soinfo *find_library(const char *name);
|
soinfo *find_library(const char *name);
|
||||||
unsigned unload_library(soinfo *si);
|
unsigned unload_library(soinfo *si);
|
||||||
Elf32_Sym *lookup_in_library(soinfo *si, const char *name);
|
Elf32_Sym *lookup_in_library(soinfo *si, const char *name);
|
||||||
|
|||||||
Reference in New Issue
Block a user