gsgx.h 917 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * (C) Copyright 2013 Intel Corporation
  3. * Author: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; version 2
  8. * of the License.
  9. */
  10. #ifndef __ARCH_GSGX_H__
  11. #define __ARCH_GSGX_H__
  12. #include "isgx_version.h"
  13. #include "graphene-sgx.h"
  14. #if SDK_DRIVER_VERSION < KERNEL_VERSION(1, 8, 0)
  15. #include "isgx_ksyms.h"
  16. extern struct file *isgx_dev;
  17. extern long gsgx_ioctl(struct file *, unsigned int, unsigned long);
  18. extern int gsgx_mmap(struct file *, struct vm_area_struct *);
  19. extern unsigned long gsgx_get_unmapped_area(struct file *, unsigned long,
  20. unsigned long, unsigned long,
  21. unsigned long);
  22. extern int gsgx_lookup_ksyms(void);
  23. #endif
  24. extern int gsgx_open(struct inode *, struct file *);
  25. #endif /* __ARCH_GSGX_H__ */