Compare commits

...

10 Commits

Author SHA1 Message Date
Iliyan Malchev
d0996bb4cd bionic: update processed kernel header tpa2018d1.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-02-02 13:42:55 -08:00
Iliyan Malchev
276313ec18 bionic: add processed kernel headers a1026.h and tpa2018d1.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-02-02 11:56:29 -08:00
Mathias Agopian
5f53a18204 Revert "Add qsort_r() implementation to the C library."
This reverts commit 754c178ae5.

Turns out we don't need it afterall (needed a stable sort anyways).
So, we'll make that change in the dev branch instead.
2009-12-03 16:14:40 -08:00
David 'Digit' Turner
754c178ae5 Add qsort_r() implementation to the C library.
NOTE: This replaces qsort.c with the FreeBSD version. While
      the patch changes the source, it should not alter the
      implementation that should use the exact same algorithm.
2009-12-03 11:40:15 -08:00
Android (Google) Code Review
e1e684920f Merge change Ifa58a406 into eclair
* changes:
  libc: kernel: Update msm_kgsl.h header
2009-12-03 02:09:47 -08:00
David 'Digit' Turner
fe62de1ad0 Add support for R_ARM_REL32 to the dynamic linker.
Merged from eclair-mr2
2009-12-02 10:54:53 -08:00
Dima Zavin
7b12b4a349 libc: kernel: Update msm_kgsl.h header
Change-Id: Ifa58a406c9419c5ad73a1f9456add6dd54bfb2ba
Signed-off-by: Dima Zavin <dima@android.com>
2009-12-02 05:09:56 -08:00
Eric Fischer
cd5df2d92c Rebuild the time zone data files in 32-bit format instead of 64-bit.
The 64-bit data is not currently being used and more than doubles the size.
2009-11-24 13:52:05 -08:00
Eric Fischer
7e61789985 Correct the raw offsets in the time zone index for a few zones.
ZoneCompactor was using the system time zone database to get the offsets
instead of using the data it was compiling, so for newly added or recently
changed zones the index could be inconsistent with the data.

Affected zones: San_Luis, Casey, Davis, Mawson, Kathmandu, Novokuznetsk
2009-11-23 16:28:11 -08:00
Eric Fischer
a6083b7768 Update zoneinfo time zone data to version 2009s
http://b/issue?id=2272477
2009-11-20 14:39:55 -08:00
8 changed files with 116 additions and 7 deletions

View 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

View File

@@ -139,6 +139,8 @@ struct kgsl_drawctxt_destroy {
struct kgsl_sharedmem_from_pmem {
int pmem_fd;
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)

View 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.

View File

@@ -1 +1 @@
2007h
2009s

View File

@@ -1294,6 +1294,13 @@ static int reloc_library(soinfo *si, Elf32_Rel *rel, unsigned count)
reloc, sym_addr, sym_name);
*((unsigned*)reloc) += sym_addr;
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)
case R_386_JUMP_SLOT:
COUNT_RELOC(RELOC_ABSOLUTE);

View File

@@ -159,6 +159,13 @@ extern soinfo libdl_info;
#define R_ARM_JUMP_SLOT 22
#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)
#define R_386_32 1
@@ -194,12 +201,6 @@ extern soinfo libdl_info;
#define DT_PREINIT_ARRAYSZ 33
#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);
unsigned unload_library(soinfo *si);
Elf32_Sym *lookup_in_library(soinfo *si, const char *name);