| .. | .. |
|---|
| 4 | 4 | #ifndef __IPU3_CIO2_H |
|---|
| 5 | 5 | #define __IPU3_CIO2_H |
|---|
| 6 | 6 | |
|---|
| 7 | +#include <linux/types.h> |
|---|
| 8 | + |
|---|
| 7 | 9 | #define CIO2_NAME "ipu3-cio2" |
|---|
| 8 | 10 | #define CIO2_DEVICE_NAME "Intel IPU3 CIO2" |
|---|
| 9 | 11 | #define CIO2_ENTITY_NAME "ipu3-csi2" |
|---|
| 10 | 12 | #define CIO2_PCI_ID 0x9d32 |
|---|
| 11 | 13 | #define CIO2_PCI_BAR 0 |
|---|
| 12 | 14 | #define CIO2_DMA_MASK DMA_BIT_MASK(39) |
|---|
| 13 | | -#define CIO2_IMAGE_MAX_WIDTH 4224 |
|---|
| 14 | | -#define CIO2_IMAGE_MAX_LENGTH 3136 |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | #define CIO2_IMAGE_MAX_WIDTH 4224 |
|---|
| 17 | 17 | #define CIO2_IMAGE_MAX_LENGTH 3136 |
|---|
| .. | .. |
|---|
| 19 | 19 | /* 32MB = 8xFBPT_entry */ |
|---|
| 20 | 20 | #define CIO2_MAX_LOPS 8 |
|---|
| 21 | 21 | #define CIO2_MAX_BUFFERS (PAGE_SIZE / 16 / CIO2_MAX_LOPS) |
|---|
| 22 | +#define CIO2_LOP_ENTRIES (PAGE_SIZE / sizeof(u32)) |
|---|
| 22 | 23 | |
|---|
| 23 | 24 | #define CIO2_PAD_SINK 0 |
|---|
| 24 | 25 | #define CIO2_PAD_SOURCE 1 |
|---|
| .. | .. |
|---|
| 392 | 393 | sizeof(struct cio2_fbpt_entry)) |
|---|
| 393 | 394 | |
|---|
| 394 | 395 | #define CIO2_FBPT_SUBENTRY_UNIT 4 |
|---|
| 395 | | -#define CIO2_PAGE_SIZE 4096 |
|---|
| 396 | 396 | |
|---|
| 397 | 397 | /* cio2 fbpt first_entry ctrl status */ |
|---|
| 398 | 398 | #define CIO2_FBPT_CTRL_VALID BIT(0) |
|---|