diff options
author | Rebecca Schultz Zavin <rebecca@android.com> | 2012-06-28 15:08:22 -0700 |
---|---|---|
committer | Rebecca Schultz Zavin <rebecca@android.com> | 2012-06-28 15:08:22 -0700 |
commit | 4a35937fcb950ccd05af56c49214b88e393233e3 (patch) | |
tree | 0fcbde0b01bc6ee6d2aeef61ce8c5b84a32e8049 /ion/ion.h | |
parent | 1cd363ddf9566cd3ec5814c9f7382baace8eee49 (diff) | |
download | hardware_ti_omap4xxx-4a35937fcb950ccd05af56c49214b88e393233e3.zip hardware_ti_omap4xxx-4a35937fcb950ccd05af56c49214b88e393233e3.tar.gz hardware_ti_omap4xxx-4a35937fcb950ccd05af56c49214b88e393233e3.tar.bz2 |
Put back old ion library
Non-backwards compatible changes are being made to the version in system core
Change-Id: I66d5119fb28a7eb3dc6cb9f7cbd1a8a8d902f290
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'ion/ion.h')
-rw-r--r-- | ion/ion.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ion/ion.h b/ion/ion.h new file mode 100644 index 0000000..871b9bc --- /dev/null +++ b/ion/ion.h @@ -0,0 +1,35 @@ +/* + * ion.c + * + * Memory Allocator functions for ion + * + * Copyright 2011 Google, Inc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <linux/ion.h> +#include <linux/omap_ion.h> + +int ion_open(); +int ion_close(int fd); +int ion_alloc(int fd, size_t len, size_t align, unsigned int flags, + struct ion_handle **handle); +int ion_alloc_tiler(int fd, size_t w, size_t h, int fmt, unsigned int flags, + struct ion_handle **handle, size_t *stride); +int ion_free(int fd, struct ion_handle *handle); +int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, + int flags, off_t offset, unsigned char **ptr, int *map_fd); +int ion_share(int fd, struct ion_handle *handle, int *share_fd); +int ion_import(int fd, int share_fd, struct ion_handle **handle); + |