18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (C) 2011 Texas Instruments Incorporated 38c2ecf20Sopenharmony_ci * Author: Mark Salter <msalter@redhat.com> 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or 68c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License 78c2ecf20Sopenharmony_ci * as published by the Free Software Foundation, version 2. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful, but 108c2ecf20Sopenharmony_ci * WITHOUT ANY WARRANTY; without even the implied warranty of 118c2ecf20Sopenharmony_ci * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or 128c2ecf20Sopenharmony_ci * NON INFRINGEMENT. See the GNU General Public License for 138c2ecf20Sopenharmony_ci * more details. 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#ifndef __ASM_C6X_SYSCALLS_H 178c2ecf20Sopenharmony_ci#define __ASM_C6X_SYSCALLS_H 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#include <linux/compiler.h> 208c2ecf20Sopenharmony_ci#include <linux/linkage.h> 218c2ecf20Sopenharmony_ci#include <linux/types.h> 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci/* The array of function pointers for syscalls. */ 248c2ecf20Sopenharmony_ciextern void *sys_call_table[]; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* The following are trampolines in entry.S to handle 64-bit arguments */ 278c2ecf20Sopenharmony_ciextern long sys_pread_c6x(unsigned int fd, char __user *buf, 288c2ecf20Sopenharmony_ci size_t count, off_t pos_low, off_t pos_high); 298c2ecf20Sopenharmony_ciextern long sys_pwrite_c6x(unsigned int fd, const char __user *buf, 308c2ecf20Sopenharmony_ci size_t count, off_t pos_low, off_t pos_high); 318c2ecf20Sopenharmony_ciextern long sys_truncate64_c6x(const char __user *path, 328c2ecf20Sopenharmony_ci off_t length_low, off_t length_high); 338c2ecf20Sopenharmony_ciextern long sys_ftruncate64_c6x(unsigned int fd, 348c2ecf20Sopenharmony_ci off_t length_low, off_t length_high); 358c2ecf20Sopenharmony_ciextern long sys_fadvise64_c6x(int fd, u32 offset_lo, u32 offset_hi, 368c2ecf20Sopenharmony_ci u32 len, int advice); 378c2ecf20Sopenharmony_ciextern long sys_fadvise64_64_c6x(int fd, u32 offset_lo, u32 offset_hi, 388c2ecf20Sopenharmony_ci u32 len_lo, u32 len_hi, int advice); 398c2ecf20Sopenharmony_ciextern long sys_fallocate_c6x(int fd, int mode, 408c2ecf20Sopenharmony_ci u32 offset_lo, u32 offset_hi, 418c2ecf20Sopenharmony_ci u32 len_lo, u32 len_hi); 428c2ecf20Sopenharmony_ciextern int sys_cache_sync(unsigned long s, unsigned long e); 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#include <asm-generic/syscalls.h> 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#endif /* __ASM_C6X_SYSCALLS_H */ 47