X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=ndk%2Fandroid-ndk-r4%2Fdarwin%2Fplatforms%2Fandroid-8%2Farch-x86%2Fusr%2Finclude%2Flinux%2Fppdev.h;fp=ndk%2Fandroid-ndk-r4%2Fdarwin%2Fplatforms%2Fandroid-8%2Farch-x86%2Fusr%2Finclude%2Flinux%2Fppdev.h;h=c43f8b92e870c3aaed8483465748c103208b38eb;hb=72eddb87bfc38a2f6fae40566ec6380eb838489a;hp=0000000000000000000000000000000000000000;hpb=e19e12d257815bef7bfe4f3d81056a5b2464c464;p=android-x86%2Fprebuilt.git diff --git a/ndk/android-ndk-r4/darwin/platforms/android-8/arch-x86/usr/include/linux/ppdev.h b/ndk/android-ndk-r4/darwin/platforms/android-8/arch-x86/usr/include/linux/ppdev.h new file mode 100644 index 0000000..c43f8b9 --- /dev/null +++ b/ndk/android-ndk-r4/darwin/platforms/android-8/arch-x86/usr/include/linux/ppdev.h @@ -0,0 +1,71 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +#define PP_IOCTL 'p' + +#define PPSETMODE _IOW(PP_IOCTL, 0x80, int) + +#define PPRSTATUS _IOR(PP_IOCTL, 0x81, unsigned char) +#define PPWSTATUS OBSOLETE__IOW(PP_IOCTL, 0x82, unsigned char) + +#define PPRCONTROL _IOR(PP_IOCTL, 0x83, unsigned char) +#define PPWCONTROL _IOW(PP_IOCTL, 0x84, unsigned char) + +struct ppdev_frob_struct { + unsigned char mask; + unsigned char val; +}; +#define PPFCONTROL _IOW(PP_IOCTL, 0x8e, struct ppdev_frob_struct) + +#define PPRDATA _IOR(PP_IOCTL, 0x85, unsigned char) +#define PPWDATA _IOW(PP_IOCTL, 0x86, unsigned char) + +#define PPRECONTROL OBSOLETE__IOR(PP_IOCTL, 0x87, unsigned char) +#define PPWECONTROL OBSOLETE__IOW(PP_IOCTL, 0x88, unsigned char) + +#define PPRFIFO OBSOLETE__IOR(PP_IOCTL, 0x89, unsigned char) +#define PPWFIFO OBSOLETE__IOW(PP_IOCTL, 0x8a, unsigned char) + +#define PPCLAIM _IO(PP_IOCTL, 0x8b) + +#define PPRELEASE _IO(PP_IOCTL, 0x8c) + +#define PPYIELD _IO(PP_IOCTL, 0x8d) + +#define PPEXCL _IO(PP_IOCTL, 0x8f) + +#define PPDATADIR _IOW(PP_IOCTL, 0x90, int) + +#define PPNEGOT _IOW(PP_IOCTL, 0x91, int) + +#define PPWCTLONIRQ _IOW(PP_IOCTL, 0x92, unsigned char) + +#define PPCLRIRQ _IOR(PP_IOCTL, 0x93, int) + +#define PPSETPHASE _IOW(PP_IOCTL, 0x94, int) + +#define PPGETTIME _IOR(PP_IOCTL, 0x95, struct timeval) +#define PPSETTIME _IOW(PP_IOCTL, 0x96, struct timeval) + +#define PPGETMODES _IOR(PP_IOCTL, 0x97, unsigned int) + +#define PPGETMODE _IOR(PP_IOCTL, 0x98, int) +#define PPGETPHASE _IOR(PP_IOCTL, 0x99, int) + +#define PPGETFLAGS _IOR(PP_IOCTL, 0x9a, int) +#define PPSETFLAGS _IOW(PP_IOCTL, 0x9b, int) + +#define PP_FASTWRITE (1<<2) +#define PP_FASTREAD (1<<3) +#define PP_W91284PIC (1<<4) + +#define PP_FLAGMASK (PP_FASTWRITE | PP_FASTREAD | PP_W91284PIC) +