|
Linux Kernel
3.7.1
|
#include <linux/ioctl.h>Go to the source code of this file.
Data Structures | |
| struct | ssp_request |
Macros | |
| #define | SSP_SPEED _IOR('S', 0, unsigned int) |
| #define | SSP_MODE _IOR('S', 1, unsigned int) |
| #define | SSP_FRAME_SYNC _IOR('S', 2, unsigned int) |
| #define | SSP_IPOLARITY _IOR('S', 3, unsigned int) |
| #define | SSP_OPOLARITY _IOR('S', 4, unsigned int) |
| #define | SSP_SPI _IOR('S', 5, unsigned int) |
| #define | SSP_INBUFCHUNK _IOR('S', 6, unsigned int) |
| #define | SSP_INPUT _IOR('S', 7, unsigned int) |
| #define | SSP150 0 |
| #define | SSP300 1 |
| #define | SSP600 2 |
| #define | SSP1200 3 |
| #define | SSP2400 4 |
| #define | SSP4800 5 |
| #define | SSP9600 6 |
| #define | SSP19200 7 |
| #define | SSP28800 8 |
| #define | SSP57600 9 |
| #define | SSP115200 10 |
| #define | SSP230400 11 |
| #define | SSP460800 12 |
| #define | SSP921600 13 |
| #define | SSP3125000 14 |
| #define | CODEC 15 |
| #define | CODEC_f32768 16 |
| #define | FREQ_4MHz 0 |
| #define | FREQ_2MHz 1 |
| #define | FREQ_1MHz 2 |
| #define | FREQ_512kHz 3 |
| #define | FREQ_256kHz 4 |
| #define | FREQ_128kHz 5 |
| #define | FREQ_64kHz 6 |
| #define | FREQ_32kHz 7 |
| #define | FREQ_4096kHz 16 /* CODEC_f32768 */ |
| #define | CODEC_VAL(freq, clk_per_sync, sync_per_frame) |
| #define | GET_SPEED(x) (x & 0xff) |
| #define | GET_FREQ(x) ((x & 0xff00) >> 8) |
| #define | GET_WORD_RATE(x) (((x & 0x0fff0000) >> 16) - 1) |
| #define | GET_FRAME_RATE(x) (((x & 0xf0000000) >> 28) - 1) |
| #define | MASTER_OUTPUT 0 |
| #define | SLAVE_OUTPUT 1 |
| #define | MASTER_INPUT 2 |
| #define | SLAVE_INPUT 3 |
| #define | MASTER_BIDIR 4 |
| #define | SLAVE_BIDIR 5 |
| #define | NORMAL_SYNC 1 |
| #define | EARLY_SYNC 2 |
| #define | SECOND_WORD_SYNC 0x40000 |
| #define | LATE_SYNC 0x80000 |
| #define | BIT_SYNC 4 |
| #define | WORD_SYNC 8 |
| #define | EXTENDED_SYNC 0x10 |
| #define | SYNC_OFF 0x20 |
| #define | SYNC_ON 0x40 |
| #define | WORD_SIZE_8 0x80 |
| #define | WORD_SIZE_12 0x100 |
| #define | WORD_SIZE_16 0x200 |
| #define | WORD_SIZE_24 0x400 |
| #define | WORD_SIZE_32 0x800 |
| #define | BIT_ORDER_LSB 0x1000 |
| #define | BIT_ORDER_MSB 0x2000 |
| #define | FLOW_CONTROL_ENABLE 0x4000 |
| #define | FLOW_CONTROL_DISABLE 0x8000 |
| #define | CLOCK_GATED 0x10000 |
| #define | CLOCK_NOT_GATED 0x20000 |
| #define | CLOCK_NORMAL 1 |
| #define | CLOCK_INVERT 2 |
| #define | CLOCK_INEGEDGE CLOCK_NORMAL |
| #define | CLOCK_IPOSEDGE CLOCK_INVERT |
| #define | FRAME_NORMAL 4 |
| #define | FRAME_INVERT 8 |
| #define | STATUS_NORMAL 0x10 |
| #define | STATUS_INVERT 0x20 |
| #define | SPI_MASTER 0 |
| #define | SPI_SLAVE 1 |
| #define | SSP_INPUT_CHUNK_SIZE 256 |
| #define BIT_ORDER_LSB 0x1000 |
Definition at line 91 of file sync_serial.h.
| #define BIT_ORDER_MSB 0x2000 |
Definition at line 92 of file sync_serial.h.
| #define BIT_SYNC 4 |
Definition at line 80 of file sync_serial.h.
| #define CLOCK_GATED 0x10000 |
Definition at line 95 of file sync_serial.h.
| #define CLOCK_INEGEDGE CLOCK_NORMAL |
Definition at line 101 of file sync_serial.h.
| #define CLOCK_INVERT 2 |
Definition at line 100 of file sync_serial.h.
| #define CLOCK_IPOSEDGE CLOCK_INVERT |
Definition at line 102 of file sync_serial.h.
| #define CLOCK_NORMAL 1 |
Definition at line 99 of file sync_serial.h.
| #define CLOCK_NOT_GATED 0x20000 |
Definition at line 96 of file sync_serial.h.
| #define CODEC 15 |
Definition at line 40 of file sync_serial.h.
| #define CODEC_f32768 16 |
Definition at line 41 of file sync_serial.h.
| #define CODEC_VAL | ( | freq, | |
| clk_per_sync, | |||
| sync_per_frame | |||
| ) |
Definition at line 56 of file sync_serial.h.
| #define EARLY_SYNC 2 |
Definition at line 76 of file sync_serial.h.
| #define EXTENDED_SYNC 0x10 |
Definition at line 82 of file sync_serial.h.
| #define FLOW_CONTROL_DISABLE 0x8000 |
Definition at line 94 of file sync_serial.h.
| #define FLOW_CONTROL_ENABLE 0x4000 |
Definition at line 93 of file sync_serial.h.
| #define FRAME_INVERT 8 |
Definition at line 104 of file sync_serial.h.
| #define FRAME_NORMAL 4 |
Definition at line 103 of file sync_serial.h.
| #define FREQ_128kHz 5 |
Definition at line 48 of file sync_serial.h.
| #define FREQ_1MHz 2 |
Definition at line 45 of file sync_serial.h.
| #define FREQ_256kHz 4 |
Definition at line 47 of file sync_serial.h.
| #define FREQ_2MHz 1 |
Definition at line 44 of file sync_serial.h.
| #define FREQ_32kHz 7 |
Definition at line 50 of file sync_serial.h.
| #define FREQ_4096kHz 16 /* CODEC_f32768 */ |
Definition at line 53 of file sync_serial.h.
| #define FREQ_4MHz 0 |
Definition at line 43 of file sync_serial.h.
| #define FREQ_512kHz 3 |
Definition at line 46 of file sync_serial.h.
| #define FREQ_64kHz 6 |
Definition at line 49 of file sync_serial.h.
Definition at line 64 of file sync_serial.h.
Definition at line 62 of file sync_serial.h.
Definition at line 61 of file sync_serial.h.
Definition at line 63 of file sync_serial.h.
| #define LATE_SYNC 0x80000 |
Definition at line 78 of file sync_serial.h.
| #define MASTER_BIDIR 4 |
Definition at line 71 of file sync_serial.h.
| #define MASTER_INPUT 2 |
Definition at line 69 of file sync_serial.h.
| #define MASTER_OUTPUT 0 |
Definition at line 67 of file sync_serial.h.
| #define NORMAL_SYNC 1 |
Definition at line 75 of file sync_serial.h.
| #define SECOND_WORD_SYNC 0x40000 |
Definition at line 77 of file sync_serial.h.
| #define SLAVE_BIDIR 5 |
Definition at line 72 of file sync_serial.h.
| #define SLAVE_INPUT 3 |
Definition at line 70 of file sync_serial.h.
| #define SLAVE_OUTPUT 1 |
Definition at line 68 of file sync_serial.h.
| #define SPI_MASTER 0 |
Definition at line 109 of file sync_serial.h.
| #define SPI_SLAVE 1 |
Definition at line 110 of file sync_serial.h.
| #define SSP115200 10 |
Definition at line 35 of file sync_serial.h.
| #define SSP1200 3 |
Definition at line 28 of file sync_serial.h.
| #define SSP150 0 |
Definition at line 25 of file sync_serial.h.
| #define SSP19200 7 |
Definition at line 32 of file sync_serial.h.
| #define SSP230400 11 |
Definition at line 36 of file sync_serial.h.
| #define SSP2400 4 |
Definition at line 29 of file sync_serial.h.
| #define SSP28800 8 |
Definition at line 33 of file sync_serial.h.
| #define SSP300 1 |
Definition at line 26 of file sync_serial.h.
| #define SSP3125000 14 |
Definition at line 39 of file sync_serial.h.
| #define SSP460800 12 |
Definition at line 37 of file sync_serial.h.
| #define SSP4800 5 |
Definition at line 30 of file sync_serial.h.
| #define SSP57600 9 |
Definition at line 34 of file sync_serial.h.
| #define SSP600 2 |
Definition at line 27 of file sync_serial.h.
| #define SSP921600 13 |
Definition at line 38 of file sync_serial.h.
| #define SSP9600 6 |
Definition at line 31 of file sync_serial.h.
Definition at line 17 of file sync_serial.h.
Definition at line 21 of file sync_serial.h.
Definition at line 22 of file sync_serial.h.
| #define SSP_INPUT_CHUNK_SIZE 256 |
Definition at line 120 of file sync_serial.h.
Definition at line 18 of file sync_serial.h.
Definition at line 16 of file sync_serial.h.
Definition at line 19 of file sync_serial.h.
Definition at line 15 of file sync_serial.h.
Definition at line 20 of file sync_serial.h.
| #define STATUS_INVERT 0x20 |
Definition at line 106 of file sync_serial.h.
| #define STATUS_NORMAL 0x10 |
Definition at line 105 of file sync_serial.h.
| #define SYNC_OFF 0x20 |
Definition at line 84 of file sync_serial.h.
| #define SYNC_ON 0x40 |
Definition at line 85 of file sync_serial.h.
| #define WORD_SIZE_12 0x100 |
Definition at line 87 of file sync_serial.h.
| #define WORD_SIZE_16 0x200 |
Definition at line 88 of file sync_serial.h.
| #define WORD_SIZE_24 0x400 |
Definition at line 89 of file sync_serial.h.
| #define WORD_SIZE_32 0x800 |
Definition at line 90 of file sync_serial.h.
| #define WORD_SIZE_8 0x80 |
Definition at line 86 of file sync_serial.h.
| #define WORD_SYNC 8 |
Definition at line 81 of file sync_serial.h.
1.8.2